vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Double navigation buttons bar (https://vborg.vbsupport.ru/showthread.php?t=172301)

Dream 03-06-2008 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 class="tborder" style="padding:1px; border-bottom-width:0px">
    <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
    <tr align="center">
        <td class="vbmenu_control"><a href="index.php?$session[sessionurl]">Home</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 Threads</a> / <a href="search.php?$session[sessionurl]do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]">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;">Contacts</a></td>
        </if>
        <td class="vbmenu_control"><a href="group.php?$session[sessionurl]">Social Groups</a></td>
        <td class="vbmenu_control"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td>
        <if condition="$bbuserinfo[usergroupid] == 6">
        <td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">AdminCP</a></td>
        </if>
    </tr>
    </table>
</div>
<!-- / top nav buttons bar -->

and change the links as you like :P

iogames 03-07-2008 12:09 AM

Great work as always ;)

logicuk 03-07-2008 05:46 AM

Thanks alot i will find some use for this :)

princeedward 03-07-2008 06:12 AM

great...need this one...thanks a lot... ;)

KURTZ 03-07-2008 07:00 AM

tagged! :P

SuperDave71 03-07-2008 03:45 PM

Just what I was looking for!

Thank you!

-Dave

IRANCITY 03-08-2008 07:21 AM

thank you my friends
installed

iogames 03-11-2008 04:53 AM

Hi Dreaminho I returned to ask u...
It's possible to have a 3rd NavBar with just links related to that SubForum? [i.e. Phones, Games, etc]

Boofo 03-11-2008 05:32 AM

You know you can do this as a plug-in and automatic template replace, right? I have already done this if you would like to see the plug-in.

tctransporter 03-11-2008 07:02 AM

Cool, I've been looking for a double nav bar my version. BTW: I only have version 3.6.8 :s Is there a 3.7 version I'm missing?

shawon025 03-11-2008 02:15 PM

very very thanx ..... i already applied into my forum

choccyclaire 03-11-2008 06:50 PM

This is just what I need, and so simple! Thanks. :)

iogames 03-11-2008 07:49 PM

Quote:

Originally Posted by Boofo (Post 1462048)
You know you can do this as a plug-in and automatic template replace, right? I have already done this if you would like to see the plug-in.

Can I see it please?

Boofo 03-11-2008 08:17 PM

iogames, PM me so we don't clutter up his thread.

Mike-D 03-11-2008 08:52 PM

Quote:

Originally Posted by Boofo (Post 1462048)
You know you can do this as a plug-in and automatic template replace, right? I have already done this if you would like to see the plug-in.

Bob,
no doubt: Plugins are in most ways the best solution and it's really no big deal to write an Plugin as you already did. But in this case I'd recommend to use TMS! In most Codes (esp in HTML Codes) always the best solution ;)

Boofo 03-11-2008 09:04 PM

Yes, the plug-in was a big deal as getting it to work in the arcade was a nightmare.
TMS is great if you have it installed and are using it. Alot of people aren't yet.

jwhale 03-12-2008 03:15 AM

hi there, Firstly, this is a great peice of code for a simple partial coder like me, thanks.

What i want to do is display a link on the navbar based upon what page a user is currently looking at. So, for example, a user who is logged in (ie <if condition="$show['member']">) gets to see a bunch of links in menu, then say for example the main forums page (I am using vbadvanced cmps) has a link to the home index page, and the home index page has a link to the main forums page?

anyone can answer this simple condition test?

iogames 03-14-2008 05:34 PM

Quote:

Originally Posted by Boofo (Post 1462509)
Yes, the plug-in was a big deal as getting it to work in the arcade was a nightmare.
TMS is great if you have it installed and are using it. Alot of people aren't yet.

What's TMS? :rolleyes:

DarkSorrowz 03-14-2008 06:26 PM

How do I make it so I can make it go to another link and not take you to

www.forumhome.com/www.redirectedlink.com

I want it just to take you to

www.redirectedlink.com

when you click it

(Note: Those are not the actual links)

4number8 03-14-2008 10:25 PM

How would I add another usergroup to the AdminCP part here.....

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


I added after the 6 using a comma, and it did't work, any help would be appreciated and thanks for a nice hack.

Mike-D 03-15-2008 11:58 AM

Quote:

Originally Posted by iogames (Post 1464722)
What's TMS? :rolleyes:

The Template Modificatn System is one of the best vB Hacks ever and has been released by Andreas. You can find it here :)

Please note: Probably you'll need a lil bit time to understand what TMS can do and it's a lil bit complex too. But once you know how it works you'll never miss it ;) It's simply the best :up:

Boofo 03-15-2008 12:06 PM

Quote:

Originally Posted by Mike-D (Post 1465327)
The Template Modificatn System is one of the best vB Hacks ever and has been released by Andreas. You can find it here :)

Please note: Probably you'll need a lil bit time to understand what TMS can do and it's a lil bit complex too. But once you know how it works you'll never miss it ;) It's simply the best :up:

I got lazy and started doing automatic template edits for my hacks.

Mike-D 03-15-2008 12:09 PM

Quote:

Originally Posted by 4number8 (Post 1464926)
How would I add another usergroup to the AdminCP part here.....

I went another way in doing that job. To add a Top Menu in the Top navbar is always the same. I've changed mine completely through TMS and here's the result of the Top Menu... :)


HTML Code:

