Search Results for 'buddypress'
-
AuthorSearch Results
-
January 2, 2014 at 5:19 pm #176286
In reply to: BP Single Activity Item View Breaks Page Layout.
modemlooper
ModeratorYou do not need to “integrate” BuddyPress with a theme in the current version. What theme are you using?
January 2, 2014 at 5:12 pm #176284In reply to: New great plugin, buddypress-wall by @megainfo
modemlooper
ModeratorWhat an exhaustive way to get “post to someone’s profile functionality”. This could have easily been done using the core activity stream without the need to remove and then replace with almost identical code.
You can add customized activity items with a custom post form. As for changing Activity text to Wall that is simple to edit as well. Adding custom template files for the activity isn’t a good idea as they can be altered in a theme.
Create custom activity using this function https://codex.buddypress.org/developer/function-examples/bp_activity_add.
January 2, 2014 at 3:39 pm #176279In reply to: Excluding Roles from the Member's Directory.
rianhall
ParticipantI am still having this problem and REALLY need a solution. I’m not a developer so ca anyone walk me through what I need to do?
so far I have added this to my functions.php
// to exclude only defined roles in the Buddypress Members LOOP function exclude_by_role($exclude_roles) { $memberArray = array(); if (bp_has_members()) : while (bp_members()) : bp_the_member(); $user = new WP_User( bp_get_member_user_id() ); $user_role = $user->roles[0]; foreach ($exclude_roles as $exclude_role) { if ($exclude_role==$user_role) { array_push($memberArray, $user->ID); break; } } endwhile; endif; $theExcludeString=implode(",",$memberArray); return $theExcludeString; }Then added this to my member-loop.php
$excluded_roles = array ('administrator', 'author', 'subscriber'); // this can be any roles you have set up if (bp_has_members( 'exclude=' . exclude_by_role($excluded_roles) . '&' . bp_ajax_querystring( 'members' ) ) ) :Unfortunately, no luck. It is not excluding any of the three roles noted above.
January 2, 2014 at 3:32 pm #176278In reply to: BP Single Activity Item View Breaks Page Layout.
davidassange
ParticipantOh, and am using the latest WordPress and BuddyPress.
January 2, 2014 at 1:31 pm #176276In reply to: change 'their' to 'his' or 'her' in activity stream
sundev
Participanthappy new year everybody.
Congratulations to us @mfmsw2youth. to get this solved.
@hnla. thanks for your contribution.@buddypress newbies: Please ensure to put the code in your theme-child to keep the changes in the feature update.
And of cause finally the BOSS himself 🙂 @henrywright-1. Thank you very, very much for the great code. It worked greatly.
January 2, 2014 at 11:48 am #176273In reply to: New great plugin, buddypress-wall by @megainfo
johnnymestizo
ParticipantI couldn’t get it working with the latest buddypress – just whitescreened my buddypress pages. (header still loaded.) will get back to you with some debug info…
January 2, 2014 at 12:51 am #176261In reply to: "Search" function in Forum
e-regular
ParticipantHi BuddyPress,
I am in the same boat as ProfC also – search functionality for BBPress forums is no longer functioning since I installed buddypress 1.9 with WordPress 3.8 – the URL does not change to http://domainname/search/blahblah when I hit submit.
Kind regards,
HenryJanuary 2, 2014 at 12:50 am #176260In reply to: Double message button
e-regular
ParticipantHi BuddyPress support,
I am having exactly the same problem. My website is http://plantswap.com.au – buddypress 1.9 with WordPress 3.8 install.
All Private Messages sent twice.
I am not using any other chat or PM plugins.
Cheers,
HenryJanuary 1, 2014 at 11:14 pm #176258In reply to: Changing slugs with bp-custom.php: No change!
January 1, 2014 at 10:43 pm #176255In reply to: Changing slugs with bp-custom.php: No change!
hughshields
ParticipantWith 1.8.1 I created a new page called “Clubs” and pointed the Buddypress Groups page to it so that the URL and breadcrumb now appear as “Clubs”. So this problem is now solved.
I would like to know the best way to change the word “Group” to “Clubs” on the rest of my site (Member Profile Tab etc). I see some very old threads that suggest using a language translation file but wanted to ask for the latest recommendations.January 1, 2014 at 8:34 pm #176248In reply to: change 'their' to 'his' or 'her' in activity stream
sunnyj
Participant@Henry
hope it will be okay writing it like this for clearity in case of anything happen? Also do I need to put the php tag as shown below:<?php
// filter gender field
function custom_activity_text_change_avatar( $entry, $user_id ) {
$gender = bp_get_profile_field_data( ‘field=Gender&user_id=’ . $user_id );if ( $gender == ‘Male’ ) {
$entry = sprintf( __( ‘%s changed his profile picture’, ‘buddypress’ ), $userlink );
} else if ( $gender == ‘Female’ ) {
$entry = sprintf( __( ‘%s changed her profile picture’, ‘buddypress’ ), $userlink );
} else {
// the user hasn’t told us if they are male or female so do nothing
}
return $entry;
}
add_filter( ‘bp_xprofile_new_avatar_action’, ‘custom_activity_text_change_avatar’, 10, 2 );?>
January 1, 2014 at 7:31 pm #176242In reply to: change 'their' to 'his' or 'her' in activity stream
Henry
MemberTry adding this to your theme’s functions.php file:
function custom_activity_text_change_avatar( $entry, $user_id ) { $gender = bp_get_profile_field_data( 'field=Gender&user_id=' . $user_id ); if ( $gender == 'Male' ) { $entry = sprintf( __( '%s changed his profile picture', 'buddypress' ), $userlink ); } else if ( $gender == 'Female' ) { $entry = sprintf( __( '%s changed her profile picture', 'buddypress' ), $userlink ); } else { // the user hasn't told us if they are male or female so do nothing } return $entry } add_filter( 'bp_xprofile_new_avatar_action', 'custom_activity_text_change_avatar', 10, 2 );Notes:
1. Your profile field should be called Gender and it should be a radio button. Options should be Male or Female
January 1, 2014 at 7:14 pm #176241In reply to: change 'their' to 'his' or 'her' in activity stream
sunnyj
ParticipantI will like to change it to HIS for male,HER for female and their for female I’m comfortable with that.As Henry explain above i think using a filter code like this will do the work only if i know how to correctly apply it in the buddypress core. Please lend your support. Thanks
“if ( is a male ) {
// the filter will be ‘his’
} else if{
//is a female, the filter will be ‘her’
}
else {
// a group, e.g company; the filter will be ‘their’
}”January 1, 2014 at 6:13 pm #176239In reply to: change 'their' to 'his' or 'her' in activity stream
sunnyj
ParticipantExample:
“themeethurpe changed their profile picture 4 days, 12 hours ago”In the above line of activity “themeethurpe” is a username of a guy who changes his profile picture, but as you can see, “their” above was surpose to be a singular pronoun “his” referring to a man not two or group of people. The same thing happens either for man or woman, I just wish buddypress could differentiate a man from woman in the activities stream using profile information just like facebook and other social network site instead of using plural pronoun “THEIR” for all.
January 1, 2014 at 2:32 pm #176234In reply to: change 'their' to 'his' or 'her' in activity stream
sunnyj
ParticipantKindly help out Henry in fixing this filter my problem is not different I have created a profile field Namely gender using radio button in buddypress xprofile members now have opportunity to select their gender male or female. Happy new year friends.
January 1, 2014 at 1:22 am #176229In reply to: Social network with gamification
December 31, 2013 at 11:35 pm #176227In reply to: Customizr Theme with BuddyPress
nscycwa
ParticipantI attempted to look everywhere for this including the forums. I noticed on the the customizr theme forums he is planning on making this work. However I do not know how long that will take.
In the mean time is there a theme out there similar to this theme, that buddypress ready?
December 31, 2013 at 3:35 pm #176221In reply to: BuddyPress 1.8.1 and Multisite
silverchief
ParticipantI’ve got this working for the most part on a testing site. I’m using mapped domains that use WordPress’ network functionality.
I’ve got Buddypress working, using the same community throughout the network, but it’s tricky. You have to configure buddypress the same under each site. It works, but I’ve got one small problem. When you create a group under one “site”, the group avatar doesn’t show up when you view it in the other domains.
For example, my base domain is FanCentral.co:
http://fancentral.co/groups/carolina-panthers/ (see the avatar)
– this was created under this base domainhttp://charlotte.fancentral.co/groups/carolina-panthers/ (no avatar)
http://fancentral.co/groups/charlotte-hornets/ (no avatar)
– this was created under the “Charlotte” subdomainhttp://charlotte.fancentral.co/groups/charlotte-hornets/ (see the avatar)
Compare the two:
http://charlotte.fancentral.co/groups
http://fancentral.co/groupsAnd one that hasn’t been configured yet:
http://newyork.fancentral.co/groupsDecember 31, 2013 at 12:46 pm #176218In reply to: ivette manzur : Need help with S2MEMBERS
Roger Coathup
ParticipantThat’s more of an s2member question than a BuddyPress one – so, better asked on their forums.
Anyway:
In your PHP template for displaying the user, you can add the following code:
echo get_user_field('s2member_access_label', $user_id);and to get the $user_id for the displayed user, you can use:
global $bp; $user_id = $bp->displayed_user->id;December 30, 2013 at 2:38 pm #176183In reply to: BuddyPress 1.8.1 and Multisite
kenrichman
Participant@bmk0220 What you are asking for is exactly what I need as well. I would love to see this in a future Buddypress. Without it, Multisite is limited for use with Buddypress.
Have you made any progress? Have you tried, for instance, Ron Rennick’s bp-multi-network plug-in (link above)?
December 29, 2013 at 9:00 pm #176171In reply to: Register and Activate pages redirect to home
itinigo
ParticipantAll it took for me to figure this out was asking the question. A further search revealed that because I am logged in to wordpress/buddypress already I am being directed away from the register / activate pages. If I disable maintenance mode and logout I can see the pages fine.
Cheers All.
December 29, 2013 at 10:51 am #176157In reply to: How to change the validation message?
Shmoo
ParticipantWhat I did is I changed the form + validation stuff inside the template files to customize my own forms and validation process.
First of all I didn’t like the default validation process that BuddyPress is using where you have to push Submit and then the script checkes if every field is filled correctly, if not it pushes a text_message into the page through an Action.
Result, often the error message shows up at the top of the page where you aren’t looking and not at the form where the problem occurs, and even more important it’s an extra page-load to get this message into the page.I didn’t like that so I left everything of that untouched as a back-up system and simply used my own ( Zurb’s ) validation JavaScript to check while writing if the fields are correct.
Plus this JavaScript disables the Submit buttons if a form or field is not valid.This is a screenshot of the Profile Settings page but all forms work the same so you can just diff into the template files and add alter them.

The script I use is part of Zurb’s Foundation Framework so if you don’t like to work with Frameworks like me you have to strip all the needed code out of it.
http://foundation.zurb.com/docs/components/abide.htmlThere are probably also scripts like this one to be found online.
December 29, 2013 at 1:00 am #176147In reply to: Need Help – Im Building a Custom Component for Music
stoi2m1
ParticipantWhen I found Buddypress Media I was 50% on the way to having my own custom component developed and it sounded impressive but… I was hoping for so much more and when i fell short. For starters, I have my own custom player for the site, couldnt tie into well, and playlists where hurting. Ill just stop there.
I just decided to continue building my own so… back to my question. Trying to add in custom taxonomy and post meta into the URL.
I used the buddypress skeleton component to build my music component. Id say its about 80% done now. Really just looking for help to getting custom taxonomy and possibly post meta into the music component url.
Thanks,
JesseDecember 28, 2013 at 8:25 pm #176140In reply to: [Resolved] Username vs display name
Henry
MemberHave you tried BuddyPress Usernames Only? https://wordpress.org/plugins/buddypress-usernames-only/
December 28, 2013 at 1:51 pm #176130In reply to: Need Help – Im Building a Custom Component for Music
b a
ParticipantI suggest looking inside Buddypress media
here is already done what you trying to do, so hope it helps
-
AuthorSearch Results