Search Results for 'buddypress'
-
AuthorSearch Results
-
February 3, 2015 at 9:14 pm #233515
In reply to: How to make section of profile private?
screampuff
ParticipantThanks for the reply Henry.
I experimented with the code but couldn’t get it to work. I believe it has something to do with
if ( bp_current_action() != 'achievements' )I’m not sure if this is the best way to describe it, but when I previously used
bp_core_remove_nav_item('achievements');it made the /members/username/achievements outside of the buddpress page. It basically created a new page that had nothing but a list of the user’s achievements. The part it called from the plugin code. It doesn’t show the username, avatar or anything else from buddypress.Also thanks for that update Shane.
February 3, 2015 at 5:35 pm #233498In reply to: [Resolved] Creating the forum and groups
tracymisidore
ParticipantI am using the latest wordpress and buddypress 2.1.1
I have not tried changing my wp theme…February 3, 2015 at 5:23 pm #233496In reply to: Group Page is BLANK???
shanebp
ModeratorDuplicate of https://buddypress.org/support/topic/creating-the-forum-and-groups/
Please do not double post.
February 3, 2015 at 4:35 pm #233492In reply to: [Resolved] Members page pagination broken
miguelcortereal
ParticipantWorking now!
There’s nothing wrong with the theme suffusion, any plugin or Buddypress.
All I had to do was perform a browser’s cache cleaning.
Certainly there was an outdated jquery version loaded on my browser’s cache.
Thanks a lot Henry for your concern.
February 3, 2015 at 2:10 pm #233481In reply to: ajax problem
vl4d
Participantso if i have activate the buddypress
1. page navigation is not working http://prntscr.com/60jw72 here is missing the button “more videos”
2. http://prntscr.com/60jwhj this is Show/Hide Blog – Layouts Switcher Tool again is not working just i press and noting..
3. i have in home page a slider with icons and plays like 2-2-2-2(next-previous) now is all 10 one below the other and more like this..only if i have the buddypress on is this problems (if you want i can give you the link from my page to see..)
February 3, 2015 at 12:01 pm #233478In reply to: Modify the activity loop
Henry Wright
ModeratorHi @deshmukh
- You can add items to the activity stream using
bp_activity_add(). You’d write a custom function and hook it to the relevant action which fires when a group message has been posted (see a) - The
display_commentsparameter will help you here. You’ll need to changethreadedtostream(see b)
Refs:
a) https://codex.buddypress.org/developer/function-examples/bp_activity_add/
b) https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/
February 3, 2015 at 11:38 am #233474In reply to: Show profile fields in description/ excerpt
Henry Wright
ModeratorYou’ll need to modify your members template. Check out the BuddyPress Template Hierarchy for more info on the template system.
To show a specific profile field inside the loop, you can just do:
bp_member_profile_data( 'field=the field name' );February 3, 2015 at 10:26 am #233473danbp
ParticipantI guess something is not translated, but in this case, the email text should come in english.
If yo use an “old” translation from a previous version, it is possible that something is missing in your translation.
After checking both portugese version on GlotPress, (pt_PT and pt_BR) it appears that pt_PT is not translated for 2.1.x and to 38% for pt_PT in the dev version – the one actualy used by BP 2.1.1
https://translate.wordpress.org/projects/buddypress/dev
If you use an email plugin, ensure it is matching with WP’s mail action. Or if your theme has is own mail function, check that he uses the same wording as BP (and particulary the $s var) who fires the link.
Code in 2.1.1 looks like this
%1$s,\n \n \n \n Thanks for registering! To complete the activation of your account and blog, please click the following link:\n \n %2$s\n \n \n \n After you activate, you can visit your blog here:\n \n %3$sFebruary 3, 2015 at 7:56 am #233470In reply to: Help required
Kir 2012
ParticipantHi as an update, I tried using the plugin outside of the sidebar tabs plugin and the problem is still there, so I tried using this buddypress-activity-sidebar-widget-resubmission to see if the like’s were pushed to the side in that one too, and the weren’t, that one is perfect, so i’m sure it’s the styling in sitewide activity. Any tips would be most welcome 🙂
February 2, 2015 at 11:42 pm #233453In reply to: Edit Profile Redirects to different page
BaldEmotions
ParticipantInteresting. Might be a theming issue. Kleo is built for buddypress and bbpress, but maybe an error.
Will have to look into that side of things.February 2, 2015 at 8:16 pm #233443In reply to: [Resolved] Members page pagination broken
miguelcortereal
ParticipantThanks Henry for your quick response.
I’m using Suffusion theme.
I’m not using template pack conpatibility provided that since BP 1.7 it just became unecessary. However I’m using in child theme /buddypress/members/members-loop.php which I’ve copied from BP-legacy and customized to have a different layout and display xprofile fields information.
I removed this file to force the use of the original BP markup and the problem remains.
So it’s Ajax related.
I’ll try to check theme’s and BP’s Javascript files.
February 2, 2015 at 7:25 pm #233436In reply to: Dependant field in registration
modemlooper
ModeratorNothing in BP core, you can try this plugin http://buddydev.com/plugins/conditional-profile-fields-for-buddypress/
February 2, 2015 at 7:22 pm #233434In reply to: Blog & Forum Comments
danbp
ParticipantSince BuddyPress 2.0.0 you can use this in bp-custom.php
function namrons_activity_nocomment( $can_comment = true, $type = '' ) { if ( empty( $can_comment ) ) { return $can_comment; } // activities which can't be commented $cant_comment_types = array( 'new_forum_topic' => 1, 'new_forum_post' => 1, ); return ! isset( $cant_comment_types[ $type ] ); } add_filter( 'bp_activity_can_comment', 'namrons_activity_nocomment', 10, 2 );February 2, 2015 at 7:17 pm #233432February 2, 2015 at 7:15 pm #233431In reply to: Blog & Forum Comments
modemlooper
ModeratorFebruary 2, 2015 at 2:42 pm #233422In reply to: Notification
Brajesh Singh
ParticipantHi Christian,
no problem. If you decide to not use it again, you can use my plugin BuddyPress notification widget in that case.About the notice plugin,
I will write the code tonight and put on github and link here.
Thanks
BrajeshFebruary 2, 2015 at 10:45 am #233416In reply to: How to restrict group creation
youmin
ParticipantFirstly is have set 3 members type using
member_type()function . then I set the roles
Using Henry’s solution
I.eadd_role( 'student', __( 'Student' ), array( 'read' => true, // true allows this capability 'edit_posts' => true, 'delete_posts' => false, // Use false to explicitly ) );Then by using this function I tie these roles to wo roles.
function youmin_set_role( $user_id, $member_type, $append ) { $userdata = array( 'ID' => $user_id, 'role' => $member_type ); wp_update_user( $userdata ); } add_action( 'bp_set_member_type', 'youmin_set_role', 10, 3 );But still every user is able to create group since by default wp role ‘subscriber’ is loading and buddypress user role let’s the subscriber to create group.
So isn’t it possible to pass an array to above role function to restrict group creation ? Or any other code snippet ?
Take a look at https://buddypress.org/support/topic/how-to-bp_set_member_type/
February 2, 2015 at 9:58 am #233410In reply to: BP Page Title Errors in WP Twenty Fifteen Theme
@mercime
Participant@wadsworth4 @danbp Reported the Twenty Fifteen issue https://buddypress.trac.wordpress.org/ticket/6107
February 2, 2015 at 9:51 am #233408In reply to: Notification
Brajesh Singh
ParticipantHi Christian,
There is one functionality in BuddyPress that allows it. You can see the feature as site wide notice(Mark a message as notice).The problem is currently, only a user with the capability ‘bp_moderate’ can send the notice. Do you want to allow this notification feature for all users or just selected few?
February 2, 2015 at 9:49 am #233407In reply to: problem about change username
bringmesupport
ParticipantHi @fptquangngai,
I am assuming you are referring to the name shown in the screenshot below:

This name you want to change is coming from the line bp_core_get_userlink( $user_id ); in the snippet you provided, which is part of the bp_message_get_recipient_tabs() function defined in the BuddyPress plugin under bp-members > admin > bp-members-functions.php.
It seems there are two things you can do here:
1. You can replace the bp_core_get_userlink() function in the message template (located at wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\single\messages\compose.php) with your own custom function. See BuddyPress Codex for how to properly do this.
OR
2. Create a filter.
Since the bp_core_get_userlink() function uses the ‘bp_core_get_userlink’ filter for the returned value, you can hook into this filter and modify it in your theme’s functions.php file (or your own custom plugin). The only problem is that since the bp_core_get_userlink() function is used in other parts of the code (notably the BuddyPress Login Widget), you will have to make it so that the custom filter is used only under certain conditions.
Here is the custom filter I came up with. Its not refined, but serves as a working example:
add_filter( 'bp_core_get_userlink', 'my_bp_filter', 10, 2 ); function my_bp_filter( $string, $user_id ){ global $pagename; if ( isset( $_GET['r']) && $pagename === 'compose' ){ $username = bp_core_get_username( $user_id ); if ( $_GET['r'] === $username ) { $string = explode(' ', $string); $string = $string[0]. ' '. $string[1]. 'Alt="' . $username . '">'. $username . '</a>'; } } return $string; }February 2, 2015 at 9:47 am #233405In reply to: Plugin directory pagination broken
@mercime
Participant@number_6 @sbrajesh Thank you for the report. https://buddypress.trac.wordpress.org/ticket/6180 🙂
February 2, 2015 at 9:05 am #233402In reply to: Plugin directory pagination broken
Brajesh Singh
ParticipantHi,
the problem is that currently the pagination links are broken.
for example if you put the page number manually like this
https://buddypress.org/extend/plugins/?ppage=5
It will work. After the second page, the pagination is broken .I am not sure if the moderators, developers are aware.
February 2, 2015 at 6:56 am #233400In reply to: Activity Stream Homepage Compatibility Issues
bazaarocommunity
ParticipantThat’s really too bad. Looks like it has been moved to a future release instead of 2.2 unfortunately.
Is there a way to replicate the Activity Loop, Comment Box, etc. on a separate homepage instead of using the ‘Activity Stream’ template?
For example, the theme I’m using allows me to display the activity loop using shortcode and that doesn’t seem to cause an issue. So, I think if I could build a front-page.php template that performed the activity loop, comments, etc., it would bypass the issue.
I tried to copy and paste the index.php content from buddypress/activity/ into a front-page.php file, and the formatting didn’t work out because I think all the references rely on the files being located in the original hierarchy.
February 2, 2015 at 6:23 am #233396In reply to: Activity Stream Homepage Compatibility Issues
Brajesh Singh
ParticipantHi,
It is a bug with BuddyPress and there is still an open ticket for the purpose.
You can see the details herehttps://buddypress.trac.wordpress.org/ticket/5087
and here
https://buddypress.trac.wordpress.org/ticket/5643At the moment, there does not seem to be a solution. The problem is that query variable ‘s’ is used for Normal WordPress search as well as BuddyPress activity search too. So, When BuddyPress activity is set as home page, the wordpress search query( which is like sitename/?s=someterm) is mistaken for BuddyPress activity search and gets handled by BuddyPress causing the trouble.
It will need some work on the way BuddyPress catches url(I am hoping that). let us hope that it makes to the core soon.
February 1, 2015 at 6:03 pm #233368In reply to: Edit WordPress Profile and Xprofile in one screen?
peter-hamilton
ParticipantDon’t know how to do that, but you could add extra fields to your Buddypress profiles to achieve a similar outcome.
- You can add items to the activity stream using
-
AuthorSearch Results
