Topic-icon option - Link pic to social profile

Active Subscriptions:

None
9 years 3 months ago #53547 by n00bster
hi,

i'am not sure about this feature "Link pic to social profile" from your module. i use jomsocial and thought that when i enable the profile pictures option and i click on the avatar, this would link the user directly to his profile - but it does not work. the link of the pic points only to the site root instead to the users profile.
File Attachment:


do i understand this option wrong or is there a bug between your sclogin module (4.4.0) and jomsocial (4.0.7)
The topic has been locked.
Support Specialist
9 years 3 months ago #53551 by alzander
Please set the "Registration Component" to "JomSocial". That, along with the "Link to Profile Pic" setting, will make the link go to the user's JomSocial profile.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago - 9 years 3 months ago #53552 by n00bster
thank you for replaying.
yes that is what i have set as registration component option, but the avatar does not link to profile, instead it is linking to site root (/).

File Attachment:
Last edit: 9 years 3 months ago by n00bster.
The topic has been locked.
Support Specialist
9 years 3 months ago #53554 by mel
I haven't been able to reproduce this on my test site with the latest JomSocial. Could you try disabling any SEF extensions that you have installed and see if this helps?
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #53555 by n00bster
hi,

i have only the joomla "Search Engine Friendly URLs" it self in use. it makes no difference whether it is on or off.
The topic has been locked.
Support Specialist
9 years 3 months ago #53574 by alzander
The profile link is configured with the following line in the SCLogin module:
$this->profileLink = CRoute::_('index.php?option=com_community');
That should bring the user to the home page of JomSocial which, when logged in, will be their profile view.

Is your home page set to JomSocial, by chance? If so, that would explain what's happening. If not, can you Private Message us admin credentials for your site so we can understand your configuration better?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago - 9 years 3 months ago #53575 by n00bster
hi,

yes my "home page" is set to jomsocial. put there must be a way to get this to run, i found on jomsocial docs some info how to call the profile page:
documentation.jomsocial.com/wiki/Integrating_Your_Component
include_once JPATH_ROOT.'/components/com_community/libraries/core.php';
// Get CUser object
$link = CRoute::_('index.php?option=com_community&view=profile&userid='.$userid);
echo '<a href="/.$link." mce_href="http://www.jomsocial.com/.$link.">View user profile</a>';

but i'am not so good with php coding that i could fix this on my own - specially i think the option "Link pic to social profile" should work even when i have set jomsocial as "home page" from joomla itself or not.
Last edit: 9 years 3 months ago by n00bster.
The topic has been locked.
Support Specialist
9 years 3 months ago #53590 by alzander
Edit the /modules/mod_sclogin/helper.php file. Around line 175, you should see:
$this->profileLink = CRoute::_('index.php?option=com_community');
Update that to:
$user = JFactory::getUser();
$this->profileLink = CRoute::_('index.php?option=com_community&view=profile&userid='. $user->id);

Let us know how that goes,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 3 months ago #53593 by n00bster
hi,

i have tested your code with and without joomla core SEF, and it does what it should - a click on the profilepic loads the jomsocial profile now :D

thx you for your help, problem solved on my end!
The topic has been locked.
Support Specialist
9 years 3 months ago #53601 by alzander
We're glad to hear that helped. We'll investigate whether that's a change we want to make permanently in the module or not. When you upgrade the SCLogin module, please make sure you re-do that change if necessary.

Finally, if you haven't already, please consider leaving a rating and review for the SCLogin module, or our support, on the Joomla Extension Directory. It's certainly not required, but very appreciate:
extensions.joomla.org/extensions/access-...authentication/24054

Thanks,
Alex
The topic has been locked.