The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Easy Navbar Links Details »» | |||||||||||||||||||||||||||||
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 --> 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 --> 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> 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> Code:
<td class="vbmenu_control"><a href="http://url.com" target="_blank">Link Title Goes Here</a></td> 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> 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
Screenshots
Supporters / CoAuthors Show Your Support
|
Благодарность от: | ||
Perrier Sophie |
Comments |
#72
|
||||
|
||||
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. |
#73
|
||||
|
||||
This is awesome! Installed! and Works perfect with the mod Advanced Navbar Links!
THANKS! |
#74
|
||||
|
||||
You're welcome.
|
#75
|
||||
|
||||
Quote:
regards yossie3660 |
#76
|
||||
|
||||
Quote:
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 --> 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 --> ENJOY! |
#77
|
||||
|
||||
You're welcome. Make sure if you use this mod to click INSTALL.
|
#78
|
|||
|
|||
Quote:
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 |
#79
|
||||
|
||||
Sorry did you mean my instructions are vague?
|
#80
|
|||
|
|||
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..
|
#81
|
|||
|
|||
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
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|