XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 9, 2009, 8:45:31 AM (15 years ago)
Author:
toemon
Message:

fixed #144 UIDのないコメントの投稿者の名前とメールアドレスからXOOPSユーザIDを取得する

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/d3forum_comment_synchro.php

    r261 r264  
    495495        $modified_time = strtotime($row->comment_date); // or   $row2['comment_date_gmt'] 
    496496        require_once (get_xpress_dir_path() . 'include/general_functions.php'); 
    497         $uid =  wp_uid_to_xoops_uid($row->user_id,$mydirname); 
     497        if (empty($row->user_id)){ 
     498                $uid = wp_comment_author_to_xoops_uid($row->comment_author,$row->comment_author_email); 
     499        } else { 
     500                $uid = wp_uid_to_xoops_uid($row->user_id,$mydirname); 
     501        } 
    498502        $poster_ip = "'" . addslashes($row->comment_author_IP ). "'"; 
    499503        $modifier_ip = "'" . addslashes($row->comment_author_IP) . "'"; 
Note: See TracChangeset for help on using the changeset viewer.