By Mel on Saturday, 13 October 2018
Posted in General
Likes 0
Views 529
Votes 0
Hi,

I want to call eaqsydiscuss from the easysocial toolbar and docker menu links. I have managed to add the toolbar link via the default.php file in components/easysocial/themes/wireframe/toolbar by adding the following code:


<?php } ?>
<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easydiscuss/includes/router.php');
?>
<?php if ($this->config->get('audio.enabled')) { ?>
<div class="o-nav__item <?php echo $highlight == 'forums' ? 'is-active' : '';?>">
<a href="<?php echo EDR::_('view=forums');?>" class="o-nav__link es-toolbar__link">
<i class="fa fa-music t-sm-visible"></i>
<span>
<?php echo JText::_('Forums'); ?>
</span>
</a>
</div>


After this block for audios:


<?php } ?>

<?php if ($this->config->get('audio.enabled')) { ?>
<div class="o-nav__item <?php echo $highlight == 'audios' ? 'is-active' : '';?>">
<a href="<?php echo ESR::audios();?>" class="o-nav__link es-toolbar__link">
<i class="fa fa-music t-sm-visible"></i>
<span>
<?php echo JText::_('COM_EASYSOCIAL_TOOLBAR_AUDIOS'); ?>
</span>
</a>
</div>


However I cannot get this to work in the docker toolbar. I have copied the audios block which I am trying to adapt:


<?php } ?>

<?php if ($this->config->get('audio.enabled')) { ?>
<li>
<a href="<?php echo ESR::audios();?>">
<i class="fa fa-music"></i>
<span><?php echo JText::_('COM_ES_AUDIOS');?></span>
</a>
</li>


What do I need to change in this code to get it to open my forums page?

Kind regards

Melanie
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Does it work if you add this following code in JoomlaFolder/plugins/system/docker/themes/default.php?

[gist type="php"]
<li>
<a href="<?php echo EDR::_('view=forums');?>">
<i class="fa fa-music"></i>
<span><?php echo JText::_('Forums');?></span>
</a>
</li>
[/gist]
·
Sunday, 14 October 2018 12:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks so much Arlex - works perfectly

Mel
Mel
·
Sunday, 14 October 2018 18:40
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.

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
·
Monday, 15 October 2018 10:07
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post