I think to avoid conflict you can add
add_theme_support( 'buddypress' );
in your child theme function.php file.
For more info visit the following link.
BP Theme Authors: make sure your theme registers 'buddypress' support
Hope this would help others in the community.
Sorry, newbie question here. I have spent quite a lot of time searching for an answer, but haven’t had any luck in finding a simple solution.
I just want to enable users to be able to upload and post images in my BuddyPress forum and for the images to appear in the body of their forum post.
I’d really appreciate some tips. 🙂
Hey @shanebp – thanks for sharing – I think this might only work if you are looking for friends + personal activity.
I’ve been scouring the forums and wp stack exchange and haven’t found anyone that has got this setup working. I’m seeing a lot of people saying it can be done but no actual code examples or suggestions for how. I do see that personal + friends activity can be combined with the example given on the activity loop page.
Is there anyone in the buddypress dev community that has, in practice, combined various scopes successfully?
Hi
i created a bp-custom.php and regrouped the menu items fine. But now i am trying to add a link to go to /site/members. It list all the members. When i add it though it goes under the profile I am viewing. I am redirecting to a wordpress page if that helps.
example with it added
http://website.com/log-in/members/username/members/
i want it to go just here
http://website.com/log-in/members/
I would love to learn how to just put a url and no slug but whatever works.
Here is the function
function mb_bp_profile_menu_posts() {
global $bp;
bp_core_new_nav_item(
array(
'name' => 'Members',
'slug' => 'members',
'position' => 60,
)
);
}
Hi Guys
I have a small buddypress user-base around 500 users, I am getting allot of issues with users misplacing or forgetting usernames and passwords. (welcome emails get sent containing both)
I have the “forgot password” link which is great but for some reason users keep trying to login with an email addresses (which is not the correct)
Does anyone know a plugin or function that will allow me to have a link for “forgot username” like the forgot password. which is pretty common on big sites.
I have searched here and google and all I get is forgotten admin usernames for wordpress.
Hi
Thank you for suggestion
I tried RTmedia but that gives members an option to upload media. I’m looking for a way for members to easly embed vimeo or youtube on there profiles. Alternatively do you know of any good themes useing buddypress with easy interfaces for members to make their creative portfolios on including embedding vimeo.
all the best
Hi @packjazz,
One of the main uses of cookies within BuddyPress is in template message display. In this case, cookies are used to store generated error or success messages and display them after the page has been reloaded.
If you try searching the BP code base for setcookie, you should find how else BP utilises cookies.
Note: WordPress probably utilises cookies too.
I have a client who wants to know how BuddyPress uses browser cookies. Is there any documentation or resource with this information?
Well I thought it was a BuddyPress issue, which is why I came here. But if you’re all saying that the code I have should be working, then I will definitely contact theme support next.
Just did a quick test in bp-activity-template.php. This isn’t any kind of solution as i’m editing core files.
As suggested in another thread I created an additional ‘case’ in bp_has_activities(). This code does not work and is a pretty basic attempt. Note that I only included the case here, there are a few other edits required in the function. This will return posts by friends in groups you belong to.
The issue seems to be that we want $primary_id OR $user_id below, not BOTH. Does someone have some insight into a way around this? Or can someone confirm that this is in fact the issue?
case 'groupsfriends':
if ( bp_is_active( 'groups' ) ) {
$groups = groups_get_user_groups( $user_id );
if ( !empty( $groups['groups'] ) ) {
$object = $bp->groups->id;
$primary_id = implode( ',', (array) $groups['groups'] );
}
//$user_id = 0;
}
if ( bp_is_active( 'friends' ) )
$friends = friends_get_friend_user_ids( $user_id );
if ( empty( $friends ) && empty( $groups['groups'] ) )
return false;
$user_id = implode( ',', (array) $friends );
break;
Seems not to be possible for the moment. If you read the ticket, Boone says:
It’s a nice thought, though I’m not sure if it’d be possible to make this work without refactoring the entire activity query class. Moving to Future Release for discussion.
Feel free to disccuss this on #4988 or try to create a patch.
Hey @danbp Thanks for the response. I looked into that thread and that led me to this:
bp_has_activities to accept multi scope
This is an enhancement marked for future review… 14 months ago :\ – Looks like the only way to do it is to write a new class/function.
Is there anyone out there that has written something that includes multiple scopes? Is it possible?
@snarkypuppet,
for simple filtering, you can use the template file and the appropriate conditionnal (bp_has_activities….) for the activity loop
For more complex filtering it is better to write your own function.
So yes it can be done.
For ex like here
https://buddypress.org/support/topic/filtering-activity-stream/
We’ve recently installed Buddypress and all of the relevant pages seem to have been created. But even when logged in as admin we’re unable to create new groups. When I click the ‘new groups’ link it just takes me to the front page of our site. How can I fix this?
hi @commoneasy,
anything concerning friends is in /buddypress/bp-friends folder.
It is unclear to me what you want to achieve exactly. Can you please explain the difference between what BP does natively with friends request and you want to get by having a sub-nav item leading to… what exactly ? How do you figure this out ?
Freend request is a more complex affair as simply getting the “request loop” on a separate template.
Hi
I want to create a #link in the “private message” button/link that is on the profile page. So when people click on the “private message” button they are taking down to the compose form. This is a nice thing for user on iPhone. It is a little weird to click “private message” and then all mobile users are seeing is their avatar. So I wanted to create a #link.
My problem is that BuddyPress does not pick my custom bp-messages-template.php in my childtheme/buddypress/bp-messages/bp-messages-template.php. Cannot I not move this file over or is it only legacy folder I can move to my child theme?
If I can’t is there anyway to change the below filter for the message link and paste that into my function.php?
function bp_send_private_message_link() {
echo bp_get_send_private_message_link();
}
function bp_get_send_private_message_link() {
if ( bp_is_my_profile() || !is_user_logged_in() )
return false;
return apply_filters( ‘bp_get_send_private_message_link’, wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/compose/?r=’ . bp_core_get_username( bp_displayed_user_id() ) ) );
}
I want to add #messageform to the end of the link.
I am not super skilled at using filters.
Thanks
Philip
I need some ideas, I’m not a programmer, but I realise this may take some work. I think it is also something that needs to be built into Buddypress as it is the fundamentals of a social network.
I need to create a profile page that combines a few page views – it needs to show the users activity feed, plus their Extended Profile information, and also a slide show of their uploded images and also have a playlist. The page could also do with some advanced member customisation options such as loading a cover image like facebook has.
A big part of any social network is allowing members to personalise and take pride in their profile page. Sadly such features are really lacking in Buddypress.
I know this is a pretty big and complicated ask, has anyone done similar? Could you outline the basic steps that I would need to do in order to start moving towards this kind of layout?
Ideally, their would be an amalgamated “My Profile” page where members can see how their profile page looks to others, with edit buttons for the information and also thematic changes like colours etc.
@spikespiegel,
please read here and provide more details and if possible give a site URL.
All of your topics are so far related to some weird settings of your wordpress/buddypress installation. So it is somehow complicated to help you if you don’t resolve this first.
There is no shame to read the WP codex by the beginning: get started and to follow each step.
Hi @simpleone,
you can actually only hide xprofile fields. Hiding field groups is not possible, due to a bug.
But it is corrected for 2.1 and you’ll find a patch on the trac.
You can already apply the patch to 2.0.2 bp-xprofile-classes.php and the above snippet will work. Add it to bp-custom.php or theme’s functions.php
To hide an xprofile group, use bp_parse_args like this:
function bpfr_make_profile_tab_members_only( $retval ) {
// hide to non members
if( !is_user_logged_in() ) {
// exlude groups, separated by comma
$retval['exclude_groups'] = '4,5';
// exclude fields, separated by comma
$retval['exclude_fields'] = '1,39';
}
return $retval;
}
add_filter( 'bp_after_has_profile_parse_args', 'bpfr_make_profile_tab_members_only' );