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™

Add User ID to Membership Level/Label

s2Member Plugin. A Membership plugin for WordPress®.

Add User ID to Membership Level/Label

Postby Kevin » July 29th, 2011, 12:38 am

In short, I would like to make my Level 0 membership label say "Test Subject xxx", where "xxx" is their WP User ID number... I wasn't sure if the Level/Label field would recognize some type of function call or if it would be better to write some hard code calling the function (like current_user_id or similar) into the Level 0 code that adds the User ID after whatever custom text is added in the S2 Label field (ie. Test Subject).

I'm not new to s2, but I'm not fluent with PHP... I can read it pretty much and edit certain parts to suit my needs as long as its not overly complex. So I wont mind getting my hands dirty if needed... but any assistance would be very appreciated.

I used to have another account here with some other questions, but I couldn't seem to find my login info or what email/username I signed up with, so I had to create a new account... but I'll do my best to help others with what I do know.

Thanks again for the assistance.
User avatar
Kevin
Registered User
Registered User
 
Posts: 3
Joined: July 29, 2011

Re: Add User ID to Membership Level/Label

Postby Cristián Lávaque » July 29th, 2011, 3:47 pm

Hi Kevin. What emails could you have used for the other account?

About your question: Where do you plan to display the level label witht he user ID?
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: Google [Bot] and 4 guests

cron