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)
-   -   Double navigation buttons bar (https://vborg.vbsupport.ru/showthread.php?t=92012)

Dream 07-11-2005 10:00 PM

Double navigation buttons bar
 
This was the best solution to have more navbar links I saw so far.

Edit "navbar" template, find

Code:

<!-- breadcrumb, login, pm info -->
add before

Code:

<!-- top nav buttons bar -->
<div align="center">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-bottom-width:0px">
        <tr align="center">
                <td class="vbmenu_control"><a href="index.php?$session[sessionurl]">Home</a></td>
                <td class="vbmenu_control"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td>
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td>
                <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
                <if condition="$show['member']">
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">My Topics</a></td>
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]">My Replies</a></td>
                <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars  =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
                <td class="vbmenu_control"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td>
                </if>
        </tr>
        </table>
</div>
<!-- / top nav buttons bar -->

and change the links as you like :P


edit: you can use this to put a link for the admincp in the navbar

Code:

                <if condition="$bbuserinfo[usergroupid] == 6">
                <td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">AdminCP</a></td>
                </if>


dreck 07-12-2005 02:27 AM

I like the idea... I have my 2nd navbar with a space below the original. I tried yours & I haven't deside which one I like best.

Thanks!

Dream 07-12-2005 09:27 PM

I saw your forum :) yeah its a matter of taste, I just needed space to throw some links at

here are a couple interesting links to fill out gaps if you need

My Topics (topics you started sorted by last reply)

Code:

        <if condition="$show['member']">
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">My Topics</a></td>
        </if>

My Replies (topics I replied sorted by last reply)

Code:

        <if condition="$show['member']">
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]">My Replies</a></td>
        </if>


edit: changed "topics I replied" to "my replies", kinda nicer

Gio 07-13-2005 03:28 AM

Installed my site is more user friendly now than ever.

Horsham R/C 07-13-2005 04:56 AM

Quote:

Originally Posted by Dream
I saw your forum :) yeah its a matter of taste, I just needed space to throw some links at

here are a couple interesting links to fill out gaps if you need

My Topics (topics you started sorted by last reply)

Code:

        <if condition="$show['member']">
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">My Topics</a></td>
        </if>

My Replies (topics I replied sorted by last reply)

Code:

        <if condition="$show['member']">
                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]">My Replies</a></td>
        </if>


edit: changed "topics I replied" to "my replies", kinda nicer

Does this work in 3.0 ?

Tony G 07-13-2005 05:11 AM

Thank you for sharing your mod Dream.

Could you please place your mod instructions in a .txt and attach it in a zip? It's easier for members to refer back to the modification if required if they can save it on their computers. :)

Thank you.

Dream 07-13-2005 06:04 AM

done

Quote:

Originally Posted by Gio
Installed my site is more user friendly now than ever.

cool, you did it wrong though... you replaced your navbar for this one, that way people wont be able to register in your forums, you should revert your navbar

Quote:

Originally Posted by Horsham R/C
Does this work in 3.0 ?

those links? dont know, try calling them directly and see if they work

JD210 07-13-2005 09:45 AM

Sure does work in 3.0. I installed it on my site yesterday and it works perfectly.

Horsham R/C 07-13-2005 05:55 PM

Quote:

Originally Posted by JD210
Sure does work in 3.0. I installed it on my site yesterday and it works perfectly.

What I quoted and not the hack. I already installed the hack. The dependancies that Dream posted require those of which are in 3.5.

JD210 07-13-2005 08:30 PM

Yes those work as well, I have them added to my site and they work, the only change I made is I put them in the Quick Links instead of the navbar.


All times are GMT. The time now is 08:08 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.01145 seconds
  • Memory Usage 1,748KB
  • 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
  • (7)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete