Log in

View Full Version : Add links to forumleader bar


Lineman28645
02-12-2006, 10:00 PM
Just a simple mod I was playing around with that adds more links to the forum leaders bar. I've added a few for demonstration. However its very easy to remove links and add others if you so wish. :)

This is my 2nd mod, so please be nice. :smoke:


Go to: Admin CP > Styles & Templates > Edit Templates > Forum Home Templates > FORUMHOME

Find:
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>

Change With:
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a> -
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> - </if>
<a href="$vboptions[homeurl]">$vboptions[hometitle]</a>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> - </if><if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> - </if>
<if condition="$vboptions['forumleaders']"> <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>



Simple, but might be useful. If you have any questions about removing a link or adding another link, let me know. So you know, I'll post screenshots of what it looks like when logged in as Admin, a Mod, a Member, and when not logged in.

Cheers.

bashy
02-13-2006, 07:24 PM
Nice 1...installed thank you :)

Lineman28645
02-13-2006, 08:19 PM
Glad you like it. Hope its useful to others :paranoid:

Daniel
02-13-2006, 09:29 PM
Nice one :)

Hornstar
02-14-2006, 06:10 AM
I've had mods ask why they dont get the modcp link and smods do in the past, so this will solve that issue.

thanks

Snake
02-14-2006, 08:42 AM
Thank you!

Wongod
05-11-2006, 11:59 PM
I saw the code to restrict the search to 1 forum. How can I restrict the search to multiple forums?