Search Results for 'buddypress'
-
Search Results
-
Hello. I added the code below in wp-content/plugins/buddypress/bp-themes/bp-default/members/members-loop.php, to display additional profile fields in the member directory and to display the member’s role (either ‘Subscriber’ or ‘Provider’). I only have 2 types of roles – Subscribers cannot edit posts and Providers can edit posts. In the code below, I specifically checked for the user’s role to determine whether I need to display ‘Subscriber’ or ‘Provider’.
Questions:
– is there a way to check for the capability instead – i.e., if the user can ‘edit posts’ then I will display ‘Subscriber’, otherwise I will display ‘Provider’? If so, can you please let me know how to do that as I have not been able to figure it out.
– is there a way to display a newline so that ‘Subscriber’ or ‘Provider’ will display on the next line, below the member’s title and company name. I tried to echo “\n” but it’s not outputting a newline and I have no idea why.
Thank you for the help.
<?php
/***
* If you want to show specific profile fields here you can,
* but it’ll add an extra query for each member in the loop
* (only one regadless of the number of fields you show):
*
* bp_member_profile_data( ‘field=the field name’ );
*/
if( bp_get_member_profile_data ( ‘field=Title’ ) )
echo bp_member_profile_data( ‘field=Title’ ), ‘ (‘, bp_member_profile_data( ‘field=Company’ ), ‘)’, ‘ – ‘;
$user = new WP_User( bp_get_member_user_id() );
if ( $user->roles[0] == ‘subscriber’ )
echo ‘Subscriber’;
else
echo ‘Provider’;
?>
Topic: Comcast won’t register
I’m not posting this as a support question because I don’t think it’s a buddypress or wordpress issue. I’ve had people try to register at two different sites (http://www.openadoptionsupport.com and http://www.supportforspecialneeds.com) hosted by two different hosts (OAS is at bluehost and SfSN is a virtualmin server at itx). When comcast users try to register, they don’t get an email and they don’t show up in the database (or the dashboard but that’s a given since they’re not in the database). I’ve tried changing the admin email thinking that was it but the deeper we got into it, the more we realized this isn’t on our end.
So I’m just curious. anyone else noticed this? Also at what point does WordPress create the account? At first I thought that comcast was just blocking the email but now with no record of a registration at all, I’m thinking the email isn’t even getting sent, which is why I thought it was a buddypress/wordpress glitch. But we can only replicate this with comcast and not that it’s happening on two totally different installs, I think it’s a wacky comcast issue.
Weird, eh?
I’ve posted on another forum but maybe this link is more appropriate.
I’ve set everything up on http://solarpowernewsonline.com/ as far as I can see that it be fully working (it is without Buddypress). BUT basic functionality of Buddypress is not as it should be…
For instance Blog Tracking is not happening at all across the site – when every setting suggest this should be happenning automatically. It simply isn’t!
Also, “Activity” works from the Administrator’s blob page but not from the other Blogger pages…
Sorry but how on earth can I get this basic functionality to work?
Thanks, Tim
Topic: ads plugin
I’m wondering what you are using for your Buddypress sites to place Adsense ads?
Topic: Blog links not associating…
Just testing out Buddypress but basic functionality in WP mu isn’t working as there is no association between the member’s blog pages and the “Blogs” links in the tags in the default theme….
In this test site http://solarpowernewsonline.com/
“activities” seem to work but most of the links simply do not link to the blogs or a listing of blogs as you’d assume- none of the blogs tabs work, more don’t from from the child blogs than the administrator’s blogs.
I’m using the blogs.domain.com format rather than domain.com/blog format but that should be considered (it is taken care of in WordPress Mu without Buddypress).
I’ve tried every option but there seems no setting to associate “Blogs” with “Blogs” as naturally you’d assume you shouldn’t need to!
What can I be doing wrong?
Tim
User goes to settings under their buddypress profile and changes their email address.
Where can I enable the notification for this?
[wordpress2.9.2+buddypress1.2.3]
Topic: proble with redirection
Hi!
I have another problem with buddypress about the post and the pages created. Here is the problem: http://screencast.com/t/ZWE3YWRi
Please help me with problem…
Aizza