Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 31 total)

  • neijisly
    Participant

    @neijisly

    Hi, I not understand you. describe correctly how you want this to appear.


    neijisly
    Participant

    @neijisly

    Want you hide it or move it and put “profile” instead?


    neijisly
    Participant

    @neijisly

    I do not know why, but try to check if JavaScript is enabled on your browser if not change the browser.


    neijisly
    Participant

    @neijisly

    @tallerwp your code is functional. thank’s very much


    neijisly
    Participant

    @neijisly

    no @tallerwp nothing.


    neijisly
    Participant

    @neijisly

    What are you using, the mobile or desktop.


    neijisly
    Participant

    @neijisly

    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.


    neijisly
    Participant

    @neijisly

    thank you for replies. can you give me the host that you use, how many member have you and for how much money.


    neijisly
    Participant

    @neijisly

    I use wp mail smtp and fine. What is your configuration smtp!? What error message have you!?


    neijisly
    Participant

    @neijisly

    Update to 2.5.1


    neijisly
    Participant

    @neijisly

    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’ );


    neijisly
    Participant

    @neijisly

    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 ***/
    ?>


    neijisly
    Participant

    @neijisly

    Hi, use wordpress social login plugin https://fr.wordpress.org/plugins/wordpress-social-login/


    neijisly
    Participant

    @neijisly

    Thank you


    neijisly
    Participant

    @neijisly

    Help please


    neijisly
    Participant

    @neijisly

    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 )


    neijisly
    Participant

    @neijisly

    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.


    neijisly
    Participant

    @neijisly

    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.


    neijisly
    Participant

    @neijisly

    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


    neijisly
    Participant

    @neijisly

    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 )

    neijisly
    Participant

    @neijisly

    What theme are you using? And how are you building your actual menu?


    neijisly
    Participant

    @neijisly

    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 )


    neijisly
    Participant

    @neijisly

    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
    thanks


    neijisly
    Participant

    @neijisly

    Thank you!


    neijisly
    Participant

    @neijisly

    Thank you, I have already changed easy wp smtp to wp mail smtp but still nothing. Not work

Viewing 25 replies - 1 through 25 (of 31 total)
Skip to toolbar