Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-26T00:07:40-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15647 2011-10-26T00:07:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15647&p=48811#p48811 <![CDATA[Re: how do I put name in welcome page?]]>
Code:
Welcome [s2Get constant="S2MEMBER_CURRENT_USER_FIRST_NAME" /]!


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

I hope this helps. :)

Statistics: Posted by Cristián Lávaque — October 26th, 2011, 12:07 am


]]>
2011-10-25T09:24:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15647&p=48728#p48728 <![CDATA[Re: how do I put name in welcome page?]]> Statistics: Posted by Eduan — October 25th, 2011, 9:24 am


]]>
2011-10-25T09:15:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15647&p=48727#p48727 <![CDATA[Re: how do I put name in welcome page?]]> Do you mean that I should also write " code:select all"?
or only the green text?
ilana

Statistics: Posted by ilana-av — October 25th, 2011, 9:15 am


]]>
2011-10-25T08:58:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15647&p=48726#p48726 <![CDATA[Re: how do I put name in welcome page?]]> PHP Execution and you gotta put
Code:
[s2Get constant="S2MEMBER_CURRENT_USER_FIRST_NAME" /]

Exactly like that.

Statistics: Posted by Eduan — October 25th, 2011, 8:58 am


]]>
2011-10-25T08:50:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15647&p=48724#p48724 <![CDATA[Re: how do I put name in welcome page?]]> did you mean that I should actually write -Hello S2MEMBER_CURRENT_USER_FIRST_NAME
and the S2MEMBER will put in my welcome page the name of my sbscriber?
like this- Hello Jhon ?
if so why do I need PHP ?
THANKS
ILANA

Statistics: Posted by ilana-av — October 25th, 2011, 8:50 am


]]>
2011-10-25T08:43:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15647&p=48722#p48722 <![CDATA[Re: how do I put name in welcome page?]]> !Before you read any further, you should install this handy plugin: PHP Execution.
You'll need to have this plugin installed to use PHP code in Posts/Pages.
You can use one of these three:
Code:
S2MEMBER_CURRENT_USER_FIRST_NAME
This will always be a (string) containing the current User's First Name. Empty if not logged in.

<?php echo S2MEMBER_CURRENT_USER_FIRST_NAME; ?>
This may output something like: John
( or whatever their first name is )

---- s2member Shortcode Equivalent ----

[s2Get constant="S2MEMBER_CURRENT_USER_FIRST_NAME" /]



S2MEMBER_CURRENT_USER_LAST_NAME
This will always be a (string) containing the current User's Last Name. Empty if not logged in.

<?php echo S2MEMBER_CURRENT_USER_LAST_NAME; ?>
This may output something like: Smith
( or whatever their last name is )

---- s2member Shortcode Equivalent ----

[s2Get constant="S2MEMBER_CURRENT_USER_LAST_NAME" /]



S2MEMBER_CURRENT_USER_LOGIN
This will always be a (string) containing the current User's Username. Empty if not logged in.

<?php echo S2MEMBER_CURRENT_USER_LOGIN; ?>
This may output something like: johnsmith22
( or whatever their login/username is )

---- s2member Shortcode Equivalent ----

[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]

Also remember to put them in the HTML editor

Statistics: Posted by Eduan — October 25th, 2011, 8:43 am


]]>
2011-10-25T07:34:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15647&p=48713#p48713 <![CDATA[how do I put name in welcome page?]]> I would like to know where and how I could take the name of my subscriber ,
in order to put it on the welcome page?
thank you
ilana

Statistics: Posted by ilana-av — October 25th, 2011, 7:34 am


]]>