Forum Replies Created
-
Hi, I not understand you. describe correctly how you want this to appear.
Want you hide it or move it and put “profile” instead?
I do not know why, but try to check if JavaScript is enabled on your browser if not change the browser.
@tallerwp your code is functional. thank’s very much
no @tallerwp nothing.
What are you using, the mobile or desktop.
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.
thank you for replies. can you give me the host that you use, how many member have you and for how much money.
I use wp mail smtp and fine. What is your configuration smtp!? What error message have you!?
Update to 2.5.1
Try 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’ );
Hi, 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 ***/
?>Hi, use wordpress social login plugin https://fr.wordpress.org/plugins/wordpress-social-login/
Thank you
Help please
Add 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 )Reproduce 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.It 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.
I 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
Ok 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 )What theme are you using? And how are you building your actual menu?
Here 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 )Hi, 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
thanksThank you!
Thank you, I have already changed easy wp smtp to wp mail smtp but still nothing. Not work