Topic-icon No link to user profile

Active Subscriptions:

None
7 years 8 months ago - 7 years 8 months ago #64569 by ianpanorton
Hi - With the Joomla login module it shows a link to the user profile so they can edit their details.

This is not showing on my installation of SClogin and I can't see where to activate it.

Am I missing something?

The URL is www.swanseainbloom.co.uk/bloom/index.php

Thanks

Ian
Last edit: 7 years 8 months ago by ianpanorton.
The topic has been locked.
Support Specialist
7 years 8 months ago #64574 by mel
Replied by mel on topic No link to user profile
Currently in SCLogin, we only display the profile link on the profile picture image. If "Enable Profile Picture" is set to Joomla and you're using a third party extension for "Registration Component" that stores the avatar, we'll use that component's profile link. However, since Joomla profiles/users don't have an avatar, we're not displaying the link anywhere right now.

It would be pretty straightforward to add the link, without having the profile pic.

1. In /modules/mod_sclogin/helper.php at line 271, replace
$this->profileLink = '';
with
$this->profileLink = JRoute::_('index.php?option=com_users&view=profile', false);

2. Now that the link is built, you'll need to display it somewhere. You can do a template override of the /tmpl/logout.php file
At line 29 after the block to print out the greeting name call, you can just add
echo '<div><a href="'.$helper->profileLink.'">View Profile</a></div>';

I've added an issue to our tracker to add an option to display this profile link, but hopefully this should get you going in the meantime. Let me know if you have questions or problems with the code snippet.

-Melissa
The topic has been locked.
Active Subscriptions:

None
7 years 8 months ago #64576 by ianpanorton
Replied by ianpanorton on topic No link to user profile
That's great Melissa - many thanks for getting back to me :-)

I'll give it a whirl and see how I get on...

Thanks again,

Ian
The topic has been locked.