Search Results for 'buddypress'
-
Search Results
-
Hi BuddyPress,
I want to keep my site as private as possible.
I would like to disable access to non-logged in users to the members directory or any other profile related pages. If they do try to access then they get re-directed to homepage.Please could you send me the php I need to add to my functions.php to achieve this??
Many Thanks
Topic: Edit registerpage german
Hi, i want to change the standardphrase on the register site.
I replaced it with my own text in the buddypress-de_DE.po. i didnt touch the original englisch text in register.php
I deactivated the cacheplugin, cleared all caches… but nothing changes..:-(
I used poedit to make the changes.
Thanks for your help. Vera
Hello Dear BuddyPressers,
I would like to allow the users of my website to filter the visible posts on my website’s homepage using a text-field on their personal BuddyPress account.
Each user would therefore be able to enter a comma-separated list of keywords in their text-field. Only the posts containing one or many of these keywords would be displayed on the website’s homepage.
In a language developers understand better, here’s what I want to do :
IF [post] CONTAINS [user-keyword] THAN [post-visibility=TRUE]; ELSE [post-visibility=FALSE];Do you know if there’s any existing plugin that could help me do that or how I could make it by myself?
Thanks in advance!
A. Mayer
Topic: Which setup?
Hi,
I want to make use of buddypress as a directory platform my users(vendors).
In a multisite network, how do I only list buddypress users registered via the main site and not those created by the subsite administrator?
Also, is there anyway, I could list the members based on custom fields they selected?
Hope someone can shed some light on this.
Thank you.
Topic: Installing on Subdomain
Topic: New Theme for Free
I’ve been developing a new theme called Centro which supports the core functionality of WordPress & BuddyPress.
It’s currently still in development but has been released and is available on GitHub.
You can view a demo on buddycore or here also and a download is available via GitHub.
Issues will be answered and resolved via GitHub.
Enjoy! Happy New Year!
**********************
Some Features
**********************
Colour customizations in wp-admin.
Support for posts and pages
Archive pages for search and taxonomies
Post thumbnails and post formats
Post commentsActivity streams
Member profiles
– xProfile
– Settings
– Friends
– PMs
– Notifications
– MultisiteRegistration
– Basic member
— With blog creationResponsive
HTML5
Cross Browser (IE10+)*************************
Group support will definitely be added in the next updates
Plan to add support for BBPress and possibly WooCommerceAll of this depends on how many people are using the theme and feature requests from users.
The problem:
I want to display different types of names on the updates in the activity stream like:
– first name + last name for updates which the user posts on their stream
– username/display name when there are updates in groupsi have written the following code:
/** * Get the fullname of the current member in the loop. * * Full name is, by default, pulled from xprofile's Full Name field. * When this field is empty, we try to get an alternative name from the * WP users table, in the following order of preference: display_name, * user_nicename, user_login. * * @return string The user's fullname for display. */ function bp_get_member_name_custom() { global $members_template, $bp; // print_r($members_template->member->id); $firstname= bp_get_profile_field_data('field=vorname&user_id='.$members_template->member->id); $lastname= bp_get_profile_field_data('field=nachname&user_id='.$members_template->member->id); if(!empty($firstname) || !empty($firstname)){ $fullname = $firstname.' '.$lastname ; return apply_filters( 'bp_get_member_name_custom',$fullname ); }else{ $name_stack = array( 'display_name', 'user_nicename', 'user_login' ); foreach ( $name_stack as $source ) { if ( !empty( $members_template->member->{$source} ) ) { // When a value is found, set it as fullname and be done with it. $members_template->member->fullname = $members_template->member->{$source}; break; } } return apply_filters( 'bp_get_member_name_custom', $members_template->member->fullname ); } /** * Filters the display name of current member in the loop. * * @since 1.2.0 * * @param string $fullname Display name for current member. */ } add_filter( 'bp_get_member_name_custom', 'wp_filter_kses' ); add_filter( 'bp_get_member_name_custom', 'stripslashes' ); add_filter( 'bp_get_member_name_custom', 'strip_tags' ); add_filter( 'bp_get_member_name_custom', 'esc_html' ); // full name to all memebr list add_filter('bp_get_member_name','bp_get_member_name_custom'); // Fullname in group memeber list function bp_get_group_member_link_custom() { global $members_template, $bp; $firstname= bp_get_profile_field_data('field=vorname&user_id='.$members_template->member->id); $lastname= bp_get_profile_field_data('field=nachname&user_id='.$members_template->member->id); if(!empty($firstname) || !empty($firstname)){ $fullname = $firstname.' '.$lastname ; return apply_filters( 'bp_get_group_member_link_custom', '<a href="' . bp_core_get_user_domain( $members_template->member->user_id, $members_template->member->user_nicename, $members_template->member->user_login ) . '">' . $fullname . '</a>' ); }else{ $name_stack = array( 'display_name', 'user_nicename', 'user_login' ); foreach ( $name_stack as $source ) { if ( !empty( $members_template->member->{$source} ) ) { // When a value is found, set it as fullname and be done with it. $members_template->member->fullname = $members_template->member->{$source}; break; } } return apply_filters( 'bp_get_group_member_link_custom', '<a href="' . bp_core_get_user_domain( $members_template->member->user_id, $members_template->member->user_nicename, $members_template->member->user_login ) . '">' . $members_template->member->display_name . '</a>' ); } } add_filter('bp_get_group_member_link','bp_get_group_member_link_custom'); /** * Fetch the display fullname for a user. * * @param int|string|bool $user_id_or_username User ID or username. * @return string|bool The display name for the user in question, or false if * user not found. */ function bp_core_get_user_displayname_custom( $user_id_or_username ) { if ( empty( $user_id_or_username ) ) { return false; } // return $user_id_or_username; if ( ! is_numeric( $user_id_or_username ) ) { $user_id = bp_core_get_userid( $user_id_or_username ); } else { $user_id = $user_id_or_username; } if ( empty( $user_id ) ) { return false; } global $bp; $firstname= bp_get_profile_field_data('field=vorname&user_id='.$user_id); $lastname= bp_get_profile_field_data('field=nachname&user_id='.$user_id); // return $user_id; if(!empty($firstname) || !empty($firstname)){ $fullname = $firstname.' '.$lastname ; return apply_filters( 'bp_core_get_user_displayname_custom', $fullname, $user_id ); }else{ $display_names = bp_core_get_user_displaynames( array( $user_id ) ); if ( ! isset( $display_names[ $user_id ] ) ) { $fullname = false; } else { $fullname = $display_names[ $user_id ]; } return apply_filters( 'bp_core_get_user_displayname_custom', $fullname, $user_id ); } } add_filter( 'bp_core_get_user_displayname_custom', 'strip_tags', 1 ); add_filter('bp_core_get_user_displayname_custom'); add_filter('bp_core_get_user_displayname','bp_core_get_user_displayname_custom'); // Fullname on profile page on other member add_filter('bp_displayed_user_fullname','bp_core_get_user_displayname_custom');which is creating the following output on my site:
It was working before updating to WordPress 4.7.
Can anyone help since i can’t find a solution or error?
Or am i thinking to complicated?i’m currently working on:
Wordpress Version 4.7.
Buddypress Version 2.7.4
BP Xprofile Member Type Field Version 1.0.2Hi there,
I am using WP 4.7 with Buddypress 2.7.4 and bbpress 2.5.12.
The Buddypress groups have enabled a group forum with subforums. One group has a private default forum with private subforums.
If a no-member of the group wants to access the private forum he gets the 404 (that’s ok). But access to topics and answers of the private (sub)forums via widget links the topics are readable and writeable for non-members of the group.
Is this a bug? How can I solve this?
Thanks for a hint.
ChrisTopic: Changing the Activity Slug
I’m trying to change the Activity Slug as mentioned here:
Change “Activity” component’s name and slug to something else.
However I’m getting the following error code when I simply paste the snippet into bp-custom
o /dashboard/ define( ‘BP_ACTIVITY_SLUG’, ‘dashboard’ ); // Change the name for the “Activity” tab to “Dashboard”, // and reference the newly defined slug /dashboard/ function bpcodex_rename_profile_tabs() { // Change “Activity” to “Dashboard” buddypress()->members->nav->edit_nav( array( ‘name’ => __( ‘Dashboard’, ‘textdomain’ ) ), ‘dashboard’ ); } add_action( ‘bp_actions’, ‘bpcodex_rename_profile_tabs’ );
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/bp-custom.php:10) in /wp-includes/option.php on line 828Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/bp-custom.php:10) in wp-includes/option.php on line 829
I’m using a brand new install of WP and BP, is there anything else I need to do to get this to work?
Hello, im using woffice and i want the user to change his password and profile picture only from the front end .
i dont want him to :
– change his name
– edit anything in (Editing ‘Base’ Profile Group)
– change his email .
– change anything in (Send an email notice when: )
i have this link :
https://buddypress.org/support/topic/dont-allow-users-to-change-some-fields-after-sign-up-hide-those-fields/
but i don`t know if it will be like my customization
thanks so much.—————————-
1. Which version of WordPress are you running?
WordPress 4.7 running Woffice Child theme.6. Which version of BP are you running?
2.7.410. Which theme do you use ?
woffice11. Have you modified the core files in any way?
yes12. Do you have any custom functions in bp-custom.php?
i dont think so13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
bult in15. Which company provides your hosting?
sitegroundVersion of WordPress: 4.7. Version of BP: 2.7.4.
Link to site: classroomlink.orgI use WPML to create a multilangual site along with BuddyPress.
Here is the problem: when I navigate between pages on Japanese (2nd language)
– the site loads back to English (main language)
– users that are logged in keep getting kicked outCan you please tell me what possibly makes this happen?
Thank youJust looking at this table, I notice that versions 2.7.3 and 2.7.4 show a “DB Version” of 11272. But in fact downloading those versions reveals that they use DN version 11105, just like 2.7.0 does. This seems a little troubling, given how easy it is to extract the actual BP version and DB version out of the source tree:
$ find . -name 'bp-loader.php' | xargs egrep 'this->(db_)?version +=' ./2.1.1/buddypress/bp-loader.php: $this->version = '2.1.1'; ./2.1.1/buddypress/bp-loader.php: $this->db_version = 8311; ./2.2.0/buddypress/bp-loader.php: $this->version = '2.2'; ./2.2.0/buddypress/bp-loader.php: $this->db_version = 9181; ./2.2.1/buddypress/bp-loader.php: $this->version = '2.2.1'; ./2.2.1/buddypress/bp-loader.php: $this->db_version = 9181; ./2.2.3.1/buddypress/bp-loader.php: $this->version = '2.2.3.1'; ./2.2.3.1/buddypress/bp-loader.php: $this->db_version = 9181; ./2.4.0/buddypress/bp-loader.php: $this->version = '2.4.0'; ./2.4.0/buddypress/bp-loader.php: $this->db_version = 10071; ./2.4.3/buddypress/bp-loader.php: $this->version = '2.4.3'; ./2.4.3/buddypress/bp-loader.php: $this->db_version = 10071; ./2.7.0/tags/2.7.0/src/bp-loader.php: $this->version = '2.7.0'; ./2.7.0/tags/2.7.0/src/bp-loader.php: $this->db_version = 11105; ./2.7.3/buddypress/bp-loader.php: $this->version = '2.7.3'; ./2.7.3/buddypress/bp-loader.php: $this->db_version = 11105; ./2.7.4/buddypress/bp-loader.php: $this->version = '2.7.4'; ./2.7.4/buddypress/bp-loader.php: $this->db_version = 11105;

If we install BuddyPress on a subdomain, do we need to install a separate copy of WP there and then add the BuddyPress plugin?
And would there be any way to pull in things like recent pics and recent comments/posts from the subdomain to the main domain?