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™

S2Member Login Widget: My Account goes to wrong link

s2Member Plugin. A Membership plugin for WordPress®.

S2Member Login Widget: My Account goes to wrong link

Postby peeld » January 29th, 2012, 10:51 pm

Using Buddypress and S2Member.

The Pro Login Widget is set to %%automatic%% for the my account link. It used to direct just fine to the buddypress user's profile page. But now it goes to the group directory page for some reason.

I'm very sorry but I really know nothing of PHP or I'd code my own custom PHP and put it in a text widget (I have a plugin that allows PHP to run in widgets).

Anybody know what link I should use other than %%automatic%% so that the My Account link goes to the user's buddypress profile page? It's http://mysite.com/members/username/ in each case.

thanks,
Daisy
User avatar
peeld
Registered User
Registered User
 
Posts: 97
Joined: August 24, 2011

Re: S2Member Login Widget: My Account goes to wrong link

Postby Cristián Lávaque » January 31st, 2012, 3:26 am

Hi Daisy.

If it was working properly before, why did it change? Did you change something?

You could leave the My Account field blank and then in the field Additional XHTML/PHP Code add:

Code: Select all
<a href="http://mysite.com/members/<?php echo S2MEMBER_CURRENT_USER_LOGIN; ?>/">My Account</a>



WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants -> S2MEMBER_CURRENT_USER_LOGIN

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: S2Member Login Widget: My Account goes to wrong link

Postby peeld » February 1st, 2012, 12:42 am

yep, that's what I did :)

Thanks.
User avatar
peeld
Registered User
Registered User
 
Posts: 97
Joined: August 24, 2011

Re: S2Member Login Widget: My Account goes to wrong link

Postby Cristián Lávaque » February 3rd, 2012, 12:31 am

Cool. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

cron