Search Results for 'buddypress'
-
Search Results
-
Hi,
Using
function profile_tab_event() { global $bp; bp_core_new_nav_item( array( 'name' => 'Events', 'slug' => 'event', 'screen_function' => 'event_screen', 'show_for_displayed_user' => false, 'position' => 70, 'parent_url' => bp_loggedin_user_domain() . '/event/', 'parent_slug' => $bp->profile->slug, 'default_subnav_slug' => 'event' ) ); } add_action( 'bp_setup_nav', 'profile_tab_event' ); function event_screen() { // Add title and content here - last is to call the members plugin.php template. add_action( 'bp_template_title', 'event_title' ); add_action( 'bp_template_content', 'event_content' ); bp_core_load_template( 'buddypress/members/single/plugins' ); } function event_title() { echo 'Events'; } function event_content() { echo 'Content'; }I created a new tab for users. But how can this be limited to specific user types? Different user types see different tab and/or different content in the tab?
I suppose it could use this code:
$member_type = bp_get_member_type( bp_displayed_user_id() ); if ( $member_type == 'userA' ) {Though not sure how to apply it.
Any suggestions would help.
using buddyboss theme
WordPress 5.8
BuddyPress 9.0.0
bbPress 2.6.6
AuthorReady.com (paid member site, so link won’t help much)I recently installed bbPress and BuddyPress on my existing paid membership website. The forums and groups are part of the membership and not viewable by the public. I created forums and topics for each group; however, when I try to open a topic in the group’s forum, it will display the first topic, regardless of the URL.
For example, if I am on my group’s forum page (authorready.com/groups/action-thriller/forum/) I see two forum topics: Beta Readers and General Discussion. When I select Beta Readers (authorready.com/groups/action-thriller/forum/topic/action-thriller-beta-readers/), it displays as expected. However, when I click the second topic for General Discussion, the URL is correct (authorready.com/groups/action-thriller/forum/topic/action-thriller-general-discussion/), but it displays the Beta Reader information instead.
I deactivated BuddyPress and the bbPress forums work as intended. The issue is isolated to how they display in the BuddyPress groups. Any ideas why this is happening and how I can fix it?
Hey guys, I saw a post here on how to add a new topic button which is pretty cool.
So it got me to look at form-topic.php and from it created my own simplified “create a new topic page” however it shows a dropdown-box to select which forum the user wants the post to go to but I just want this form just for one forum which I have the id for.
How do I change the drop-down to auto-select the forum I want by default?
Thank you.Topic: Changing Profile Design
Hi, new to this whole BuddyPress thing. Trying to make a social site and I’m having a rough time with it.
I’ve searched and searched, here included, for info on how to change the colors and design of the profile page, but all I ever find is how to add new fields. I don’t want to add new fields, I want to change the colors. Can’t find it anywhere. Please help.
WP/BP versions – current
I found out that the registration page for BuddyPress, when set in the dashboard overtook the page I had customized. To avoid that, I gave it is own page, so that my “normal” login was the customized one.
However, I notice that the Buddypress registration is letting a lot of spam registrations in, since it is not using captcha. Is there a way to disable it completely so I can just keep my own page the way I set it up?Topic: image upload preview issue
buddypress: 9
theme: Gwangi
main domain: imin.co.il
Core: no core changeswhen upload profile photo the preview is displayed wrong
thanks
oriHi all,
I have recently upgraded to Buddypress 9.0 and an existing function hooked in uploading a new avatar no longer appears to be working. Could you let me know please what is the correct hook now? I looked through the supplied Actions & Hooks pdf, but no luck so far in trying those. I also searched for “Avatar hook” in the forums and no results unfortunately.
*Wanted to note that the profile picture/avatar is being uploaded to WordPress correctly
Here is how the function was being registered before:
add_action( 'bp_members_avatar_uploaded', [self::class, 'UpdateAvatarToSalesforce'], 10, 3 );Here is the function prototype:
public static function UpdateAvatarToSalesforce($item_id, $type, $avatar_data)Thank you in advance!
I’m using MemberPress and BuddyPress. I have all other plugins disabled at the moment. My problem: I’m using the BuddyPress members feature that shows a list of all the members. But when I click on a name in the list, it does not go to their profile.
For example, mysite.com/members displays all the members, paginated, but if I click on a member’s name, it goes to mysite.com/members/member-name, and not mysite.com/members/member-name/profile. It was working earlier today. Any ideas?
My BuddyPress settings are all defaults. WordPress 5.7.2, BuddyPressβsame behavior on previous version and 9.0. My site is members only (and still in development), so I can’t link to the page with the issue.
We have added the “Buddypress Global Search” plugin, and while viewing the search results, the activity/ activity comments are not clickable. We want to let the user select an activity, and view the comments/interactions on a separate page. How do we do this? Should we change the permalink settings? What is the permalink/ the plugin settings to make this possible?
I need help fixing our registration page. See error encountered below:
Fatal error: Uncaught Error: Call to a member function profile_groups() on null in /home/customer/www/members.rightsizeyourhome.com.au/public_html/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-template.php:101 Stack trace: #0 /home/customer/www/members.rightsizeyourhome.com.au/public_html/wp-content/themes/woffice/buddypress/members/register.php(53): bp_profile_groups() #1 /home/customer/www/members.rightsizeyourhome.com.au/public_html/wp-includes/template.php(732): require(‘/home/customer/…’) #2 /home/customer/www/members.rightsizeyourhome.com.au/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(165): load_template(‘/home/customer/…’, false, Array) #3 /home/customer/www/members.rightsizeyourhome.com.au/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template(Array, true, false, Array) #4 /home/customer/www/members.rightsizeyourhome.com.au/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(350): bp_get_template_ in /home/customer/www/members.rightsizeyourhome.com.au/public_html/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-template.php on line 101
When I go to BuddyPress Pages in settings I get this –
“Registration is currently disabled. Before associating a page is allowed, please enable registration by selecting either the “User accounts may be registered” or “Both sites and user accounts can be registered” option on this page.”
So I go to the Network Settings and have allowed user registrations & saved. Refresh the page and it says that user registrations are allowed.
But if I go back to the BuddyPress settings I still get the message (above) that I need to allow registrations!
Help!
Hi,
Please help me, i installed buddypress and everything works fine, except whenever i log in and click on profile, i get redirected to a page which has not header or structure whatsoever (https://www.merrygokids.com/members/oyeakd/profile/)…..that is the link for me. but my problem is i want to edit or customize or at least add an header to it but it simply does not exist in backend.
Please help me
my site = merrygokids.com
theme = teriz onepage multipurpose
wordpress = 5.7.2
buddypress = 8.0.0
Hello !
First of all, I apologize if the answer already exists, but I am new to the php language, and I do not understand much …
I created a website for an organization, and I set up a community space thanks to Buddy Press and Youzify.
Here is my question: I want to make this space completely closed, and not accessible to non-logged in users. I tried putting this php code in wp-content / plugins / bp-custom.php:
<? php
/ **
* Redirect the Buddypress directories to the login page for non logged in users.
* /
function yzc_redirect_bp_directories_to_login_page () {if (! is_user_logged_in () && (bp_is_groups_directory () || bp_is_members_directory ())) {
// Get pages Buddypress;
$ bp_pages = get_option (‘bp-pages’);// Get the redirection URL
$ redirect_url = youzify_get_login_page_url ();wp_redirect ($ redirect_url);
go out();
}
}add_action (‘template_redirect’, ‘yzc_redirect_bp_directories_to_login_page’);
Now unconnected users cannot have access to member directory and groups directory, but I would like to block access to all BuddyPress pages (such as member profile pages, activity page. ..) and redirect to the login page.
Could someone help me complete this piece of code?
Thank you for your help