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™

login welcome with user name

s2Member Plugin. A Membership plugin for WordPress®.

login welcome with user name

Postby defeyter » November 24th, 2011, 1:15 pm

Hello Everyone,

I need to have login welcome pages based on the user name, using S2-member pro.
%%current_user_display_name%% is not working...

Which custom code should I use?

Thank you for the help,

Chris de Feijter
User avatar
defeyter
Registered User
Registered User
 
Posts: 8
Joined: June 22, 2010

Re: login welcome with user name

Postby Eduan » November 24th, 2011, 1:21 pm

That's because %%current_user_display_name%% is for emails only.
You gotta use the shortcodes under WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants.

Here's the corresponding one:
[s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /]

Hope this helps. :)
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: login welcome with user name

Postby defeyter » November 24th, 2011, 1:26 pm

Thank you for the reply.

Do I enter it like %%[s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /]%%

or like %%S2MEMBER_CURRENT_USER_DISPLAY_NAME%% (Tried this one, but it does not work).

Thanks,
Chris
User avatar
defeyter
Registered User
Registered User
 
Posts: 8
Joined: June 22, 2010

Re: login welcome with user name

Postby Eduan » November 24th, 2011, 1:30 pm

Just enter it like this:
[s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /]

It will display the display name.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: login welcome with user name

Postby defeyter » November 24th, 2011, 2:52 pm

Hi,

It gives me a 404. So I entered as replacement code:
[s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /] as the Login welcome under settings-general-login welcome page.

Then I created the new page with title and slug of the username. If the username is example, I named that page example.

What am I doing horribly wrong?

Thanks for the help

Chris
User avatar
defeyter
Registered User
Registered User
 
Posts: 8
Joined: June 22, 2010

Re: login welcome with user name

Postby Eduan » November 24th, 2011, 3:09 pm

Are you putting it like this:
Hello [s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /]! Or something along those lines?
If you put it as a page title it should work.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: login welcome with user name

Postby defeyter » November 24th, 2011, 3:15 pm

No, I am trying to do something else. I am not sure if we are talking about something else either lol.

I am working under general options - login welcome page - special redirection URL

using a replacement code so that every user has their own customised login welcome page...

I am attaching a screenshot...

So if my user name is Example, when I login, I want to see the welcome page for user Example..

Does that make sense?

Chris
Attachments
ScreenHunter_03 Nov. 24 14.12.jpg
User avatar
defeyter
Registered User
Registered User
 
Posts: 8
Joined: June 22, 2010

Re: login welcome with user name

Postby Eduan » November 24th, 2011, 3:37 pm

If that's the case you may want to check this video:
http://www.s2member.com/client-portals-video/
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: login welcome with user name

Postby defeyter » November 24th, 2011, 10:39 pm

Thanks, that fixed my problem using the %%current_user_login%% replacement code, combined with the custom capacity.

Great support!
User avatar
defeyter
Registered User
Registered User
 
Posts: 8
Joined: June 22, 2010

Re: login welcome with user name

Postby Eduan » November 24th, 2011, 11:19 pm

OK, glad to be able to help!
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron