Support Forum
sorry, what are you trying to do? that function call is not part of the template tags plugin... that is part of a profile...
so please explain what you would like to do and we can help...
Visit Cruise Talk Central and Mr Papa's World
I'm trying to display the user's name in a welcome bar. I used to have it working with older version.
I found the function under Display Template Tags.
is the welcome bar on an SP page or other WP page? If SP, specific page or any page?
Try this:
echo $spThisUser->display_name;
Visit Cruise Talk Central and Mr Papa's World
did my suggestion work?
you read it half right and half wrong. the tag is right, but it was in a profile view section... that means it works on profile pages... you need it on all pages... and actually, all the sp display template tags are for on sp pages...
if it did not work, being on another wp page, try:
global $spThisUser; sp_forum_api_support(); echo $spThisUser->display_name;
Visit Cruise Talk Central and Mr Papa's World
no methods for $spThisUser... its a data object...
but go to forum - toolbox - data inspector... and turn on the display of spThisUser... will show you (on front end) whats available... similarily, you can look at other global objects on the various page views... now if you call the sp_forum_api_support() that sets up the $spThisUser variable (you do have to do the global declaration) on non forum pages...
so... now you gonna make a liar out of me, huh? but a couple of the common display tags, such as sp_UserAvatar(), are available outside of SP pages... but you have to provide the data to them, ie with the $spThisUser global variable or other user object...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)