Page 1 of 1

Redirect User to Buddypress Profile

PostPosted: May 7th, 2010, 6:47 am
by warzan
Hi Guys

It says in the change log its possible to redirect the user to their buddypress profile page on login.

I cannot find the link im supposed to use to make this work. (I can only find php code to return the url to the current logged in users profile page)

Can you help

Cheers

Warren

Re: Redirect User to Buddypress Profile

PostPosted: May 7th, 2010, 1:11 pm
by Jason Caldwell
Hi Warren. Check under s2Member -> General Options -> Login Welcome Page -> Special Redirection.

Re: Redirect User to Buddypress Profile

PostPosted: May 7th, 2010, 8:12 pm
by kipprsnak
I'm interested in this as well.
Brand new to your plugin, but it looks great.
What would the url actually be that we would input in the special redirection textbox? I've googled and looked in the buddypress forums, but haven't found anything yet!

Re: Redirect User to Buddypress Profile

PostPosted: May 8th, 2010, 12:40 am
by Jason Caldwell
You'll need to have s2Member 2.9.3+.
You can upgrade through your WordPress Dashboard automatically.

Once you've upgraded to s2Member v2.9.3+,
you can place this into the Special Redirection field, under:
s2Member -> General Options -> Login Welcome Page
Code: Select all
http://www.yoursite.com/members/%%current_user_login%%/profile/

* Don't forget to change yoursite.com.

Re: Redirect User to Buddypress Profile

PostPosted: May 8th, 2010, 6:05 pm
by Warzan
I know where to put the URL but I would like to know what URL to put in :o)

I cannot find a URL that will redirect a user to their buddypress profile page

cheers

Warren

Re: Redirect User to Buddypress Profile

PostPosted: May 8th, 2010, 7:14 pm
by rossagrant
http://www.example.com/members/%%current_user_login%%/profile/

Warren, replace example with your site, leave the rest as it is.

Re: Redirect User to Buddypress Profile

PostPosted: May 13th, 2010, 1:40 am
by Jason Caldwell
Just wanted to follow-up on this. This feature was actually broken in s2Member v2.9.3. We fixed it in v2.9.4. These instructions are now applicable, and will work correctly. Sorry for the confusion.

You'll need to have s2Member 2.9.4+.
You can upgrade through your WordPress Dashboard automatically.

Once you've upgraded to s2Member v2.9.4+,
you can place this into the Special Redirection field, under:
s2Member -> General Options -> Login Welcome Page
Code: Select all
http://www.yoursite.com/members/%%current_user_login%%/profile/

* Don't forget to change http://www.yoursite.com to whatever your domain name is.

Re: Redirect User to Buddypress Profile

PostPosted: October 16th, 2010, 8:20 am
by imjjss
@Janson,
Would you please check this redirect code still working? I paste this code in the login/welcome page option (changed yoursite.com to mysite.com), nothing happened, logged in user still goes to homepage.

Re: Redirect User to Buddypress Profile

PostPosted: October 16th, 2010, 11:27 pm
by Jason Caldwell
Thanks for reporting your experience.
imjjss wrote:@Janson,
Would you please check this redirect code still working? I paste this code in the login/welcome page option (changed yoursite.com to mysite.com), nothing happened, logged in user still goes to homepage.

I can verify that this feature is working in the latest release of s2Member v3.2.7+, and to my knowledge, it has been working well since v2.9.4.

That being said, you'll want to make sure that your Users are not logging in with a ?redirect_to= variable tagged on to the end of the login URL. The ?redirect_to variable will override the default setting for s2Member. It''s normally associated with Sidebar login widgets that are designed to redirect Users back to a specific page, such as the page they were visiting prior to logging into your site.

Related thread: viewtopic.php?f=4&t=646&p=3532&hilit=redirect_to#p2802

P.S. Also make sure that this page actually exists on your site.
Code: Select all
http://www.yoursite.com/members/%%current_user_login%%/profile/
In other words, make sure BuddyPress is installed, activated, and configured.