Changeset 412

Show
Ignore:
Timestamp:
05/19/07 21:59:09 (2 years ago)
Author:
so1o
Message:

version fix

Files:

Legend:

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

    r410 r412  
    11<?php 
    22/* 
    3 Plugin Name: Moderation Hold 
     3Plugin Name: BB Moderation Hold 
    44Plugin URI: http://www.adityanaik.com 
    55Description: Hold posts and topics for moderation 
    66Author: Aditya Naik 
    77Author URI: http://www.adityanaik.com/ 
    8 Version: 0.2 
     8Version: 0.1 
    99*/ 
    1010 
     
    1313 * 
    1414 * @author  Aditya Naik <aditya@adityanaik.com> 
    15  * @version v 0.02 Sun Apr 08 2007 02:12:09 GMT-0400 (Eastern Daylight Time) 
     15 * @version v 0.01 Sun Apr 08 2007 02:12:09 GMT-0400 (Eastern Daylight Time) 
    1616 */ 
    1717add_action( 'bb_admin_menu_generator', 'bb_moderation_hold_add_admin_page' ); 
     
    2828 * 
    2929 * @author  Aditya Naik <aditya@adityanaik.com> 
    30  * @version v 0.02 Sun Apr 08 2007 02:12:05 GMT-0400 (Eastern Daylight Time) 
     30 * @version v 0.01 Sun Apr 08 2007 02:12:05 GMT-0400 (Eastern Daylight Time) 
    3131 */ 
    3232function bb_moderation_hold_admin_page() { 
     
    208208 * 
    209209 * @author  Aditya Naik <aditya@adityanaik.com> 
    210  * @version v 0.02 Sun Apr 08 2007 02:11:58 GMT-0400 (Eastern Daylight Time) 
     210 * @version v 0.01 Sun Apr 08 2007 02:11:58 GMT-0400 (Eastern Daylight Time) 
    211211 */ 
    212212add_action( 'bb_admin-header.php','bb_moderation_hold_process_post'); 
     
    352352 * 
    353353 * @author  Aditya Naik <aditya@adityanaik.com> 
    354  * @version v 0.02 Tue Apr 10 2007 23:29:07 GMT-0400 (Eastern Daylight Time) 
     354 * @version v 0.01 Tue Apr 10 2007 23:29:07 GMT-0400 (Eastern Daylight Time) 
    355355 */ 
    356356function bb_moderation_hold_after_posting_do_the_magic($post_id){ 
     
    438438add_filter('post_delete_link','bb_moderation_fix_delete_link',10,3); 
    439439 
     440/** 
     441 * Add a delete/moderate link to posts 
     442 *  
     443 * @author  Aditya Naik <aditya@adityanaik.com> 
     444 * @version v 0.01 Tue Apr 10 2007 23:30:05 GMT-0400 (Eastern Daylight Time) 
     445 */ 
    440446function bb_moderation_fix_delete_link($r, $post_status, $post_id){ 
    441447    if (-1 == $post_status) 
     
    444450} 
    445451 
    446 //add_action('bb_new_topic','bb_moderation_fix_topic_count'); 
    447 function bb_moderation_fix_topic_count($topic_id) { 
    448     global $bbdb; 
    449     $topic = $bbdb->get_results("SELECT * from $bbdb->topics where topic_id = $topic_id"); 
    450     $bbdb->query("UPDATE $bbdb->forums SET topics = topics - 1 WHERE forum_id = $topic->forum_id"); 
    451         $bb_cache->flush_many( 'forum', $forum_id ); 
    452 } 
    453  
    454452?>