Changeset 1151

Show
Ignore:
Timestamp:
07/01/08 17:07:09 (3 months ago)
Author:
so1o
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-moderation-hold/trunk/moderation.php

    r1023 r1151  
    66Author: Aditya Naik 
    77Author URI: http://www.adityanaik.com/ 
    8 Version: 0.4.1 
     8Version: 0.4.2 
    99*/ 
    1010/** 
     
    5959 * 
    6060 * @author  Aditya Naik <aditya@adityanaik.com> 
    61  * @version v 0.02 Sun Apr 08 2007 01:37:30 GMT-0400 (Eastern Daylight Time) 
     61 * @version v 0.03 Sun Apr 08 2007 01:37:30 GMT-0400 (Eastern Daylight Time) 
    6262 */ 
    6363function bb_moderation_hold_mail_moderation($obj = 'T') { 
     64$options = bb_anonymous_default_options(bb_get_option('bb_moderation_hold')); 
    6465 
    6566  if ('T' == $obj) { 
     
    203204 * 
    204205 * @author  Aditya Naik <aditya@adityanaik.com> 
    205  * @version v 0.01 Sun Apr 08 2007 02:32:53 GMT-0400 (Eastern Daylight Time) 
     206 * @version v 0.02 Sun Apr 08 2007 02:32:53 GMT-0400 (Eastern Daylight Time) 
    206207 */ 
    207208function bb_moderation_hold_topic_admin_page() { 
    208209 
    209   global $bbdb, $topic, $bb_post, $post_id, $topic_id
     210  global $bbdb, $topic, $bb_post, $post_id, $topic_id, $page
    210211  $options = bb_anonymous_default_options(bb_get_option('bb_moderation_hold')); 
    211212 
     
    417418 * 
    418419 * @author  Aditya Naik <aditya@adityanaik.com> 
    419  * @version v 0.01 Sun Apr 08 2007 01:34:06 GMT-0400 (Eastern Daylight Time) 
     420 * @version v 0.02 Sun Apr 08 2007 01:34:06 GMT-0400 (Eastern Daylight Time) 
    420421 */ 
    421422function bb_moderation_hold_approve_posts($postids){ 
     
    432433      $uname = $bb_post->poster_name; 
    433434    } else { 
    434       $uid = $bb_post->poster_id; 
     435      $uid = $user->ID; 
     436      $uname = $user->user_login; 
    435437    } 
    436438 
     
    450452    $post_ids = get_thread_post_ids( $topic_id ); 
    451453    if ( $uid && !in_array($uid, array_slice($post_ids['poster'], 0, -1)) ) 
    452       bb_update_usermeta( $uid, $bb_table_prefix . 'topics_replied', $bb_current_user->data->topics_replied + 1 ); 
     454      bb_update_usermeta( $uid, $bbdb->prefix . 'topics_replied', $bb_current_user->data->topics_replied + 1 ); 
    453455  endforeach; endif; 
    454456}