Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Socialize toolbar module - Dynamic URL

10 years 9 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,

Is it possible the URL on this module be dynamic?
I mean, if the user is not logged, when click on the logo redirect to a URL and if logged, redirect to another one?

Attachment module.jpg not found



Regards
Fernando

Attachments:
10 years 9 months ago
Licenses:

Hi Fernando,

you can do it by using override:
1. cop /modules/mod_community_toolbar/tmpl/default.php to /templates/socialize/html/mod_community_toolbar/default.php
2. at line 176 you can find

<a href="<?php echo $logo_url;?>" class="community-toolbar-logo"><img src="<?php echo $toolbar_left_logo;?>" alt="<?php echo $logo_url.' logo';?>"/></a>
changing it to:
<a href="http://my-guest-url.com" class="community-toolbar-logo"><img src="<?php echo $toolbar_left_logo;?>" alt="http://my-guest-url.com logo"/></a>

for guest users will using this hardcoded URL, and for registered users will using URL from module setting.

Regards,
Albert

10 years 9 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi Albert,

It worked like a charm.

Best Regards
Fernando

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW