Topic-icon Link username to its profile page

Active Subscriptions:

None
11 years 5 months ago #50194 by horseguards
Hello,

I wonder if it would be possible to link the username shown once the user is logged in, to its profile page.

Here, for example, to make "webmaster" a link to the profile. Can it be done??

awesomescreenshot.com/0b145l7w96

regards,
The topic has been locked.
Support Specialist
11 years 5 months ago #50196 by mel
While we currently don't have that option, we do have the SCLogin > Logout View Settings > 'Link pic to social profile' setting. This will provide the avatar picture to be a clickable link to the profile. It should be very easy for you to extend that to add the same link to the greeting name if you create your own template override.

In /mod_sclogin/tmpl/logout.php around line 26 you have:
echo '<div class="sclogin-greeting">' . JText::sprintf('MOD_SCLOGIN_WELCOME', $name) . '</div>';

In your template override, try replacing it with something like this (Note: this is untested code)
echo '<div class="sclogin-greeting"><a href="'.$helper->profileLink.'" target="_blank">' . JText::sprintf('MOD_SCLOGIN_WELCOME', $name) . '</a></div>';

This should get you started, but please let me know if you run into issues.
-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 5 months ago #50197 by horseguards
Great! thank you!
The topic has been locked.