Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

  • B.
    Participant

    @bandonrandon

    thanks, rich, what happens if BP_ENABLE_ROOT_PROFILES is enabled? Also the problem is that I am setting an option in then db and want to set it to just the http://domain.com/ BP_MEMBERS_SLUG / without the username part as the username will change with each login. I saw `bp_core_get_user_domain( $user_id )` but that requires you to set the $user_id for the user you want the profile url for.

    I think I can do
    if(!defined(BP_ENABLE_ROOT_PROFILES){
    $base_member_url=get_site_url().MEMBER_SLUG;
    } else {
    $base_member_url= get_site_url();
    }

    I was just hoping there would be a function for the base member url without a username attached.


    B.
    Participant

    @bandonrandon

    @Anom, that lets the user set the slug. What I’m trying to do is retrieve the slug. This is my first time writing code for BP but I know with WP they have functions like get_site_url(); I was hoping something like get_member_slug(); was out there so I can use it as part of a default plugin where I won’t know each users member slug url as they set that up themselves. There is probably a way to retrieve the defined member slug, is that the best way to do this?


    B.
    Participant

    @bandonrandon

    Looks like I spoke to soon. Peters Login Redirect Plugin (https://wordpress.org/extend/plugins/peters-login-redirect/) takes advantage of the filter added in 2.6.2. You can read an article about the plugin here http://www.theblog.ca/wplogin-redirect. If anyone else has other ideas let me know. For now I’m just going to send all subscribers to edit profile page upon login from the wp-admin section.


    B.
    Participant

    @bandonrandon

    Thanks everyone, I was going to say after the first two post that I was going to jump into Child Theming something I’ve wanted to do for a while. The second two post sound more like using the theme pack and making a standard theme may be a better option. Ah, I’m back where I started! I think I’m leaning towards child theme for two reasons 1) it’s something I’ve wanted to learn and 2) It has all the BP ajax, CSS, etc.

    Thanks for your input thus far and I encourage you to keep it coming.


    B.
    Participant

    @bandonrandon

    I would also like to do this. I know this post is 9 months old now and in that time significant changes have been made to BP. Even if someone could point me to a Plugin that would be great!

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