Topic-icon User Menu Icon

Active Subscriptions:

None
7 years 7 months ago #59342 by MamieAdom
User Menu Icon was created by MamieAdom
Hi,

thanks for your work.
That's a way to add icon on user menu ?
When I add picture on the global menu settings it doesn't appear.
The topic has been locked.
Support Specialist
7 years 7 months ago #59345 by mel
Replied by mel on topic User Menu Icon
We actually don't have this functionality in SCLogin currently. I can add an issue to our tracker for a future release.

In the meantime, here's a quick (not very tested) snippet of code you can add to /modules/mod_sclogin/helper.php. Around line 607, replace
return '<li><a href="' . $url . '"' . $target . '>' . $item->title . '</a></li>';
with
$image = $item->params->get('menu_image');
if($image)
   $image = '<img src="'. JURI::root().$image .'" height="30" width="30" />';
return '<li><a href="' . $url . '"' . $target . '>' . $image . $item->title . '</a></li>';

-Melissa
The topic has been locked.
Active Subscriptions:

None
7 years 6 months ago #59662 by MamieAdom
Replied by MamieAdom on topic User Menu Icon
That's working.
Thank you
The topic has been locked.
Support Specialist
7 years 6 months ago #59665 by mel
Replied by mel on topic User Menu Icon
Thanks for letting us know. This change is already included in the 7.1 release that we're working on now.

-Melissa
The topic has been locked.