Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    Please have a look at BP profile search

    BP Profile Search

    This should help you with achieving your goal.

    Best regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    Before deciding to redirect from sitewide activity to user’s own activity you should know the difference between them and then decide.

    – On the sitewide page a user can see activity from whole site(including his won/friends/his groups and any non related member of the site)

    – On profile, a user can see his/her won activity as well as friends/groups etc but activities of group they are not member of or activity of users they are not friends with, won’t be visible,

    If you still want to redirect from sitewide activity to user’s own activity, You may use the following code.

    
    
    /**
     * Redirect logged in user's from sitewide activity page to profile activity.
     */
    function buddydev_redirect_sitewide_activity_to_profile_activity() {
    
    	if ( is_user_logged_in() && bp_is_activity_directory() ) {
    		bp_core_redirect( bp_loggedin_user_domain() . bp_get_activity_slug() );
    	}
    }
    
    add_action( 'bp_template_redirect', 'buddydev_redirect_sitewide_activity_to_profile_activity' );
    

    PS:- you can put the code in your theme’s functions.php or in the wp-content/plugins/bp-custom.php

    Best Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    You are welcome 🙂


    Brajesh Singh
    Participant

    @sbrajesh

    Oops, did not see that @venutius already replied .


    Brajesh Singh
    Participant

    @sbrajesh

    Do you want to override template files? If yes, the first step is to find out which template pack you are using(Dashboard->settings->BuddyPress->Options).

    BuddyPress comes with 2 template packs
    – BP Legacy
    – BP Nouveau

    Once you know the template pack, you can follow the following step

    1. create a directory named “buddypress” in your theme
    2. Now visit wp-content/plugins/buddypress/bp-templates, you will see two directories
    – bp-legacy
    – bp-nouveau
    3. Based on your current template pack, visit that directory. You will find “buddypress” directory inside them. This is the directory of your interest. Copy files from there and maintain the path.

    For example, if bp-legacy is your current template pack and you want to modify members loop,

    you should copy wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php to yourtheme/buddypress/members/members-loop.php

    Note the path after the template pack is what we need to maintain. Once you override it, BuddyPress will use it form your theme.

    Please do note that themes do not allow you to specify template pack while overriding template files, so if you override it for one template pack and then activate another, It can lead to a lot of issues.

    My suggestion is to remove/rename the “buddypress” directory in your theme if you change the current template pack for BuddyPress.

    Hope this helps.

    Best Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    It is a bug in BuddyPress 4.0.

    BuddyPress 4.1 is coming soon and will have it fixed.

    Please see the ticket for more details.
    https://buddypress.trac.wordpress.org/ticket/8012

    Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    Thank you @samtuke, Please do and let me know how it goes.

    @dopeboy,
    Thank you for sharing your code. The issue is with youzer form generation and I am unable to suggest a fix as the only part I can see is call to form generator in the activate.php

    Since the form generator is not visible to me, I will suggest contacting the plugin developer and ask them to update their plugin and use the bp_get_current_activation_key() in the activation form.

    Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    Do you have activate.php in the plugin? If yes, Please post on pastebin.


    Brajesh Singh
    Participant

    @sbrajesh

    Thank you.
    Since I don’t use Youzer, I will suggest asking the support for this plugin to look into it.

    My guess is either they are doing a redirect or filtering out your template and replacing with their own while their activate template is not updated and that’s why it is happening.

    Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    Thank you.

    My first suggestion will be to try disabling the LH Private BuddyPress, if that does not solve it you should try deactivating Youzer and BP Force Profile photo(assuming bp-custom.php) and child theme’s functions.php does not have any redirection.

    Please give it a try and let me know if any of the above resolves the issue?


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    is there anything special about the site? Like any redirection setup or content restriction?
    When you open the link, does it remain the same or do you get redirected to some other url?

    I have tested with BuddyPress 3.2 and can see that the link of format

    
    http://example.com/activate/qwLW319TDBVVJs7DkSZ4NK6OjWhrUNLt/
    

    auto fills the key entry on activation page correctly.


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    Your code is correct.

    Can you please post me a sample link that you have received in your email? Also, are you using any content restriction/redirection plugin?


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    Thank you for the details. No need for the site link.

    Can you please post the code from your wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/activate.php and post the code on pastebin.php and link me.

    Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    Thank you for the details. No need to change the theme.

    Can you please visit the Dashboard->Settings->BuddyPress and tell me which template pack is active? I will need one more detail after that to assist you.

    Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    The way the activation link and the way input is filled changed in 3.0.

    If you are using a custom theme or have a copy of activate.php in yourtheme/buddypress/members/, you will need to update it.

    Please open the file yourtheme/buddypress/members/activate.php in an editor and look for a line like this

    
    <input type="text" name="key" id="key" value="" />
    
    

    Change it to

    
    <input type="text" name="key" id="key" value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" />
    
    

    That will auto fill the input key.

    Hope it helps.

    Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    No Problem.
    You are welcome. Glad it worked for you 🙂

    Best regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    It’s strange. Anything after 10 should work.
    yes, is almost same(I simply removed the admin check as it was not needed in this case).

    I tried the code in bp-custom.php and it is working with the default theme.

    Are you using some custom theme?


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    Try using this

    
    
    /**
     * Dequeue BP Nouveau style
     */
    function buddydev_dequeue_nouveau_styles() {
    	wp_dequeue_style( 'bp-nouveau' );
    }
    
    add_action( 'wp_enqueue_scripts', 'buddydev_dequeue_nouveau_styles', 11 );
    

    Does it work for you?


    Brajesh Singh
    Participant

    @sbrajesh

    Thank you.
    I checked the code. The plugin does not support login_redirect filter and BP redirect to profile won’t work with it.

    I will suggest creating a support ticket on the plugin page and asking to support ‘login_redirect’ filter for redirection url.

    They do have a filter ‘lwa_ajax_login’ for filtering the whole returned data but it is too much plugin specific and it will be better if you can ask them to support the standard filter.

    Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    hi @wegosi,
    Thank you for asking.
    I am not sure which ajax login plugin you are referring to.

    This plugin does not actually redirects the user, it simply changes the url where the default redirection happens.

    So, if it is not working with an ajax login plugin, Please ask the developer if they support ‘login_redirect’ filter. If not, please ask them to support it and the plugin will work.

    Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,

    If you are referring to this plugin

    BuddyPress Redirect to Profile

    I am the author and I can assure that it works with BuddyPress 3.2

    The plugin is just a few lines of code and it does not need any change. That’s why it has not been updated. I will push a change in readme.

    Also, if you need the code, Here is the complete code for the plugin
    https://github.com/sbrajesh/bp-redirect-to-profile/blob/master/bp-redirect-to-profile.php

    Regards
    BRajesh


    Brajesh Singh
    Participant

    @sbrajesh

    You can login to your WordPress dashboard using your admin credentials.

    Once inside the dashboard, Please visit Network Admin->Settings. There you will see “Registration Settings”.

    Select “User accounts may be registered” and that will disable the new blog creation but allow registering new user account.
    Hope that helps.


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    It seems you are trying to create a dynamic link to BuddyPress profile tabs. if that is the case, BuddyPress has a special slug ‘me’ that links to currently logged in users profile.

    For example, to link to your events page, you will use

    
     https://www.mysite.com/members/me/events/
    

    The first part

    
    https://www.mysite.com/members/
    

    Is the link to your member directory.

    For example:- To link to the default landing page of the user you can use

    
    https://www.mysite.com/members/me/
    

    and to link to the friends page, you can use

    
    https://www.mysite.com/members/me/friends/
    
    

    Hope this helps.


    Brajesh Singh
    Participant

    @sbrajesh

    hi,
    bp_is_member() is not available in BuddyPress.

    For your task, You should use
    bp_is_user()

    Hope that helps.

    Regards
    Brajesh


    Brajesh Singh
    Participant

    @sbrajesh

    Hi,
    Do you have the BuddyPress Force Profile Photo plugin active? If yes, Please disable it.

    If no, you will need to consult your theme developer, as they might have added it.

    Hope that helps.

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