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)
-   -   Forum Display Enhancements - Easy Navbar Links (https://vborg.vbsupport.ru/showthread.php?t=201461)

SuperTaz 01-11-2009 10:00 PM

Easy Navbar Links
 
Description:
This template edit displays quick and easy links to your navigation.

Installation Time: Less than 1 minute

I got the inspiration from "yoyoyoyo" who made a similar mod for 3.6.8. Although his might work fine for this also, I decided to alter it a bit and cleaned up some code.

I did PM yoyoyoyo to use a variation of his hack but, since he has not been online since September 2008, I can't get a response.

Since yoyoyoyo came up with this type of template edit, all the credit goes to him.

Here is the mod from yoyoyoyo for version 3.6.8:

https://vborg.vbsupport.ru/showthread.php?t=160642

Template Edit:

Styles and Templates > Style Manager > Your Style > Navigation / Breadcrumb Templates > Navbar:

In the Navbar find:

Code:

<!-- breadcrumb, login, pm info -->
Above it add:

Code:

<!-- Navbar Links -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px">
<tr align="center">
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
</tr>
</table>
</div>
<!-- / Navbar Links -->

Then click Save and Reload!

Done!


OPTIONAL:

If you want to show a link only to members use this:


Code:

<if condition="$show['member']">
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
</if>

If you want to show a link only to members, and a different link to guests use this:

Code:

<if condition="$show['member']">
<td class="vbmenu_control"><a href="http://url.com">Member Link Title Goes Here</a></td>
<else />
<td class="vbmenu_control"><a href="http://url.com">Guest Link Title Goes Here</a></td>
</if>

To make the link open in a new window use this URL instead:

Code:

<td class="vbmenu_control"><a href="http://url.com" target="_blank">Link Title Goes Here</a></td>
To make the link(s) only visible to certain usergroups use this:

Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)">
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
</if>

Substitute X, Y, Z with the ID numbers of the groups that you want to allow to see the link. If you only want one usergroup to be able to see the link then use: $bbuserinfo, X and substitute X with the ID number of the group that you want to allow to see the link.


Of Course you want to change the URL's to your site URL and direct the link to any site or feature you want for your site.


Any problems, let me know.

Make sure if you use this template edit to CLICK INSTALL.

Nightmare-GameZ 01-27-2009 05:25 AM

yay first one! Installed! xD

Lautaro 01-27-2009 09:11 AM

Thanks, installed & rated...

I have a question:

How can i make it look like the normal navbar ( with the white border ) ? because this one doesn't has the white border.. i want the 2 navbars to look the same..

SuperTaz 01-29-2009 10:36 PM

Can you post a picture of what you mean so I can see what you want.

sowyrgardn 02-03-2009 06:10 PM

Very easy to install and great results!! thank you!

Acoly 02-03-2009 09:01 PM

I'm having issues centering the links. I only need two links, one for DKP and one for a Raid Calendar (it's for a MMO guild website). They don't center correctly, and I've adjusted the labels accordingly.

Any suggestions?

SuperTaz 02-05-2009 12:05 AM

Quote:

Originally Posted by Acoly (Post 1733452)
I'm having issues centering the links. I only need two links, one for DKP and one for a Raid Calendar (it's for a MMO guild website). They don't center correctly, and I've adjusted the labels accordingly.

Any suggestions?

Can you post your site link so I can take a look?

SuperTaz 02-05-2009 12:12 AM

Updated the conditionals and the .txt file.

SuperTaz 05-01-2009 04:07 AM

Any other questions, let me know. I am not around much, so I will help anyone when I can.

The Big Three 05-26-2009 08:04 PM

How do you make it so it goes down like "Quick Links"


All times are GMT. The time now is 11:38 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.01264 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)bbcode_code_printable
  • (1)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
  • (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