Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vbulletin & vbhome Dropdown Menu v1.0 Details »»
vbulletin & vbhome Dropdown Menu v1.0
Version: 1.00, by PixelFx PixelFx is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 10-05-2003 Last Update: Never Installs: 4
Is in Beta Stage  
No support by the author.

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="">&nbsp;</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="">&nbsp;</option>
<option value="http://www.url.com/forum/member.php?s=$session[sessionhash]&amp;action=logout">[logout]</option>
</select></form></div>

</td>
</tr>
</table>
Save Changes...

====================================

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,';
CHANGE TO:

Code:
$templatesused = 

'home,home_articlebit,home_articlelink,home_welcomeguest,home_welcomeuser,home_articlenocomment,Navigation,';
NEXT FIND:

Code:
require_once( './global.php' );
UNDER IT ADD:

Code:
// +--------------------------------------------------------------
// | Navigation Panel by PixelFX
// +--------------------------------------------------------------
$templatesused.= 'Navigation';
eval( '$Navigation = "' . gettemplate( 'Navigation' ) . '";' );
SAVE FILE and upload..

-----------------------------------------------------------------------------------

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>
REPLACE IT WITH:

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-06-2003, 11:53 AM
jp2's Avatar
jp2 jp2 is offline
 
Join Date: Sep 2003
Location: UK
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack Pixel, *clicks install*
Reply With Quote
  #3  
Old 10-07-2003, 05:08 AM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice n simple, aint dat wut we all like
Reply With Quote
  #4  
Old 10-07-2003, 09:38 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll test it out this week.
Pixel, you're the greatest!
Reply With Quote
Reply


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 02:07 PM.


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.08390 seconds
  • Memory Usage 2,240KB
  • Queries Executed 17 (?)
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
  • (7)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete