By Vsotour on Wednesday, 07 March 2018
Posted in General Issues
Replies 3
Likes 0
Views 350
Votes 0
Hi,

How to disable profile popup only EasySocial Dropdown Menu module, other module still show profile popup?
Hi there,

You can apply codes below at this path .../template/current_template/html/com_easysocial/helpers/avatar/user.php and see how it goes
·
Wednesday, 07 March 2018 16:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

I try to apply user.php that you attached at above, it can disable user profile popup but not match my require (disable popup all module). I want to disable only EasySocial Dropdown Menu module (no.1 on the attached) and other module still can show popup. Thank you.
·
Sunday, 11 March 2018 11:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Wutthiphong,

Hm, if you only want to selectively disable this, it's more tedious to hack because there is no way for the helper to know who is calling it. You need to apply the hacks on the following files,

/components/com_easysocial/themes/wireframe/stream/default/item.php

OLD:
[gist]
<?php echo $this->html('avatar.' . $stream->getActorAlias()->getType(), $stream->getActorAlias(), 'default', true, false); ?>
[/gist]

NEW:
[gist]
<?php echo $this->html('avatar.' . $stream->getActorAlias()->getType(), $stream->getActorAlias(), 'default', false, false); ?>
[/gist]


/modules/mod_easysocial_menu/tmpl/default.php

OLD:
[gist]
<?php echo ES::themes()->html('avatar.user', $my, 'lg'); ?>
[/gist]

NEW:
[gist]
<?php echo ES::themes()->html('avatar.user', $my, 'lg', false); ?>
[/gist]


/modules/mod_easysocial_dropdown_menu/tmpl/default.php

OLD:
[gist]
<?php echo $lib->html('avatar.user', $lib->my); ?>
[/gist]

NEW:
[gist]
<?php echo $lib->html('avatar.user', $lib->my, 'default', false); ?>
[/gist]
·
Sunday, 11 March 2018 12:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post