PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Redirect User to Buddypress Profile

s2Member Plugin. A Membership plugin for WordPress®.

Redirect User to Buddypress Profile

Postby warzan » May 7th, 2010, 6:47 am

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
warzan
Guest User
Guest User
 

Re: Redirect User to Buddypress Profile

Postby Jason Caldwell » May 7th, 2010, 1:11 pm

Hi Warren. Check under s2Member -> General Options -> Login Welcome Page -> Special Redirection.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Redirect User to Buddypress Profile

Postby kipprsnak » May 7th, 2010, 8:12 pm

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!
User avatar
kipprsnak
Registered User
Registered User
 
Posts: 13
Joined: May 7, 2010

Re: Redirect User to Buddypress Profile

Postby Jason Caldwell » May 8th, 2010, 12:40 am

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Redirect User to Buddypress Profile

Postby Warzan » May 8th, 2010, 6:05 pm

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
Warzan
Guest User
Guest User
 

Re: Redirect User to Buddypress Profile

Postby rossagrant » May 8th, 2010, 7:14 pm

http://www.example.com/members/%%current_user_login%%/profile/

Warren, replace example with your site, leave the rest as it is.
User avatar
rossagrant
Experienced User
Experienced User
 
Posts: 127
Joined: May 5, 2010

Re: Redirect User to Buddypress Profile

Postby Jason Caldwell » May 13th, 2010, 1:40 am

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Redirect User to Buddypress Profile

Postby imjjss » October 16th, 2010, 8:20 am

@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.
User avatar
imjjss
Registered User
Registered User
 
Posts: 5
Joined: September 25, 2010

Re: Redirect User to Buddypress Profile

Postby Jason Caldwell » October 16th, 2010, 11:27 pm

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron