Forum Replies Created
-
In reply to: Activity comments not visible to logged out users
Hi @lucadgg,
Add the code to functions.php of your current theme.
/** this code hide comments for no logged in users*/ add_filter( 'bp_activity_get_comment_count' , 'bp_only_loggedin_can_see_comments', 10,1 ); function bp_only_loggedin_can_see_comments( $count ){ if ( !is_user_logged_in() ) $count = 0; return $count; }In reply to: bp_moderate and other capabilitiesHi @glyndavidson,
Please read this ticket hoping this can help you to understand more about bp_moderate capability.
In reply to: BuddyPress Activity PrivacyIn reply to: Push Twitter to BuddyPress?BuddyStream work fine if you follow the setting.
I think Bowe Codes plugin can help you:
https://wordpress.org/plugins/bowe-codesIn reply to: Only friends and group members activitybp_has_activities dont accept more than one value for scope param.
ie : you can’t do that by using bp_has_activitiesIn reply to: Best Captcha & Spam Protection for BUDDYPRESS?Hi @wpdragon,
I think BuddyPress Security Check plugin is the best.
https://wordpress.org/plugins/bp-security-check/In reply to: Excluding Roles from the Member's Directory.Hi @rianhall,
add this code to functions.php :
https://gist.github.com/dzmounir/8285459
No need to edit any template files. Just change
$excluded_roles = array( 'administrator', 'subscriber' );by puting the role ids to hide.
In reply to: BP 1.9 : issue with hidden fields visibilityHi,
There is no Visibility level for “admin only”,
the “Only me” mean only the current member can see the field.hi,
try this
friends_get_friend_count_for_user( $user_id );Or this if you call it in a member page :
friends_get_total_friend_count()In reply to: New great plugin, buddypress-wall by @megainfoOf course if your try the plugin in buddypress child theme other than the default will not work fine beceause the plugin use the default buddypress template !
the plugin work with all wordpress themes if the theme use legacy buddypress theme,
if it is child theme, in this case you must customize the plugin templates by modifying the template files. Just copy buddypress-wall\includes\templates\bp-default folder to your theme and edit the templates.A lot of Buddypress plugins present a template and suggest a customisation if the theme is buddypress child themes.
In reply to: Is bp-friends-template.php editable?Hi @funmi-omoba, check this example of code, he may help you
function bp_new_link_class_get_add_friend_button( $button ) { // add new css classes to the button $button['link_class'] .= ' new-button-class2 new-button-class2 '; switch($button['id']){ case 'not_friends' : $button['link_class'] .= ' btn-add-friend'; break; case 'pending' : $button['link_class'] .= ' btn-pending-rel'; break; case 'is_friend' : $button['link_class'] .= ' btn-remove-friend'; break; default : $button['link_class'] .= ''; break; default: break; } return $button; } add_filter( 'bp_get_add_friend_button', 'bp_new_link_class_get_add_friend_button' , 1);Regards,
In reply to: filtering activity before it is postedHi
You can use the filter bp_activity_after_save
add_filter('bp_activity_after_save', 'bp_my_activity_filter'); /** * New Filter for activity stream * */ function p_my_activity_filter( &$activity ) { }In reply to: Block This Page From Logged Out Users?hi @tduschei, i suggest you use private-community-for-bp-lite plugin by @bp-help
In reply to: How to override core template functionHi @Skeary,
There is no filter for bp_directory_groups_search_form(), You can change create a new custom function and replace the old call of bp_directory_groups_search_form by the new function.
function bp_custom_directory_groups_search_form() { $default_search_value = bp_get_search_default_text( 'groups' ); $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?> <form action="" method="get" id="search-groups-form"> <label><input type="text" name="s" id="groups_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label> <input type="submit" id="groups_search_submit" name="groups_search_submit" value="<?php _e( 'Go', 'buddypress' ) ?>" /> </form> <?php }The other solution is by javascript, you can change the text of the button by this code :
jQuery('#groups_search_submit).attr('value','Go');In reply to: New great plugin, buddypress-wall by @megainfo@hnla,I dont remember from where i was past this part of text, but sure from an old buddypress readme.txt plugin and i was used since long time as template file for all my plugins.
You can check the readme.txt for all my others plugins too.
https://github.com/dzmounirI want ask you a question , why some old plugins have a forum support in the buddypress forum
i mean ?In reply to: New great plugin, buddypress-wall by @megainfoHi @funmi-omoba, @bp-help, @hnla
Thank’s funmi omoba for the post, i want tell you that the first version of plugin is now available for download from wordpress repo :
https://wordpress.org/plugins/buddypress-wall/
I Hope the Buddypress users will enjoy the plugin.
Any suggestions are welcome.Regards,
In reply to: Buddypress phone appIn reply to: upgrade issue with extras?In reply to: Recent post by usersHi,
mybe this plugin can help you
https://wordpress.org/plugins/bowe-codes/In reply to: Members Directory Pagination Help!I think you can’t show the correct number, because you do the test about role of bbp_blocked in the loop, so the number of members is uknow before the loop, buddypress save the number of members before the loop in variable $total_member_count
check bp_core_get_total_member_count() function.
I think if you check how buddypress profil search work, you will find a solution for your problem.
https://wordpress.org/plugins/bp-profile-search/Regards,
In reply to: Hide Member total in Widget?hi,
you can hide it by adding this css code in the style.css of your current theme.
.widget.buddypress div.item-meta, .widget div.item-meta { display:none !important; }Hi,
Check the version of jquery used by the theme. try to replace it by the last version.
Check the functions.php file of your current theme, mybe there is some code who use bp_friends component functions.
In reply to: 1.7 Download