- This topic has 3 replies, 2 voices, and was last updated 13 years, 4 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › How Do I Display The Member's Username?
Hi,
Is there any shortcode to display the user’s profile information? For example:
Hi [emember_firstname], How's it going?
Cheers,
Zain
Update: Shortcodes to display any member details:
Just added the following two shortcodes in eMember:
[wp_eMember_first_name]
[wp_eMember_last_name]
You can get a new build of eMember from here:
Thanks again Amin. You Rock! Please remember to update the Shortcodes PDF file – that’s invaluable and I’m sure a lot of Admins, like me, use that all the time. I do tend to find that not all of the shortcodes are in there – occassionally there’s some on this forum. Would be great if they’re in once place…
BTW, a Shortcode PDF is something that WishList don’t do! You have to watch the videos or go through a lot of documentation to find the 1 line you need… ouch!
Cheers,
Zain
Just to let you know that I’ve amended this slightly so that the name shortcodes have <span>
with a class round them. This is because sometimes User’s add their names *without* putting capitals on the firstname – having a span means that an Admin can fix this with a line of CSS.
Anyway, on wp_eMember1.php – on line 645, I’ve now added:
return '<span class="eMemberFirstName">'.$first_name.'</span>';
On line 653, the lastname has changed to:
return '<span class="eMemberLastName">'.$last_name.'</span>';
In the styles, an Admin can now use:
span.eMemberFirstName, span.eMemberLastName { text-transform: capitalize; }
And that will change the member’s name to be corrected.