Search Results for 'buddypress'
-
Search Results
-
Topic: Template file not override
Hello
I want change layout of all buddypress page but i can’t change any file.
See below
I have copy “buddypress” folder from
plugins\buddypress\bp-templates\bp-legacy
And paste here
themes\twentythirteen\buddypress\bp-templates\bp-legacy
and edit below path file
\twentythirteen\buddypress\bp-templates\bp-legacy\buddypress\members\single\home.php
But change not show in frontend
Wordpress Version : 4.4
BuddyPress Version: 2.4.2
Theme use: Twenty ThirteenI am working on my local wamp server
Hi, I want to remove the ‘add friend’ button for a specific member type in my buddypress site. I don’t want them to have friend requests from anyone.
I tried to write this code but it does not work:
function remove_bp_add_friend_button(); {
$member_type = bp_get_member_type( bp_displayed_user_id() );
if ( ‘business’ === $member_type ) {
‘remove_bp_add_friend_button’;
}
}Anyone can help with this?
Topic: Buddypress privacy for tabs
Hi there!
Is there a way to make tabs (like groups, events) in profile menu hidden to other users, except owner of profile?
Hello, I am attempting to override the following function:
/** * Locate a custom group front template if it exists. * * @since 2.4.0 * * @param BP_Groups_Group|null $group Optional. Falls back to current group if not passed. * @return string|bool Path to front template on success; boolean false on failure. */ function bp_groups_get_front_template( $group = null ) { if ( ! is_a( $group, 'BP_Groups_Group' ) ) { $group = groups_get_current_group(); } if ( ! isset( $group->id ) ) { return false; } if ( isset( $group->front_template ) ) { return $group->front_template; } $template_names = apply_filters( 'bp_groups_get_front_template', array( 'groups/single/front-id-' . sanitize_file_name( $group->id ) . '.php', 'groups/single/front-slug-' . sanitize_file_name( $group->slug ) . '.php', 'groups/single/front-status-' . sanitize_file_name( $group->status ) . '.php', 'groups/single/front.php' ) ); return bp_locate_template( $template_names, false, true ); }My new function replaces
'groups/single/front-slug-' . sanitize_file_name( $group->slug ) . '.php',with
'groups/single/front-slug-' . sanitize_file_name( current(explode("/", $group->slug)) ) . '.php',but that is not the important part. My real question is how can I override/replace this function in my theme’s functions.php file. (Want to keep things upgrade-proof!)
Thanks in advance!
Hi, this is a known “issue” i have read every single topic here, i even run a script on my database.
The thing is that in /members it only show the amount of users that had logged in after buddypress was installed. Before the Buddypress instalation i had 2000 users, now i have 4000+, so in /members the member count only counts those 4000 users.
I run a script (created a mu-plugin) that goes user by user (foreach) and gave a last_activity time stamp. (Thats what i read in lots of forums, buddypress uses last_Activity to determine if the user is a buddypress or a WP user).
Didnt work, the pre-buddypress users dont show up.
I dont know what to do, in the front page of my site im saying that the site has over 6000 users and in /members it says that are only 4000. Im losing credibility.
Other people suggested that selecting another filter like “Alphabetically” or “Last registered” should show all the users… Thats not my case.
Wordpress version: 4.3
Buddypress version: 2.4
Im using a custom theme that uses this to show the amount of users:<div id="pag-top" class="pagination"> <div class="pag-count" id="member-dir-count-top"> <?php bp_members_pagination_count(); ?> </div> <div class="pagination-links" id="member-dir-pag-top"> <?php bp_members_pagination_links(); ?> </div> </div>
