-
-
EXECUTE MYSQL
ALTER TABLE wp_users ADD COLUMN 'lastactivity' INT default 0 -
` $sql = (“(select DISTINCT “.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_USERID.” userid, “.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_NAME.” username, “.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_LASTACTIVITY.” lastactivity, CONCAT(“.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_USERID.”,’|',”.TABLE_PREFIX.DB_USERTABLE.”.user_email) avatar,…[Read more]
-
phartes joined the group Miscellaneous
-
phartes posted on the forum topic Display Followers/Following Count in the group BuddyPress Followers:
function follow_deleted( $user_id ) {
global $wpdb, $bp;$wpdb->query( $wpdb->prepare( “DELETE FROM {$bp->follow->table_name} WHERE leader_id = %d”, user_id ) );
$wpdb->query( $wpdb->prepare( “DELETE FROM {$bp->follow->table_name} WHERE follower_id = %d”, user_id ) );}
add_action( ‘wpmu_delete_user’, ‘follow_deleted’ );
add_action(…[Read more] -
phartes posted on the forum topic BUG: Follow count doesn't update when a member is deleted from the site in the group BuddyPress Followers:
function follow_deleted( $user_id ) {
global $wpdb, $bp;$wpdb->query( $wpdb->prepare( “DELETE FROM {$bp->follow->table_name} WHERE leader_id = %d”, user_id ) );
$wpdb->query( $wpdb->prepare( “DELETE FROM {$bp->follow->table_name} WHERE follower_id = %d”, user_id ) );}
add_action( ‘wpmu_delete_user’, ‘follow_deleted’ );
add_action(…[Read more] -
phartes joined the group BuddyPress Followers
-
Hello, I have many groups in the tags and when you open the page in the tag lists all without paging, it overwhelms a lot, with a very long list, how can I put this paging plugin?
-
phartes joined the group BuddyPress Group Tags