-
phartes posted on the forum topic Buddypress & CometChat Integration in the group Miscellaneous: 13 years, 8 months ago
define('DB_SERVER', DB_HOST );
[Read more]
define('DB_PORT', '3306' );
define('DB_USERNAME', DB_USER );
define('TABLE_PREFIX', 'wp_' );
define('DB_USERTABLE', 'users' );
define('DB_USERTABLE_NAME', 'display_name' );
define('DB_USERTABLE_USERID', 'ID' );
define('DB_USERTABLE_LASTACTIVITY'… -
phartes posted on the forum topic Buddypress & CometChat Integration in the group Miscellaneous: 13 years, 8 months ago
EXECUTE MYSQL
ALTER TABLE wp_users ADD COLUMN 'lastactivity' INT default 0
-
phartes posted on the forum topic Buddypress & CometChat Integration in the group Miscellaneous: 13 years, 8 months ago
` $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 13 years, 8 months ago
-
phartes posted on the forum topic Display Followers/Following Count in the group BuddyPress Followers: 13 years, 9 months ago
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: 13 years, 9 months ago
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 13 years, 9 months ago
-
phartes started the forum topic how to add paging in the plugin in the group BuddyPress Group Tags: 13 years, 11 months ago
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 13 years, 11 months ago
@phartes
Not recently active