<!-- ******************************* -->
<!-- * 1.  TOP-NAVBAR 'LINKS'      -->
<!-- ******************************* -->
<templateedits product="vbulletin" version="3.6.8">
<templateedit template="navbar" varname="top_navbar_links" username="MikeD" version="3.6.8">
<title>Top Navbar 'Links'</title>               
<searchstr><![CDATA[<!-- breadcrumb, login, pm info -->]]></searchstr> <!-- Spot where the Top navbar starting at! -->
<replacestr><![CDATA[<!-- breadcrumb, login, pm info -->
<!-- Top Navbar -->
<if condition="$show['member']">
  <div align="center">
    <table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center" style="border-bottom-width:0px">
          <tr align="center">
          <td class="vbmenu_control"><a href="/vbulletin/upload/index.php">$vbphrase[forum]</a></td>
          <td class="vbmenu_control"><a href="/vbulletin/upload/portal.php">$vbphrase[portal]</a></td>
          <td class="vbmenu_control"><a href="/vbulletin/upload/photoplog/index.php">$vbphrase[gallery]</a></td>
          <td class="vbmenu_control"><a href="/vbulletin/upload/arcade.php">$vbphrase[arcade]</a></td>
          <td class="vbmenu_control"><a href="/vbulletin/upload/chat/flashchat.php">$vbphrase[chat]</a></td>
<!--  <td class="vbmenu_control"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a></td> -->
      <td class="vbmenu_control"><a href="impressum.php">Impressum</a></td>

                        <!-- Administrators & Super Moderators Only -->
                        <if condition="in_array($bbuserinfo['usergroupid'], array(5,6))"> <!-- Primary Usergroups! -->
                                <td id="admin_links" class="vbmenu_control"><a href="#">Admin/Mod</a><script type="text/javascript"> vbmenu_register("admin_links"); </script></td>
                        </if>
          </tr>
    </table>
  </div>
</if>
<!-- / Top Navbar -->]]></replacestr>
        </templateedit>


Boofo 03-15-2008 12:36 PM

I'd like to see how you did the drop down for that. Can you PM me the code you used for it, sir? ;)

KURTZ 03-15-2008 02:16 PM

Quote:

Originally Posted by Boofo (Post 1465334)
I got lazy and started doing automatic template edits for my hacks.

i love you Bobby :D

Mike-D 03-15-2008 02:27 PM

Quote:

Originally Posted by Boofo (Post 1465346)
I'd like to see how you did the drop down for that. Can you PM me the code you used for it, sir? ;)

Do you mean me, Sir Bobby ? :D

Quote:

Originally Posted by KURTZ (Post 1465391)
i love you Bobby :D

Yep, love him too :)

Dream 03-15-2008 07:50 PM

Quote:

Originally Posted by Boofo (Post 1462487)
iogames, PM me so we don't clutter up his thread.

If you guys want to use this thread to share codes I don't mind. If you want to release your automatic template version I don't mind either, as I'm not changing this one to automatic template.

DarkSorrowz 03-15-2008 09:56 PM

Quote:

Originally Posted by DarkSorrowz (Post 1464754)
How do I make it so I can make it go to another link and not take you to

www.forumhome.com/www.redirectedlink.com

I want it just to take you to

www.redirectedlink.com

when you click it

(Note: Those are not the actual links)

Can anyone tell me?

R1lover 03-15-2008 10:21 PM

Been there done that for years...

Dream 03-16-2008 03:15 AM

Quote:

Originally Posted by DarkSorrowz (Post 1465686)
Can anyone tell me?

use the full address, with http:// in front
Quote:

Originally Posted by R1lover (Post 1465696)
Been there done that for years...

thanks for sharing

Boofo 03-16-2008 05:21 PM

Quote:

Originally Posted by Mike-D (Post 1465396)
Do you mean me, Sir Bobby ? :D

Yep, love him too :)

Yes, Mike, I mean you, sir. ;)

Gosef 03-26-2008 10:30 AM

thank you my friends
installed

LorraineMc 05-07-2008 07:10 PM

thanks works great....

dancue 05-09-2008 03:14 AM

Quote:

Originally Posted by Boofo (Post 1465346)
I'd like to see how you did the drop down for that. Can you PM me the code you used for it, sir? ;)

Same here. Please?

Baldilocks 05-14-2008 06:22 AM

Awesome!! Installed!!

Scout24 06-20-2008 10:17 PM

Thx and installed

t.uzuner 07-13-2008 08:30 AM

thanks friends :)
installed

steve1966 07-13-2008 07:32 PM

great thanks

steve1966 07-14-2008 06:11 AM

i dont know if someone can help me here i have a vBadvanc on my forum and want to put a link on the forum navbar saying portal i want to change this

<td class="vbmenu_control"><a href="index1.php?$session[sessionurl]">Home</a></td>

to

<td class="vbmenu_control"><a href="index1.php?$session[sessionurl]">Portal</a></td>

the portal addy is www.myforum.com andthe forum addy is www.myforum.com/forums

what do i need to do to edit the code so it takes me to the portal from the forum

thanks

R1lover 07-14-2008 06:22 AM

Quote:

Originally Posted by steve1966 (Post 1574784)
i dont know if someone can help me here i have a vBadvanc on my forum and want to put a link on the forum navbar saying portal i want to change this

<td class="vbmenu_control"><a href="index1.php?$session[sessionurl]">Home</a></td>

to

<td class="vbmenu_control"><a href="index1.php?$session[sessionurl]">Portal</a></td>

the portal addy is www.myforum.com andthe forum addy is www.myforum.com/forums

what do i need to do to edit the code so it takes me to the portal from the forum

thanks

Where is your forum located? in the root or in the /forum or /forums directory?


All times are GMT. The time now is 05:19 PM.

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.01598 seconds
  • Memory Usage 1,837KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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