Topic-icon Open Facebook wall in new tab

Active Subscriptions:

None
14 years 2 weeks ago #23024 by erwvan
When clicking on the profile picture in Joomla! the user's Facebook page opens, but it does so replacing our website page.
Is there a setting where we can make the user's FB open in a new tab instead?
Thank you
Erwin
The topic has been locked.
Support Specialist
14 years 2 weeks ago #23030 by alzander
Good catch. We agree that should open in a new window when it's set to go to the user's FB profile.

To update now, edit the /modules/mod_sclogin/helper.php file. Around line 156, you'll see the getSocialAvatarImage function and at line 169, you'll see:
$html = '<a href="' . $profileURL . '">' . $html . '</a>';
Update that to the below adding the target parameter:
$html = '<a target="_BLANK" href="' . $profileURL . '">' . $html . '</a>';

Hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 11 months ago #24059 by erwvan
Hello Alex,

In case you guys missed this, I noticed that in the latest version this is still not opening a new window.

Best regards
Erwin
The topic has been locked.
Support Specialist
13 years 11 months ago #24066 by alzander
Grr. Sorry about that. I've upped the priority on that ticket in our system to make sure it gets into the next release. Thanks for reminding us. Until then, you'll need to make the code change above.. again :)

Thanks,
Alex
The topic has been locked.