Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
Easy Navbar Links Details »»
Easy Navbar Links
Version: 1.00, by SuperTaz SuperTaz is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.8.x Rating:
Released: 01-10-2009 Last Update: 02-04-2009 Installs: 172
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

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.

Download Now

File Type: txt navbar.txt (2.8 KB, 474 views)

Screenshots

File Type: jpg navbar.jpg (18.9 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Perrier Sophie

Comments
  #72  
Old 07-02-2009, 07:42 PM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will see what I can do, yossie3660.

And s-p0k, just take out the

<--- Navbar Links---->

and save and reload and should be gone.
Reply With Quote
  #73  
Old 07-12-2009, 07:54 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is awesome! Installed! and Works perfect with the mod Advanced Navbar Links!

THANKS!
Reply With Quote
  #74  
Old 07-13-2009, 06:33 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome.
Reply With Quote
  #75  
Old 07-13-2009, 08:21 AM
yossie3660's Avatar
yossie3660 yossie3660 is offline
 
Join Date: Feb 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warden-B- View Post
I will see what I can do, yossie3660.

And s-p0k, just take out the

<--- Navbar Links---->

and save and reload and should be gone.
Thanks a lot...i will wait about this...cause i need put many links in 2 dropdown button, the idea is simple...but....i try to modification by my self....its hard...so i need your help....thanks alot...i will wait...and maybe if u created new mods, please put the links so i can know from this thread oke?...thanks a lot once again...(",)

regards
yossie3660
Reply With Quote
  #76  
Old 07-13-2009, 05:38 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yossie3660 View Post
Thanks a lot...i will wait about this...cause i need put many links in 2 dropdown button, the idea is simple...but....i try to modification by my self....its hard...so i need your help....thanks alot...i will wait...and maybe if u created new mods, please put the links so i can know from this thread oke?...thanks a lot once again...(",)

regards
yossie3660
Combining Two Mods Together For Perfection!

With this mod which easily makes a second navbar combined with the "Advanced Navbar Links" mod you can have the power to add in drop menus (with icons), full permission control, single links, etc.. all editable from inside the AdminCP without having to edit the navbar menu except to initially install both mods together.

If you look at my attached screen shot you will see I have two navbars. I also have a drop menu for my blogs in the top navbar which I have made where each sub-link has icons!

Instructions For Combining These Two Mods Together:

STEP-1: Install this mod into you navbar template as instructed.

STEP-2: You only need to paste the following combined code: (Note: I used the code from this mod which only shows the second navbar to members. You can use the standard code from this mod if you wish to have guests view the second navbar as well. I gave that code example at the end of this post.)

NOTE
: The BLUE code below is from this mod and the RED code below is from the "Advanced Navbar Links" mod.

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">
$custom_droplinks_cat
$custom_singlelinks
</table>
</div>
<!-- / Navbar Links -->
STEP-3: Now install the Advanced Navbar Links mod.

NOTE
: Ignore the step in that mod's instructions where it asks you to paste: $custom_droplinks_cat and $custom_singlelinks. You have already pasted these two codes into your navbar template in Step-2 above.

Step-4: Save your navbar template.

Step-5: You will now have a new AdminCP menu item for the Advanced Navbar Links mod. You can freely add in standalone or drop menu links with and without icons. This mod allows you to freely control all link permissions.

END EFFECT: With these two great mods combined together we now have full control over a second navbar that we can edit from inside the AdminCP without having to edit the navbar template directly each time we wish to add or update links.

FINAL NOTES: The Advanced Navbar Links mod does have one small bug which is discussed in their thread. It is no big deal. I now use this combo mod code and have complete navbar control the way we should have from the start in VB. Also, these hacks work perfect with vBadvanced as your homepage.

IMPORTANT: If you want your second navbar to be viewable to guests use the following code instead:
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">
$custom_droplinks_cat
$custom_singlelinks
</table>
</div>
<!-- / Navbar Links -->
See my attached screenshot!

ENJOY!
Attached Images
File Type: jpg Second Navbar Plus Advanced Links.jpg (72.2 KB, 0 views)
Reply With Quote
  #77  
Old 09-25-2009, 10:50 PM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome. Make sure if you use this mod to click INSTALL.
Reply With Quote
  #78  
Old 09-26-2009, 08:47 AM
Brathamike Brathamike is offline
 
Join Date: Mar 2009
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yotsume View Post
Combining Two Mods Together For Perfection!

With this mod which easily makes a second navbar combined with the "Advanced Navbar Links" mod you can have the power to add in drop menus (with icons), full permission control, single links, etc.. all editable from inside the AdminCP without having to edit the navbar menu except to initially install both mods together.

If you look at my attached screen shot you will see I have two navbars. I also have a drop menu for my blogs in the top navbar which I have made where each sub-link has icons!

Instructions For Combining These Two Mods Together:

STEP-1: Install this mod into you navbar template as instructed.

STEP-2: You only need to paste the following combined code: (Note: I used the code from this mod which only shows the second navbar to members. You can use the standard code from this mod if you wish to have guests view the second navbar as well. I gave that code example at the end of this post.)

NOTE
: The BLUE code below is from this mod and the RED code below is from the "Advanced Navbar Links" mod.

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">
$custom_droplinks_cat
$custom_singlelinks
</table>
</div>
<!-- / Navbar Links -->
STEP-3: Now install the Advanced Navbar Links mod.

NOTE
: Ignore the step in that mod's instructions where it asks you to paste: $custom_droplinks_cat and $custom_singlelinks. You have already pasted these two codes into your navbar template in Step-2 above.

Step-4: Save your navbar template.

Step-5: You will now have a new AdminCP menu item for the Advanced Navbar Links mod. You can freely add in standalone or drop menu links with and without icons. This mod allows you to freely control all link permissions.

END EFFECT: With these two great mods combined together we now have full control over a second navbar that we can edit from inside the AdminCP without having to edit the navbar template directly each time we wish to add or update links.

FINAL NOTES: The Advanced Navbar Links mod does have one small bug which is discussed in their thread. It is no big deal. I now use this combo mod code and have complete navbar control the way we should have from the start in VB. Also, these hacks work perfect with vBadvanced as your homepage.

IMPORTANT: If you want your second navbar to be viewable to guests use the following code instead:
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">
$custom_droplinks_cat
$custom_singlelinks
</table>
</div>
<!-- / Navbar Links -->
See my attached screenshot!

ENJOY!
This isnt working for me i get this error

public_html/PracticeForum/forum/includes/adminfunctions_template.php(2359) : eval()'d code on line 6
Fatal error: Call to undefined method vb_activecache::flush()

when im trying to add the combine code to the navbar

your instructions are vague..you didnt mention that we are not supposed to uplaod the xml file so i upload that file and it wont upload im getting the same error

great concept but dosent seem to work with new vb is exatly what i need though


thanks warren great mod i installed your mod great work sir
Reply With Quote
  #79  
Old 09-26-2009, 08:55 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry did you mean my instructions are vague?
Reply With Quote
  #80  
Old 09-26-2009, 09:04 AM
Brathamike Brathamike is offline
 
Join Date: Mar 2009
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yotsume View Post
Sorry did you mean my instructions are vague?
yes sir i installed what you stated in your instructions and im getting database errors and im getting errors that i mentioned..not sure what to do on this case..
Reply With Quote
  #81  
Old 09-26-2009, 09:19 AM
Brathamike Brathamike is offline
 
Join Date: Mar 2009
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet i figured it out i had to turn off vboptimise seems like that mod had a issue looks like its all a go thanks for the add on mod great work you two keep up the good work will be looking for more of your mods
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04914 seconds
  • Memory Usage 2,368KB
  • Queries Executed 29 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete