Forum Replies Created
-
In reply to: how to display members on list view?
Hi, I not understand you. describe correctly how you want this to appear.
In reply to: Get rid of Activity Tab on Member ProfileWant you hide it or move it and put “profile” instead?
In reply to: Private Message Delay in SendingI do not know why, but try to check if JavaScript is enabled on your browser if not change the browser.
In reply to: Is possible hide some tabs in profiles??@tallerwp your code is functional. thank’s very much
In reply to: Is possible hide some tabs in profiles??no @tallerwp nothing.
In reply to: Private Message Delay in SendingWhat are you using, the mobile or desktop.
In reply to: Is possible hide some tabs in profiles??Hi, I’m also looking for a way to hide “forum” but nothing. I have to build myself a function but still nothing. Best wishes to you.
In reply to: buddypress hostingthank you for replies. can you give me the host that you use, how many member have you and for how much money.
In reply to: Stmp email buddypress 2.5I use wp mail smtp and fine. What is your configuration smtp!? What error message have you!?
In reply to: Stmp email buddypress 2.5Update to 2.5.1
In reply to: Private Message Friends OnlyTry to replace with this
function neiji_fillfield_only_if_friends() {
if( empty($_GET[‘r’] ) )return;
if( is_super_admin() )
return;
$path = esc_url( $_SERVER[‘REQUEST_URI’] );
$redirect = bp_core_get_root_domain() . $_SERVER[‘REDIRECT_URL’];
preg_match(‘/[\?r] *= *[“\’]?([^”\’]*)[\&]/is’, $path, $match );
if( !empty( $match[1] ) ) {
$user_id = bp_core_get_userid( $match[1] );if( ‘is_friend’ != friends_check_friendship_status( $user_id, bp_loggedin_user_id() ) )
bp_core_redirect( $redirect );}
}
add_action( ‘messages_screen_compose’,’neiji_fillfield_only_if_friends’ );
In reply to: Private Message Friends OnlyHi, this is the function code for message only friends
<?php
/*** beginning of the code to paste in your functions.php ***/
function neiji_pm_button_only_if_friends($button) {
if( is_super_admin() )
return $button;
if(‘is_friend’ != friends_check_friendship_status( bp_displayed_user_id(), bp_loggedin_user_id() ) )
return false;
else
return $button;
}
add_filter(‘bp_get_send_message_button’,’neiji_pm_button_only_if_friends’,10,1);function neiji_fillfield_only_if_friends() {
if(empty($_GET[‘r’] ) )
return;
if( is_super_admin() )
return;
$path=esc_url($_SERVER[‘REQUEST_URI’] );
$redirect=bp_core_get_root_domain().$_SERVER[‘REDIRECT_URL’];
preg_match(‘/[\?r]*=*[“\’]?([^”\’]*)[\&]/is’,$path,$match);
if(!empty($match[1] ) ) {
$user_id=bp_core_get_userid($match[1] );
if(‘is_friend’!=friends_check_friendship_status($user_id, bp_loggedin_user_id() ) )
bp_core_redirect($redirect);
}
}
add_action(‘messages_screen_compose’,’neiji_fillfield_only_if_friends’);
/*** end of the code to paste in your functions.php ***/
?>In reply to: Social Login registerHi, use wordpress social login plugin https://fr.wordpress.org/plugins/wordpress-social-login/
In reply to: Message or notificationThank you
In reply to: Message or notificationHelp please
In reply to: Display notificationsAdd this code between <#/li> and <#li> in header.php. <#li><#a href=”page url(eg: contact)”>name of page<#/a><#/li> you can create many link you want in menu.
( delete all # in the code )In reply to: Display notificationsReproduce all your link navigation.
Add this code between <#/li> and <#li> in header.php. <#li>name of page<#/a><#/li> you can create many link you want in menu.In reply to: Display notificationsIt is not possible with wordpress core. I suggest to deactivated your menu and add all page manually like you had do. You can style them properly in the future.
In reply to: Display notificationsI am installing ribosome theme and do the same thing, work fine. Login for see. For you: try to desactive all plugins without buddypress if no work send me the code that you have put in header
In reply to: Display notificationsOk go in editor theme, click in header.php and try to ad this code just before </nav><!– #site-navigation –>
<?php if(bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) > 0 ) { ?>
-
<#li>
<#a href=”<?php echo bp_loggedin_user_domain() ?><?php echo BP_NOTIFICATIONS_SLUG ?>”><span style=”font-weight: bold; background: #37b5e4; padding: 2px 2px 2px 2px;”><?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
?></span> Notifications<#/a>
<#/li>
<?php } ?>
<#li>
<#a href=”<?php echo bp_loggedin_user_domain() ?><?php echo BP_MESSAGES_SLUG ?>”><?php if(messages_get_unread_count() > 0 ) { ?><span style=”font-weight: bold; background: #37b5e4; padding: 2px 2px 2px 2px;”><?php echo messages_get_unread_count();
?></span><?php } ?> Messages<#/a>
<#/li>
<#/ul>
( please delete all # symbol in this code )In reply to: Display notificationsWhat theme are you using? And how are you building your actual menu?
In reply to: Display notificationsHere is the code
<?php if(bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) > 0 ) { ?>
<~li>
<~a><?php echo BP_NOTIFICATIONS_SLUG ?>”>
<?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
?> Notifications</~a>
</li~>
<?php } ?>
<~li>
<~a><?php echo BP_MESSAGES_SLUG ?>”><?php if(messages_get_unread_count() > 0 ) { ?>
<?php echo messages_get_unread_count();
?>
<?php } ?> Messages<~/a>
<~/li>put in your php menu file
( delete all ~ in the code )In reply to: Display notificationsHi, I display the number of notifications and messages to the menu navigation. Look if is what you want http://neijisite.xyz
login: moi-moi
pass: moi-moi
thanksIn reply to: Stmp email buddypress 2.5Thank you!
In reply to: Stmp email buddypress 2.5Thank you, I have already changed easy wp smtp to wp mail smtp but still nothing. Not work