Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/05/2014 06:41:02 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Introduce topic & reply counts for users:

  • New functions for updating user options.
  • New action hooks for bumping existing counts on CRUD actions.
  • Uses existing _raw functions when no counts are previously found to incrementally update missing meta values.
  • Tool for updating topic & reply counts already exists.
  • Props netweb, MZAWeb, anointed.
  • Fixes #1694.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/actions.php

    r5156 r5309  
    248248add_action( 'bbp_unspammed_reply', 'bbp_update_reply_walker' );
    249249
     250// Users topic & reply counts
     251add_action( 'bbp_new_topic',     'bbp_increase_user_topic_count' );
     252add_action( 'bbp_new_reply',     'bbp_increase_user_reply_count' );
     253add_action( 'bbp_untrash_topic', 'bbp_increase_user_topic_count' );
     254add_action( 'bbp_untrash_reply', 'bbp_increase_user_reply_count' );
     255add_action( 'bbp_unspam_topic',  'bbp_increase_user_topic_count' );
     256add_action( 'bbp_unspam_reply',  'bbp_increase_user_reply_count' );
     257add_action( 'bbp_trash_topic',   'bbp_decrease_user_topic_count' );
     258add_action( 'bbp_trash_reply',   'bbp_decrease_user_reply_count' );
     259add_action( 'bbp_spam_topic',    'bbp_decrease_user_topic_count' );
     260add_action( 'bbp_spam_reply',    'bbp_decrease_user_reply_count' );
     261
    250262// User status
    251263// @todo make these sub-actions
Note: See TracChangeset for help on using the changeset viewer.