By Sean on Saturday, 19 April 2014
Posted in General Issues
Replies 17
Likes 0
Views 0.9K
Votes 0
I'm not talking about for individual users as those links are already available. I need the overview to be available on the menu too. The pages that tell you what you need to do to get the points or badges/Achievements and what each are worth.

For example: /points.html and /badges.html

How can I add these to Frosty menu?
Hello Sean,

I have added the file in /public_html/Evolved/templates/rt_leviathan/html/com_easysocial/toolbar/default.php . Can you see if this is what you wanted?
·
Tuesday, 22 April 2014 01:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sean,

You mean the menus that appear beneath the toolbar? You can find them at /components/com_easysocial/themes/frosty/toolbar/default.profile.php
·
Saturday, 19 April 2014 13:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

Hello Sean,

You mean the menus that appear beneath the toolbar? You can find them at /components/com_easysocial/themes/frosty/toolbar/default.profile.php


Yep, those menus, Mark. I looked in that file earlier but don't have the technical knowledge to add further menus to the list. I tried creating a new list item within the unordered list using just an a=href link and that didn't work it just listed the text without the link.

Suggestions?
·
Saturday, 19 April 2014 14:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you upload the file here Sean?
·
Saturday, 19 April 2014 22:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure Mark. I have attached default.php aswell as that looks like that could be the file to add those menus to?
·
Sunday, 20 April 2014 01:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh yes, my bad. That's the file that you should be adding the menu to in default.php and not default.profile.php as the Frosty theme uses a different format.
·
Sunday, 20 April 2014 14:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

Oh yes, my bad. That's the file that you should be adding the menu to in default.php and not default.profile.php as the Frosty theme uses a different format.


I'd thought so, Mark. I'm just not sure what code to add to that file to allow those menus to show up? Any ideas?
·
Monday, 21 April 2014 06:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sean,

You should be adding another list item. For instance,


<li>
<a href="<?php echo FRoute::albums( array( 'uid' => $this->my->getAlias() , 'type' => SOCIAL_TYPE_USER ) );?>">
<?php echo JText::_( 'Some text here' );?>
</a>
</li>
·
Monday, 21 April 2014 09:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark but that's what I'm asking. What code would I put within the list item? I'm not sure how that code works?
·
Monday, 21 April 2014 10:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sean,

I am sorry for the delay of this reply. Try these code:


<li>
<a href="<?php echo FRoute::points();?>">
<i class="ies-health ies-small mr-5"></i><?php echo JText::_( 'Points' );?>
</a>
</li>
<li>
<a href="<?php echo FRoute::badges();?>">
<i class="ies-crown ies-small mr-5"></i><?php echo JText::_( 'Badges' );?>
</a>
</li>


Hope this help and have a nice day
Sam
·
Monday, 21 April 2014 12:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Sam wrote:

Hi Sean,

I am sorry for the delay of this reply. Try these code:


<li>
<a href="<?php echo FRoute::points();?>">
<i class="ies-health ies-small mr-5"></i><?php echo JText::_( 'Points' );?>
</a>
</li>
<li>
<a href="<?php echo FRoute::badges();?>">
<i class="ies-crown ies-small mr-5"></i><?php echo JText::_( 'Badges' );?>
</a>
</li>


Hope this help and have a nice day


Thanks for the reply Sam, but those didn't work. Results in my Dashboard getting a white screen.

For the Points and Badges list items for individual users, that code looks like this:

<?php if( $this->config->get( 'badges.enabled' ) ){ ?>

<li class="<?php echo $view == 'badges' ? 'active' : '';?>">

<a href="<?php echo FRoute::badges( array( 'layout' => 'achievements' ) );?>">

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

</a>

</li>

<?php } ?>



<?php if( $this->config->get( 'points.enabled' ) ){ ?>

<li class="<?php echo $view == 'points' ? 'active' : '';?>">

<a href="<?php echo FRoute::points( array( 'layout' => 'history' , 'userid' => $this->my->getAlias() ) );?>">

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

</a>

</li>


The code you gave, looks to be missing the language strings too? I'm not sure though, just going off of observation.
·
Monday, 21 April 2014 18:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sean,

Ah, look like the editor truncated the 'p' character!!

it should be

Froute:[nospace]points();


See this: http://screencast.com/t/RBxAAtUjy

Ah yes, the code is just an example. You will need to put the correct translation string.

Hope this help and have a nice day
Sam
·
Monday, 21 April 2014 18:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hmmm...I have no idea what to put in there as the code. I can't go off of examples because I'm not familiar with the code or how it works. I was asking for the code directly. Oh well. Thanks for the replies.
·
Monday, 21 April 2014 18:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sean,

Perhaps if you want, provide us with the FTP access and we'll do this for you
·
Monday, 21 April 2014 23:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure Mark. I know you guys must be pretty busy with more important things so it really means alot that you'd help me with this. Thank you. Site Details are included.
·
Tuesday, 22 April 2014 01:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect! Thank you, Mark! You're a good person.
·
Tuesday, 22 April 2014 02:06
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Sean Glad that your issues are resolved now.
·
Tuesday, 22 April 2014 03:45
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post