Index: trunk/xpressme_integration_kit/class/xpressD3commentContent.class.php
===================================================================
--- trunk/xpressme_integration_kit/class/xpressD3commentContent.class.php	(revision 257)
+++ trunk/xpressme_integration_kit/class/xpressD3commentContent.class.php	(revision 261)
@@ -272,5 +272,5 @@
 		function sync_to_wp_comment( $mode , $link_id , $forum_id , $topic_id , $post_id = 0 ){
 
-			$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+			$mydirname = $this->mydirname ;
 			$xpress_prefix = $mydirname;
 			if ($xpress_prefix == 'wordpress') $xpress_prefix = 'wp';
@@ -330,5 +330,5 @@
 				$comment_approved = "'" . $d3f_row['approval'] . "'";
 				require_once (XOOPS_ROOT_PATH . '/modules/'.$mydirname . '/include/general_functions.php');
-				$user_ID = xoops_uid_to_wp_uid($d3f_row['uid']);
+				$user_ID = xoops_uid_to_wp_uid($d3f_row['uid'],$mydirname);
 				$comment_date_gmt = "'" . gmdate('Y-m-d H:i:s' , $d3f_row['post_time']) . "'";
 				$comment_type = '';
