Hi, i am trying to link the user-name in my themes navigation to the user-profile (frontend).
I am on
Wordpress 4.3.1
Buddypress 2.3.4
True Mag Theme 4.1 by CactusThemes
In the theme options i can enable to extend the navigation by the user-name, avatar and a little dropdown menu with links to edit profile and to logout.
Unfortunately the user-name and avatar are empty links and i want to link them to the users profile.
I asked the theme author but he couldn’t help and said i should ask the buddypress author 😉
so this is the html/php code for that little navigation extension
<li class="menu-item current_us">
<?php
echo '<a class="account_cr" href="<strong>#</strong>">'.$current_user->user_login;
echo get_avatar( $current_user->ID, '25' ).'</a>';
?>
<ul class="sub-menu">
<li class="menu-item"><a href="<?php echo $link; ?>"><?php _e('Edit Profile','cactusthemes') ?></a></li>
<li class="menu-item"><a href="<?php echo wp_logout_url( get_permalink() ); ?>"><?php _e('Logout','cactusthemes') ?></a></li>
</ul>
</li>
as you can see the href on the first a is empty.
Can you tell me what i have to write there to link it to the users profile?
and additionally could you tell me how to link the ‘Edit Profile’ link to the frontend profil-edit screen and not to the wordpress backend?
i noticed that when i activate the extended profile component of buddypress that this works. but then i have to fill that undesired name field on “base”…
The website i am talking about is http://wordpress.freekickerz.net
Login credentials for testing purpose are hallo/hallo
if you need any more information please let me know.
greetings from Cologne, Germany
Jan
With the upcoming custom header, and a plugin like this to customize the background of your profile, you are pretty close to the customization allowed on Twitter.
Allow your users to change their Profile page background using BP Custom Background For User Profile Plugin
This plugin will force usernames only across the site. If your usernames are their real names, that might be a fix: https://github.com/r-a-y/buddypress-usernames-only
Small caveat from the plugin readme:
By default, display names are enabled in the member header on profile pages. If you prefer usernames to be shown, add the following snippet to your wp-config.php file:
`define( ‘BP_SHOW_DISPLAYNAME_ON_PROFILE’, false );
Can you expand on that?
In a traditional install, on a Multisite network, BuddyPress is Network enabled by default. This doesn’t mean you have a social network on every site in your network, by default, when BP is network enabled, all it’s functions live on your main domain. The network activation allows that main domain to collect all of the activity from all of your subdomains. If one of your subdomains has bbpress active, then the forum posts from that subdomain are populated in the activity stream on the main domain. The main domain becomes the hub on which all activity from across your entire network of subsites is collected and can be seen.
If you don’t want your main domain to be the one that is collecting everything, and instead want that to be some other subsite on your network, you need the instructions I provided above.
Sorry, I meant this code, that’s what they had
form label,
#buddypress .standard-form label, #buddypress .standard-form span.label{
font-weight: 300;
text-transform: uppercase;
}
Unfortunately, this code did not work at all 🙁
Likely you’ll need to change the selector #buddypress .standard-form div.radio div label so that it’s appropriate for the theme you’re using.
…which I have uploaded to the root of the buddpress folder
It should go in the root of the plugins folder.
bp-custom.php
Hi, actually I’ve already added
add_post_type_support( 'recipe', 'buddypress-activity' );
to bp-custom.php in /wp-content/plugins. The recipes are counted in the “member activity stream”, but only the ones posted directly in the parent site, not the ones posted in the member’s blog.
I think it’s a pity you can’t use a “blog” as the user profile page, or at least give the user profile page, the same kind of customisation as a full blog install. I think this is more a “Facebook” kind of approach, everyone will have more or less the same kind of page, with minimal customisation option (I guess the header profile). But since WordPress already has a multisite option, and Buddypress already support multisite environment, have the chance to use the user’s blog as if it were his “user profile” would have been a huge facility.
@RafVin Here’s how to hide “All Members” tab with CSS.
Find a file called “style.css” in the wordpress active theme, add the code below and re-upload the file.
#buddypress div.item-list-tabs ul li.selected a {
display: none !important;
}
Warning! When you update your theme, you’ll loose these CSS changes so try doing this in a child theme if you’d like to retain the changes when you update your theme.
Showing custom tasks under personal? Well that requires some custom PHP coding or probably a plugin. Hopefully, someone will help you with this.
@konberg find a file called “style.css” in the wordpress active theme, add the code below and reupload the file.
#buddypress .standard-form div.radio div label {
text-transform: lowercase;
}
Warning! When you update your theme, you’ll loose these CSS changes so try doing this in a child theme if you’d like to retain the changes when you update your theme.
Let me know if that works.
I’m not sure what you mean by the “Top Tab Recipe”. If your theme is adding a custom post type, then you need to register that post type in order for it to populate the activity stream, and the user profile activity. BP should do exactly what you are looking to do once you do that: https://codex.buddypress.org/plugindev/post-types-activities/ Maybe your theme is doing this for you already if you are seeing activity generated when you post a recipe in the custom post type area.
Your alternative idea in the last paragraph would also certainly work. You don’t need multisite for that. Make every member of your community an Author on the main site: everything they publish will appear in the Custom Post Type “Recipes” archive, along with all the posts appearing on each users profile: this is their customized space, particularly once header profile images launch in BP 2.4. This would also give you more control over the experience. You could create a publishing checklist to make sure all the recipes are categories and tagged appropriately: https://github.com/danielbachhuber/Post-Checklist
Thanks for the reply on this and sorry just now getting back…life got in the way…can you explain in newbie elementary terms exactly what you were discussing in regards to having me show up as admin and not just looking like a logged in user on buddypress…what is happening is…when I log into my wordpress I show up on my webpage as like a logged in user..doesn’t say admin or anything…I want to be displayed as a admin/moderator for the site…how do I do this…in elementary terms please as I am new to WordPress although I have learned so much and have actually almost put up a complete website…but I am even newer to buddypress although I have it up on my site…these little kinks such as this one are getting in the way…thankful for this buddypress support forum….if you could help I would greatly appreciate it!! Rhonda
Gee, guys, thanks for not helping at all.
The name of the element is exactly what I am trying to figure out. If my registration form looks like thisL
WHAT IS YOUR GENDER
[] MALE
[] FEMALE
I am trying to change words MALE and FEMALE to lowercase. I went through ALL CSS files in my theme, and tried replacing text-transform: uppercase with text-transform: none but it did not help at all!
So more specifically, my questions are:
1) what exactly controls the lowercase/uppercase of profile field answer options. Something like this:
#buddypress .standard-form #basic-details-section – but what the hell exactly and how
and
2) where to find it
Thank you!
Can you describe the steps you took? Also provide any error messages you got along the way. We also need details of your environment (see When Asking for Support).
In my site, i am using buddypress but i am unable to update profile pages from front end. What should i do..??
Does anyone think BuddyPress should have a feature for adding media (photos, videos) in the activity stream without having to use a plugin?
There are 3 plugins for this (all are free). RT-media and Mediapress both are quite bulky plugins that have a lot features such as lightbox and galleries, and RT-media has a lot of extra add-ons. However, I have to use Activity Plus, as it is the only one that works without any problems for me.
Wouldn’t it be better for BuddyPress to include a feature to be able to upload media in the activity? Then plugins may be used to add to it for extra features like lightbox, galleries etc.
Others have mentioned this in the support forums a few times previously. Would this ever be considered?
It doesn’t work like that. In a multisite instance, your users can all have their own blogs (think wordpress.com). What BuddyPress does is allow you to see all of the activity from those subsites in one Activity feed (among other things).
I have set up the categories in the main site, and I expected to see the same categories on every site, but it doesn’t work.
Although this isn’t a BP feature, there is a plugin that does this. It hasn’t been updated in a while, but you could test it out, or purchase support from Brajesh and request a fix if you run into issues:
http://buddydev.com/plugins/mu-global-terms/. There’s a write-up on the plugin here: http://wptavern.com/wordpress-multisite-global-terms-plugin-share-taxonomies-across-a-network
Also in the user activity stream I cannot see the posts the user has written in his own blog.
That SHOULD work. You mention a custom post type though: is that the activity you are hoping to see? By default BP only shows posts and comments, not custom post types. You can register custom post types: https://codex.buddypress.org/plugindev/post-types-activities/
If the subsite that you are hoping registers activity is set to discourage search engines in Settings/Reading then it won’t register on the main site.
You may also want to try one of the default themes (twentyxx) to see if it’s your theme screwing things up. Many themes that tout themselves as BuddyPress-Ready, are doing some funky things best left to plugins in their functions.php file.
Check out this page, specifically option B: https://codex.buddypress.org/getting-started/installation-in-wordpress-multisite/
If you Network Activate BP, but then change what BP considers it’s “home” by adding this constant as described in that codex article: define ( 'BP_ROOT_BLOG', $blog_id );
Then bbpress activity from your main/root domain should populate the activity stream of your BP subdomain.
You can add items to the activity stream with bp_activity_add(). You could use your form values to build the content argument.
Ref: https://codex.buddypress.org/developer/function-examples/bp_activity_add/
Hello
I have BBpress activated on my main site but not my subdomain. Similarly, I have Buddypress activated on my subdomain but not on my main site. Is there anyway where I can link both together and make the site works the same way when both plugins (bbpress and buddyPress) are activated on single install?
I feel the way I am doing it now makes me lose an important function where users can view forum topics started, replies created, favorites and subscriptions. Users can’t view this using my current settings. Any insights? Is there any better way where I can link things on multisite?
Thanks
Hi,
At my WordPress/Buddypress site users can create custom post.
I want a “Write to the author” from the custom post- Using Buddypress message system.
I came across this code:
https://buddypress.org/support/topic/link-to-a-private-message/
Which I put in functions.php.
And it works fine.. Except the “Send To”.
The author name dosent get passed through..
The solution could be in this line:
$compose_url.=('r=' . bp_core_get_username( $to_id ));
I have tried to store a varible, and writing something like this:
$compose_url.=('r='$authorname'' . bp_core_get_username( $to_id ));
But I can’t get it right… Nothing really works.
It only works when I write it manually like this:
$compose_url.=('r=authorname' . bp_core_get_username( $to_id ));
But that, of course, dosent really work for me..
Have anybody success with sending a PM message from a post?
Or have some idea what I could do, to get the author name / username in the “Send To”-Field.
I’ve recently installed Buddypress to my WP theme
Can you explain exactly the steps you took?
Good evening, I would like to question.
I would like to hide from the activities page, the tab “all members” and make sure that on that page to show only tasks that appear in the tab “Personal”, the reshares (the reshares are handled by the plug-in of BP reshare imath ), the activities of groups that have registered (updates, new discussions, answers the discussions, updates of users also who are not my friends) and the activities of friends (all I publish my friends who are in the tab My Profile – activities – friends)
So I would like to divide the assets as has facebook.
You can kindly help me?
My WordPress version is 4.3.1., That BuddyPress is 2.3.4. I have the theme Kleo. My site is still under development.
Thank you.
Have you tried raising this with your theme’s creators, this seems more like a theme problem than a BuddyPress issue.