Topic-icon Link username

Active Subscriptions:

None
11 years 4 months ago #50932 by horseguards
Link username was created by horseguards
Hello,

When I login it shows like this

awesomescreenshot.com/0d74bwnm29

and I want to add a link to the username (in this image "elenaotaola) to its Jomsocial profile.

How can I do it? where do I have to edit?
The topic has been locked.
Support Specialist
11 years 4 months ago #50933 by mel
Replied by mel on topic Link username
The file that shows the greeting when logged is in /modules/mod_sclogin/tmpl/logout.php. Around line 26, you'll see the following which displays the greeting:
echo '<div class="sclogin-greeting">' . JText::sprintf('MOD_SCLOGIN_WELCOME', $name) . '</div>';

You can create a template override for this file and just put a link around the text to something like the following:
echo '<div class="sclogin-greeting"><a href="'.JRoute::_('index.php?option=com_community&view=profile').'">' . JText::sprintf('MOD_SCLOGIN_WELCOME', $name) . '</a></div>';

This puts a link around the whole "Welcome USER_NAME", so if you want to break it up to just be on the user's name, you will have to modify the above more.

-Melissa
The topic has been locked.