By stackideas newbie on Thursday, 30 July 2015
Likes 0
Views 1K
Votes 0
Dear Tech Team,

Understand there is not a plugin for CB yet and your team was going to look into that, according to some previous posts.

The options to use CB Profile and Avatar are helpful, except one would not be able to follow posts and replies created by any particular member. Since counts of posts, replies, and badges of each member are still shown on the Members page, would it be possible to edit the codes for href (presumably the following lines from user.item.php?) so that clicks would be directed to the ED default pages instead of CB Profile?

<a href="/<?php echo $user->getLink( '#questions' );?>" rel="ed-tooltip" data-original-title="<?php echo JText::_( 'COM_EASYDISCUSS_USER_TOOLTIP_QUESTIONS' );?>"><i class="icon-book"></i> <?php echo $user->getNumTopicPosted();?> </a>
</li>
<li>
<a href="/<?php echo $user->getLink( '#replies');?>" rel="ed-tooltip" data-original-title="<?php echo JText::_( 'COM_EASYDISCUSS_USER_TOOLTIP_REPLIES' );?>"><i class="icon-comments"></i> <?php echo $user->getNumTopicAnswered();?> </a>
</li>
<li>
<a href="/<?php echo $user->getLink( '#achievements');?>" rel="ed-tooltip" data-original-title="<?php echo JText::_( 'COM_EASYDISCUSS_USER_TOOLTIP_BADGES' );?>"><i class="icon-trophy"></i> <?php echo $user->getTotalBadges();?> </a>


Many thanks!
Hey there,

Hm, yeah you are right. You need to modify the theme files and alter those links that you have posted here. You could change it to something like this,


<?php echo DiscussRouter::_('index.php?option=com_easydiscuss&view=profile&id='.$user->id, false);?>#replies
<?php echo DiscussRouter::_('index.php?option=com_easydiscuss&view=profile&id='.$user->id, false);?>#questions
<?php echo DiscussRouter::_('index.php?option=com_easydiscuss&view=profile&id='.$user->id, false);?>#achievements
·
Friday, 31 July 2015 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, Mark!

These links function as intended.
·
Sunday, 09 August 2015 07:27
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Sunday, 09 August 2015 13:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post