Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

[SOLUTION] Make header of JS Hello Me clickable with link to profile like avatar

6 years 6 months ago
  • Vladimir's Avatar
    Topic Author
  • Vladimir
  • Offline
  • Junior Boarder
  • Posts: 283
  • Thank you received: 40
Licenses:
JomSocial Active

You need to make Joomla template override for JS HelloMe.
Copy ...\modules\mod_community_hellome\tmpl\default.php
to
...\templates\YOUR_JOOMLA_TEMPLATE\html\mod_community_hellome\
Edit ...\templates\YOUR_JOOMLA_TEMPLATE\html\mod_community_hellome\default.php line 75 to look like:

<div class="joms-hcard__cover" onclick="location.href='<?php echo CUrlHelper::userLink($user->id); ?>';" style="cursor: pointer;">
Basically insert:
onclick="location.href='<?php echo CUrlHelper::userLink($user->id); ?>';" style="cursor: pointer;"
after:
<div class="joms-hcard__cover"
and leave:
>
behind.
In case of any trouble with that module, delete
...\templates\YOUR_JOOMLA_TEMPLATE\html\mod_community_hellome\default.php
and one from
...\modules\mod_community_hellome\tmpl\
will be used, which should solve any problems and revert all changes.

6 years 6 months ago
  • Vladimir's Avatar
    Topic Author
  • Vladimir
  • Offline
  • Junior Boarder
  • Posts: 283
  • Thank you received: 40
Licenses:
JomSocial Active

Since we have link for whole block we don't need one for avatar so we can remove that code.
Edit ...\templates\YOUR_JOOMLA_TEMPLATE\html\mod_community_hellome\default.php line 84 so it looks like:

<img src="<?php echo $user->getThumbAvatar(); ?>" alt="<?php echo $user->getDisplayName(); ?>">
Basically we removed:
<a href="<?php echo CUrlHelper::userLink($user->id); ?>">
and
</a>
to leave just img.
This is just for those that go for optimum code performance :)

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