vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Add links to forumleader bar (https://vborg.vbsupport.ru/showthread.php?t=107894)

Lineman28645 02-12-2006 10:00 PM

Add links to forumleader bar
 
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:

Code:

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 10:59 PM

I saw the code to restrict the search to 1 forum. How can I restrict the search to multiple forums?


All times are GMT. The time now is 03:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01985 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete