Page 1 of 1

S2Member Login Widget: My Account goes to wrong link

PostPosted: January 29th, 2012, 10:51 pm
by peeld
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

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

PostPosted: January 31st, 2012, 3:26 am
by Cristián Lávaque
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. :)

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

PostPosted: February 1st, 2012, 12:42 am
by peeld
yep, that's what I did :)

Thanks.

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

PostPosted: February 3rd, 2012, 12:31 am
by Cristián Lávaque
Cool. :)