I would not do that. Not safe. You can create your own widgets.
When I log in and hover over my name > Forums > Topics Started, I get redirected back to home page of buddypress.org instead of the topics I started. Basically, any link from that drop-down redirects to home page. Please fix.
Thanks
ok great, that worked.
and now how would I get the users messages, friends etc. custom links within a users profile?
@craigheyworth
You would have to enable php in widgets before you do anything. You can use this code in your themes functions.php to enable it:
add_filter('widget_text','execute_php',100);
function execute_php($html){
if(strpos($html,"<"."?php")!==false){
ob_start();
eval("?".">".$html);
$html=ob_get_contents();
ob_end_clean();
}
return $html;
}
Then in a text widget you could add @modemloopers code above for examples.
WordPress 3.5.2
bbPress 2.3.2
buddyPress 1.8
Fresh installs on everything
Theme: Twenty Twelve
Plugins installed:
- bbPress
- BuddyPress
- NextGEN Gallery
- Page Links To
Hey
As this is a personal project, I’m only able to work on it at weekends.
So I’m trying to get links as I say directly to the logged in users profile, messages, friends etc in a widget.
What code would I need for this?
Since 1.8, the new bp_group_has_members() query is working great, but I do have one concern with this new approach. Previously, bp_group_has_members() sorted group members based on their join date (‘last_modified’ in the bp_groups_members table). After the update, the query is sorting based on ‘user_id’ instead.
It would be really great to have some sorting options added to bp_groups_has_members() in the future. I would propose that this function accept “type” and “sort” arguments, where “type” could take values of either ‘user_id’ or ‘last_modified’, and “sort” would be either ‘ASC’ or ‘DESC’.
From an organizational perspective, a group member’s join date is (typically) a more informative sorting variable, and depending on the use case, either ascending OR descending could make more sense. Giving BuddyPress users the ability to tweak their loop sorting in the function would be great.
Hope this is feedback that could be implemented. Thank you!
Hello,
I’d like to remove the css that loads in my header “admin-bar.min.css” of buddypress http://mysite.com/wp-content/plugins/buddypress/bp-core/css/admin-bar.min.css
It’s doing more worse than good.
How do I prevent this from loading?
@antonhh
I don’t want people to create groups, I want them to create projects.
So it’s not only the page title I have to change, it’s everything that is group related.
https://codex.buddypress.org/developer/customizing/customizing-labels-messages-and-urls/?
( https://codex.buddypress.org/developer/customizing/changing-internal-configuration-settings/ might also be useful… )
@doollard something’s getting lost in translation.
– By “database wp11”, do you mean your database prefix is wp11?
– WP/BP versions? bb-config.php is old school BP internal forums. Are you trying upgrade to latest WP/BP versions?
– Confused with “buddypress install the database bp77” and with a few lines after “but buddypress in the database wp11”, please explain what you mean
@rajeev-jain As you know, the Administrator should be able to see everything in the site. Have you gone through any basic troubleshooting like deactivating all plugins except BuddyPress and bbPress? Did you make any revisions to BuddyPress core files?
Click here to read further discussion.
First of all, thanks for quick responding.
As I told you before, I’m still a newbie in coding, so please don’t be to harsh with me. 😉
If I’d know what in particular I have to do or what I have to look for, I wouldn’t ask.
Ok…copy, edit, and rename the page.php to buddypress.php so it would be the template for all buddypress pages, got that. It works. But unfortunately that’s not helping me with my problems.
Let me be more specific:
I don’t want people to create groups, I want them to create projects.
So it’s not only the page title I have to change, it’s everything that is group related.
I guess it’s not that simple, is it? Or can I set a filter in bp-custom.php to achieve that goal. A code snippet would be great. 🙂
About the aria roles: BP (I think) takes these roles from my theme automatically. Just creating a buddypress.php and making some changes doesn’t work. I can’t just change these roles because that would mean I have to change my theme div roles. So it’s not that simple. How can I set a filter to get rid of the aria roles in bp divs?
<div id=”item-header” role=”complementary”>
<div id=”subnav” class=”item-list-tabs no-ajax” role=”navigation”>
<div id=”item-body” role=”main”>
What if I want to change a specific bp-file?
So far I found some files I like to change but I still have no clou where I have to contain them after editing. Do I put them also in the plugin folder like bp-custom.php?
Still learning 😉
Greetings
Sorry for late reply, been on vacation.
Thank you for your response @bphelp ! I think this is what I needed.
Only issue is that I am not having luck for the ‘unblocked pages’. I have the newest versions of WordPress and Buddypress. I am also using the 2011 WordPress Theme.
Please let me know what other info you need for troubleshooting. I would love to see this work and I am sure it would help you too.
I have deactivated most of the plugins (the site is live, so it’s tough to do a lot without COMPLETELY disrupting service), all to no avail.
Since the whole point of the site is to use BuddyPress, then I’m not sure how I’d test the new user registration without having it active.
The address of the new user registration page is http://www.finisjhung.com/Streaming/join-us
Hey there,
I want to realize a Team Roster with the help of buddypress. This Team Roster should display custom fields which are only editable by admins.
The structure seems like:
Group Name 1
- Nickname: Nickname 1
Rank: Leader (custom field which should only be editable by admins)
- Nickname: Nickname 2
Rank: Member (custom field which should only be editable by admins)
Group Name 2
- Nickname: Nickname 3
Rank: Leader (custom field which should only be editable by admins)
- Nickname: Nickname 4
Rank: Member (custom field which should only be editable by admins)
and so on.
I figured out how to display the above structure without the custom field “Rank” with the following code:
<?php if ( bp_has_groups() ) : ?>
<?php while ( bp_groups() ) : bp_the_group(); ?>
<?php if ( bp_group_has_members( 'group_id='.bp_get_group_id().'&exclude_admins_mods=false' ) ) : ?>
<div class="row ">
<div class="span12">
<div class="infobox1">
<h3 class="m_title">
<?php bp_group_name() ?>
</h3>
</div> <!-- end infobox -->
</div> <!-- end span -->
</div> <!-- end row -->
<div class="row ">
<?php while ( bp_group_members() ) : bp_group_the_member(); ?>
<div class="span3">
<div class="team_member">
<a href="#" target="_blank" class="grayHover"><?php bp_group_member_avatar( 'type=full&width=75&height=75' ) ?></a>
<h4><?php bp_member_name(); ?></h4>
<h6>Clanleader</h6>
<div class="details">
<div class="desc">
<p>Max Mustermann <br />
Musterstadt</p>
</div> <!-- end description -->
<ul class="social-icons colored fixclear">
<li class="social-twitter"><a href="" target="_blank"></a></li>
<li class="social-facebook"><a href="" target="_blank"></a></li>
<li class="social-gplus"><a href="" target="_blank"></a></li>
<li class="social-mail"><a href="" target="_blank"></a></li>
</ul>
</div><!-- end details -->
</div><!-- end team_member -->
</div><!-- end span -->
<?php endwhile; ?>
<?php else: ?>
<div id="message" class="info">
<p>This group has no members.</p>
</div>
<?php endif;?>
</div><!-- end row -->
<?php endwhile; ?>
<?php do_action( 'bp_after_groups_loop' ) ?>
<?php else: ?>
<div id="message" class="info">
<p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p>
</div>
<?php endif; ?>
However I got a problem with the custom field. I can’t find a possibility to say, that only Admins can edit specific custom fields of members in the buddypress core neither with a buddypress plugin. So I thought it’s maybe possible to create a custom field for the wordpress users which can only be edited by admins and can be displayed inside the bp_group_members-loop.
I’ve created this custom user field with the Plugin “Cimy User Extra Fields”. I know it is possible to show the custom user field with this code:
$value = get_cimyFieldValue(user_id, field_name);
echo cimy_uef_sanitize_content($value);
However I can’t figure out how I can get the ID of the buddypress member into the user_id. May you can help me with that?
Thanks for your help.
Mats
Hi friends,
I am using recent version of WordPress, BBpress and Buddpress on my website….Everything is working fine……..except one problem……..When I (Administrator) click on Activity streams option, system shows blank page but when other registered or unregistered members click on activity streams option they are easily able to see that page. same is happening with buddypress group’s activity page…….Would high appreciate if anyone could suggest the remedy.
Thanks in advance. Regards
@jloc14 just to be clear, you should have these files https://buddypress.trac.wordpress.org/browser/tags/1.8/bp-themes/bp-default inside the bp-default theme folder in your server. If you don’t see all those folders and files, then re-upload BuddyPress manually, i.e., via s/FTP.
If you have child theme of the BP Default theme, then you should activate the child theme, not the BP Default theme.
Deactivate BuddyPress and other plugins. Can your members register now?
Ok. I deleted the buddypress plugin and my site is white and my header, background, footer, and login in gone. I made a zip file backup on my desktop but I cant seem to restore it to the original state. I went into my hosting and restored it from yesterday but it didnt do anything what should I do? Thank you.
Hi!
I installed WordPress – database wp11
in wp-config.php database wp11
buddypress install the database bp77
in bb-config.php database bp77
but buddypress in the database wp11
????
How to Fix
@stueynet what plugins do you have installed? Did you create your site pre-BP 1.7 as in do you have BP Template Pack activated?
Hi @boiy,@benjino
Add the code in your functions.php, the code exlcude all admins from buddypress. You can edit the code and personalize it to make it work for your needs.
https://gist.github.com/dzmounir/6043674