UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Custom Toolbar Links

Michael Martin · ·
1:16 AM Thursday, 12 April 2018
None
If you are like me and want to have direct links to Easy Blog and Easy Discuss on your Easy Social Toolbar I have the perfect solution for everyone! The following code should work perfectly for any website.

Code for Easy Social

<!-- BEGIN CUSTOM TOOLBAR -->

<li class="<?php echo $active == 'forums' ? ' is-active' : '';?>">
<a href="/<?php echo EDR::_('index.php?option=com_easydiscuss');?>" class="es-navbar__footer-link">
<span><?php echo JText::_('Forums');?></span>
</a>
</li>

<li class="<?php echo ($views->latest) ? 'is-active' : ''; ?>">
<a href="/<?php echo EBR::_('index.php?option=com_easyblog');?>" class="es-navbar__footer-link">
<span><?php echo JText::_('Blog');?></span>
</a>
</li>

<!-- END CUSTOM TOOLBAR -->


Code for Easy Blog


<!-- BEGIN CUSTOM TOOLBAR -->
<li class="<?php echo $highlight == 'Forums' ? 'is-active' : '';?>">
<a data-original-title="Forums"
data-placement="top"
data-es-provide="tooltip"
href="/forums" class="o-nav__link eb-toolbar__link">
<span>

<?php echo JText::_('Forums');?>

</span>
</a>
</li>
<li class="<?php echo $highlight == 'Community' ? 'is-active' : '';?>">
<a data-original-title="Community"
data-placement="top"
data-es-provide="tooltip"
href="/component/easysocial/?view=dashboard" class="o-nav__link eb-toolbar__link">
<span>

<?php echo JText::_('Community');?>

</span>
</a>
</li>
<!-- END CUSTOM TOOLBAR -->



Code for Easy Discuss

<!-- BEGIN CUSTOM TOOLBAR -->

<li class="<?php echo ($views->latest) ? 'is-active' : ''; ?>">
<a href="/<?php echo EBR::_('index.php?option=com_easyblog');?>" class="ed-navbar__footer-link">
<span><?php echo JText::_('Blog');?></span>
</a>
</li>

<li class="<?php echo ($views->community) ? 'is-active' : '';?>">
<a href="/<?php echo ESR::_('index.php?option=com_easysocial');?>" class="ed-navbar__footer-link">
<span><?php echo JText::_('Community');?></span>
</a>
</li>

<!-- END CUSTOM TOOLBAR -->


You have to change the default.php template file each component respectively:

Easy Social: /components/com_easysocial/themes/wireframe/toolbar/default.php
Easy Blog: /components/com_easyblog/themes/wireframe/toolbar/default.php
Easy Blog: /components/com_easydiscuss/themes/wireframe/toolbar/default.php

I hope that others find this useful.

Have a get day.
The replies under this section are restricted to logged in users or users with an active subscription with us