Skip to:
Content
Pages
Categories
Search
Top
Bottom

/Members’ slug

  • @globsticks

    Participant

    Hello,

    I know one is supposed to associate a WordPress Page with each BuddyPress component directory. (members)

    but I am wondering if it is possible to hide the “members’ slug” in urls structure:

    example.com/members/username

    to something like this instead:

    example.com/username

    I am asking this because it might posed a security risk allowing hackers to gain access to all members listed in a website just by going to example.com/members

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @sbrajesh

    Participant

    Hi,
    Yes, you can do that.

    In terms of BuddyPress, this configuration is called “Root profile”.

    You can enable it by putting this line in wp-content/plugins/bp-custom.php

    
    define( 'BP_ENABLE_ROOT_PROFILES', true );
    
    

    Regards
    Brajesh

    @globsticks

    Participant

    it worked!

    Hi Brajesh,

    My website does have a registration page, so users have to click on the logout link at some point.
    I am hiding the admin page via secret Login Slug, but I noticed that users can read its value from the URL when they log out. ¿do you happen to know how to I hide the Login Slug from logout URL please?

    !Thank you!

    Hide Login Slug value on Logout

    @globsticks

    Participant

    ` <li id=”menu-item-1788″ class=”bp-menu bp-logout-nav menu-item menu-item-type-custom menu-item-object-custom menu-item-1788″><a
    href=”https://www.example.com/secretslug/?action=logout&redirect_to=https%3A%2F%2Fwww.example.com%2F&_wpnonce=c3b1dbd03b&#8221; > Log Out</a ></li >

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar