The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vbulletin & vbhome Dropdown Menu v1.0 Details »» | |||||||||||||||||||||||||
vBulletin & vBhome Dropdown Menu v1.0
Developed by: PixelFX vbulletin Version: v2.3.2 CREDITS: vbhome by TECK INTRO: My Goal was to make vb downdown navigation or pulldown menu system for my site, thatwould quickly redirect users or staff links or other sections of their sites. The goal was to make my site more fuctional, as far as I know it doesn't add any new queries to the server either Backup: always backup your database before adding any hacks to it, I don't want to be blamed for something not working. This hack works great on my site. FEATURES: - Adds New Dropdown Menu To site - Custom Java Script which auto Redirects any links once you click them. AKA NO GO BUTTON NEEDED!! - Makes Linking Site home, or forum cleaner - Added Link to Site Archive, Admin, and Mod menus. - Added Link to site Loggin Out - Very Easy Script to update, or add links to. - Created custom redirect java code for script. DOWNLOADS: Check button of post for dropmenu.txt file. FILES NEEDED: - vbhome Installed (for vbhome version) (can be done with out vbhome) INSTALL: The info below is for vbhome 4.2, other versions to follow. If your good at hacking, then use these instructions for adding this to your vbindex or vb forumhome. As the changes would be minor.. I'll add updates for that soon... HACK START: vbhome install below (other versions to follow as soon as I get some sleep) ============================= GOTO ADMIN CP: Templates: Modify, Add Template: Create new template "navigation" Note: you can call it anything you want, but for this example I've done the above. Code:
<script LANGUAGE="JavaScript"> <!-- function switchpage(select) { // JavaScript Redirect Created by PixelFX http://www.pixelfx.ca/index.php var index; for(index=0; index<select.options.length; index++) if(select.options[index].selected) { if(select.options[index].value!="") window.location.href=select.options[index].value; break; } } // --> </script> <table cellpadding="4" cellspacing="{tableinnerborderwidth}" {tableinnerextra} class="tbcontentsmall" summary="small content"> <tr class="clcategory"> <td>Navigation</td> </tr> <tr class="clfirst"> <td><div align="left"> <form method="get" name="Redirect"> <select name="url" onchange="switchpage(this)"> <option value="">Choose Site Link</option> <option value="http://www.url.com/index.php">Main Page</option> <option value="http://www.url.com/forum/index.php">Main Forum</option> <option value="http://www.url.com/archive">Site Archive</option> <option value=""> </option> <option value="http://www.url.com/forum/admin/">Site Admin</option> <option value="http://www.url.com/forum/mod/">Site Mod</option> <option value=""> </option> <option value="http://www.url.com/forum/member.php?s=$session[sessionhash]&action=logout">[logout]</option> </select></form></div> </td> </tr> </table> ==================================== FILE to EDIT: (vbhome index.php) works with vbulletin index.php as well. FIND: Code:
$templatesused = 'home,home_articlebit,home_articlelink,home_welcomeguest,home_welcomeuser,home_articlenocomment,'; Code:
$templatesused = 'home,home_articlebit,home_articlelink,home_welcomeguest,home_welcomeuser,home_articlenocomment,Navigation,'; Code:
require_once( './global.php' ); Code:
// +-------------------------------------------------------------- // | Navigation Panel by PixelFX // +-------------------------------------------------------------- $templatesused.= 'Navigation'; eval( '$Navigation = "' . gettemplate( 'Navigation' ) . '";' ); ----------------------------------------------------------------------------------- Note: this version is for vbhome / you could do this for forumhome if you wanted as well, depending on how you have your site setup, this should work with vbindex as well. NEXT: GOTO ADMIN CP: TEMPLATES, MODIFIY, Home Page Templates [expand] Goto: home, click edit FIND Code:
<td class="tdpanel"> <table cellpadding="4" cellspacing="{tableinnerborderwidth}" {tableinnerextra} class="tbcontentsmall" summary="small content"> <tr class="clcategory"> <td class="fnormal">$welcometext</td> Code:
<td class="tdpanel"> $navigation <table cellpadding="4" cellspacing="{tableinnerborderwidth}" {tableinnerextra} class="tbcontentsmall" summary="small content"> <tr class="clcategory"> <td class="fnormal">$welcometext</td> Save changes: NOTE: where ever you place the "$navigation" code will be were your drop down menu shows up, I've made it so it's in a self contained table/template in vbhome. You would need to tweak code to match your site if it's not default with vbhome or vbulletin. Enjoy PS: if you use this hack or like it, please CLICK INSTALL above. Please post any Comments and support in this thread/post only DEMO: http://www.pixelfx.ca/index.php Screenshots below. PixelFX Show Your Support
|
Comments |
#2
|
||||
|
||||
Very nice hack Pixel, *clicks install*
|
#3
|
||||
|
||||
Nice n simple, aint dat wut we all like
|
#4
|
||||
|
||||
I'll test it out this week.
Pixel, you're the greatest! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|