Forum Replies Created
-
In reply to: Enterprise Nation
Hi,
It Looks nice, just i suggest adding the color in selected menu of the current section.
thanks.
In reply to: Activity posting twiceTry the wordpress twentytwelve and check if All updates are being posted twice, i think problem in your theme.
In reply to: Remove the General Settings in BuddyPress v1.6.1Hi @wpmirwin, this part of code above is from buddypress Notifcation manager plugin.
https://wordpress.org/extend/plugins/buddypress-notifications-manager/
mybe this plugin can help you.this function hide the notifications subnav, and it should work in bp 1.5 and bp 1.6
function bp_hide_notifications_subnav(){
global $bp;
bp_core_remove_subnav_item($bp->settings->slug, ‘notifications’);if ( bp_use_wp_admin_bar() ) {
add_action( ‘wp_before_admin_bar_render’, create_function(
”, ‘global $bp, $wp_admin_bar; $wp_admin_bar->remove_menu( “my-account-settings-notifications” );’ ) );
}
}//if is not bp 1.5
if ( version_compare( BP_VERSION, ‘1.5’ ) < 0 )
add_action( ‘wp’, ‘bp_hide_notifications_subnav’);
else
add_action( ‘bp_setup_nav’, ‘bp_hide_notifications_subnav’ );In reply to: Avatar cropping errorscheck your css, mybe there is a conflit with others css class
In reply to: Any recommendation for captcha plugin?HI ,
you can use BuddyPress reCAPTCHAUse https://wordpress.org/extend/plugins/buddypress-recaptcha/
the plugin work fine in bp 1.6 but you need to Edit the ‘bp-recaptcha.php’ file to make your settings.
read the installation faq of the plugin.hi @ethanvan,
What news in your new plugin NeoFollow
?
i check the code, and it’s is 100% from buddypress FollowMe plugin.And about the css problem, you can just add this line of css in your style :
ul.item-list li div.action div.generic-button{
margin-bottom:14px;
}That’ all
.In reply to: Need help customize member profileif you use a buddypress compatible theme, you need to edit
mytheme/members/single/home.php
and
mytheme/members/single/profile.phphome.php is global template of member page , it include the profile part.
– if you use the buddypress default, theme, you find it
plugins/buddypress/bp-themes/bp-default/In reply to: Admin access to other members messagesNo, you can access to the message pages of each profil
just add /messages to the url of the member, like that :In reply to: Moderate EverythingFor buddypress If you are admin of site :
– you can delete or edit activities from wp-admin,
– you can remove the comments of members from pages (delete link)For groups , you can add moderators to mange the groups.
for blog, is same with admin or authors role, you can update.
In reply to: Notification emails not sendingYou use the same version of buddypress in local and your server hosting?
You receive notifcations in server for others notifications type or for all notifications ?
In reply to: Buddypress Like – Notification Hackthe bp_like_send_notification function is commented ? mybe if your remove the // in line 564 it work
In reply to: Admin access to other members messagesHi @bojan85,
add this code to your functions.php file
function bp_admin_is_my_profile( $my_profile ){
global $bp;if( ( $bp->current_component == BP_MESSAGES_SLUG )
&& current_user_can(‘manage_options’) ) return true;
else return $my_profile;
}
add_filter(‘bp_is_my_profile’, ‘bp_admin_is_my_profile’, 1);but i think is not good idea to read the messages of members
, try to use anti spam plugins.In reply to: [resolved] Cannot post new activitythe error is printed when you try to post in a group or in your profil ?
the error is that $activity_id returend from ajax query is empty.
check your ajax.php and try to debug bp_dtheme_post_update() function.
In reply to: Singular Activity Streambp_has_activities dont accepet multi scope
,In reply to: [Resolved] Shortcode to show number of membersChange your function show_number_of_members()
use bp_get_total_site_member_count() instead bp_total_member_count()
bp_total_member_count() use echo to print the number , you need to return the number
function show_number_of_members() {
$count = bp_get_total_site_member_count();
return $count;
}PS : You can echo the number of members without creation an shortcode just use bp_total_site_member_count() [Without _get in the name of function].
Im not sure, but i think buddypress function for comments return 0 by default when mysql server catch error.
In reply to: [Resolved] Shortcode to show number of membersbp_total_site_member_count() print the number of members
bp_get_total_site_member_count() return the number of members
In reply to: Best beginning tutorials?Hi @aphrodite,
Same from Algeria, and more than that, They delete my account and all my posts from forum.
Personaly, i dont understand why they do that.In reply to: Set Excerpt Length of Group Descriptionhi @qrahaman , try this,
function bp_excerpt_group_description( $description ) {
// your exceprt code
$length = 30;
$description = substr($description,0,$length);
return $description;
}add_filter( ‘bp_get_group_description_excerpt’, ‘bp_excerpt_group_description’);
hi @farandhigh,
with this code, you can create a private community, just logged members, can access to buddypress page.
/**
* Privacy
* @return [type] [description]
*/
function restrict_access(){
global $bp, $bp_unfiltered_uri;// If user is not logged in and
if (!is_user_logged_in() &&
// The current page is not register or activation
!bp_is_register_page() &&
!bp_is_activation_page() &&
// The current pas is not blog page
!bp_is_blog_page() )
// Redirect to registration page. Change /register to your register page slug
bp_core_redirect( get_option('home') . '/register' );
}// here, you can add som config paramt to check if private community is enabled
add_action( 'wp', 'restrict_access', 3 );In reply to: Set Excerpt Length of Group DescriptionHi @qrahaman,
i dont understand exactly what you want,if you want to excerpt of the description of group in the group page. this code work fine :
function bp_excerpt_group_description( $description ) {// your exceprt code
$length = 30;
$description = substr($description,0,$length);
return $description;
}add_filter( 'bp_get_group_description', 'bp_excerpt_group_description');
In reply to: Button fo “join group” and “leave group”u welcome
In reply to: Button fo “join group” and “leave group”hi,
you can use css class for the buttons
a.leave-group{
background-image:url(../leave-group-img.png);
display:block;
height:40px;
text-indent:-9999px;
width:100px;
}a.join-group{
background-image:url(../images/join-group-img..png);
display:block;
height:40px;
text-indent:-9999px;
width:100px;
}