Index: trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/d3forum_comment_synchro.php
===================================================================
--- trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/d3forum_comment_synchro.php	(revision 260)
+++ trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/d3forum_comment_synchro.php	(revision 261)
@@ -458,7 +458,8 @@
 //  The content is reflected in the D3Forum comment when there is a change in the WordPress comment. 
 function wp_comment_sync_to_d3forum($comment_ID = 0,$sync_mode){
-	global $xpress_config,$xoops_db;
+	global $xpress_config,$xoops_db,$xoops_config;
 	
 	if (!is_d3forum_setting()) die('The setting of the D3Forum comment integration is wrong. ');
+	$mydirname = $xoops_config->module_name;
 
 	$d3f_forum_id = $xpress_config->d3forum_forum_id;
@@ -494,5 +495,5 @@
 	$modified_time = strtotime($row->comment_date);	// or	$row2['comment_date_gmt']
 	require_once (get_xpress_dir_path() . 'include/general_functions.php');
-	$uid =  wp_uid_to_xoops_uid($row->user_id);
+	$uid =  wp_uid_to_xoops_uid($row->user_id,$mydirname);
 	$poster_ip = "'" . addslashes($row->comment_author_IP ). "'";
 	$modifier_ip = "'" . addslashes($row->comment_author_IP) . "'";
