Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bp register page

  • @jayd94

    Participant

    Hello!(wp/bp/bbp newest versions)
    Thing is it would be important to give my members the opportunity to be anonymus.
    The page that buddypress gives me as register page includes a *name on the left side (and email and pw)that i learned to be given by wordpress, and on the right side there is the buddypress side- that i can customize.

    Is there a way to
    1. use the buddypress side only-so that i can fully customize what username’ is-and so that username is the one that is displayed in the profile.-as default.

    So i don’t want to display person’s name, i do want to display username in the Profile(Without the @ before the name or like so: Name (@name).
    Thanks for your time,
    Daniel

Viewing 11 replies - 1 through 11 (of 11 total)
  • @shanebp

    Moderator

    It would be helpful to your question to get some terminology sorted.

    Example:

    • username aka login name: jayd94
    • display name: Daniel

    In BP, your profile would show:
    Daniel

    @jayd94

    So the name on the BP ‘side’ of register = display name
    And the name on the WP ‘side’ of register = username aka login name
    Both fields are required.

    Using that info, can you restate your question.

    @jayd94

    Participant

    Thanks for your fast answer πŸ™‚
    What i would like to have is: no name required, only a username -to be displayed in profile-to login with. I must provide the ability to remain anonymus somehow.

    @jayd94

    Participant

    *and without the @ preferably-it confuses people they say.

    @jayd94

    Participant

    or add possibility to hide the visibility of their names*. so that only username is visible

    @jayd94

    Participant

    *Update
    All my problem solved, except one by adding some codes(i changed Name field to First name-and that being a must to give is okay):
    //Removes mentions pane from profile activity (doesn’t remove mention functionality)
    function ray_remove_mention_nav() {
    global $bp;
    bp_core_remove_subnav_item( $bp->activity->slug, ‘mentions’ );
    }
    add_action( ‘bp_setup_nav’, ‘ray_remove_mention_nav’, 15 );

    add_filter( β€˜bp_activity_do_mentions’, β€˜__return_false’ );

    define( ‘BP_SHOW_DISPLAYNAME_ON_PROFILE’, false );

    + buddypress usernames only plugin

    One problem remains only: It now shows the username correctly, but there still is the @ before the name so : @Ortelius
    Please help me remove that @ somehow.
    Thanks,
    Daniel

    @danbp

    Participant

    Hi @jayd94,

    @ is hardcoded in the single member header template.
    Use this snippet to remove @ and username in one go.

    function bpfr_remove_mention_from_profile() {	
    	// hide the hardcoded @ sign and username
    	echo '<style> h2.user-nicename { display:none; } </style>';
    
    	if( bp_is_user() && ! bp_get_member_user_id() ) {
            $user_id = 'displayed: '. bp_displayed_user_id();
        } else {
            $user_id = 'get_member_user: '. bp_get_member_user_id();
        }
    
    	remove_filter( 'bp_get_displayed_user_mentionname', bp_activity_get_user_mentionname( bp_displayed_user_id() ) );
    	
    }
    add_filter( 'bp_get_displayed_user_mentionname', 'bpfr_remove_mention_from_profile' ); 

    @shanebp

    Moderator

    The @ symbol is added in this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.php

    Create a template overload of that file and remove the symbol.

    @jayd94

    Participant

    Thank you all! Works perfectly πŸ™‚

    @airdrummer

    Participant

    nothing works4me:-\ i have all the pages correctly created & linked, but nothing shows up:

    http://lalofoundation.webhop.org/index.php/about-us/members/register/

    is there a conflict with my theme(hathor)?

    @airdrummer

    Participant

    and why does the menu not show all the pages? my structure is
    About Us
    β€” Start-Up Team
    β€” Membership
    β€” β€” Register
    β€” β€” Members
    β€” β€” β€” Activate
    β€” β€” β€” Activity
    β€” β€” β€” Groups
    β€” β€” β€” Login
    β€” Legal

    but register doesn’t show up under membership, not does activate

    @airdrummer

    Participant

    and i just verified that the theme isn’t @fault

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Bp register page’ is closed to new replies.
Skip to toolbar