By Anders Lolk Vestergaard on Tuesday, 20 November 2018
Posted in General Issues
Likes 0
Views 400
Votes 0
Hi.

Is it possible to remove the "Manage alerts" bottom in Account settings on frontend?
Hey there,

Do you mean that you want to remove the "Manage alerts" bottom in Account settings only on frontend as shown in the screnshot?

If yes, you can copy the default.php file which is at JoomlaFolder/components/com_easysocial/themes/wireframe/toolbar/default.php and paste it into template override location which is at JoomlaFolder/templates/YourCurrentTemplate/html/com_easysocial/toolbar/default.php.

Do take note you need to create the folders if you don't see them for the template override.

After that, modify the line 553 to 557 of the default.php file which is at template override location by removing the following PHP code:

[gist type="php"]
<li>
<a href="<?php echo ESR::profile(array('layout' => 'editNotifications'));?>">
<?php echo JText::_('COM_EASYSOCIAL_MANAGE_ALERTS');?>
</a>
</li>
[/gist]

Can you have a try and see how it goes?
·
Wednesday, 21 November 2018 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi again.

I've removed the code, but the button is still there (it's button and not bottom as I wrote before )
·
Thursday, 22 November 2018 03:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

Do you mean that you want to remove the "Manage alerts" in Edit Profile only as shown in the screenshot?

If yes, you can copy the default.php file which is at JoomlaFolder/components/com_easysocial/themes/wireframe/profile/edit/default.php and paste it into template override location which is at JoomlaFolder/templates/YourCurrentTemplate/html/com_easysocial/profile/edit/default.php.

Do take note you need to create the folders manually if you don't see them for the template override.

After that, modify the line 84 to 86 of the default.php file which is at template override location by removing the following PHP code:
[gist type="php"]
<li class="o-tabs__item">
<a href="<?php echo ESR::profile(array('layout' => 'editNotifications'));?>" class="o-tabs__link"><?php echo JText::_('COM_EASYSOCIAL_MANAGE_ALERTS');?></a>
</li>
[/gist]

If I understand your question wrong again, can you provide us with some screenshots so that we can have a better understanding of your question?
·
Thursday, 22 November 2018 11:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks - it works
·
Friday, 23 November 2018 18:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Anders,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Friday, 23 November 2018 19:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post