![]() |
Addon: Auto-populate Navbar menu (for John's Arcade V3)
Addon: Auto-populate Navbar menu (for John's Arcade V3)
What this hack does: It replaces the link in your navbar for the Arcade with a Dropdown menu of all the games that are active in your Arcade. Motivation: Extrapolated from my other auto-populating menu for Erwin's vB3 hack ... Files to edit: 2 global.php includes/functions.php Template to edit: 1 navbar New phrases to insert: 1 Queries added: 1 Step 1: Add the following in the Phrase Manager under GLOBAL Alternate: you can import the single phrase using the included XML file ************************************************** ****** Name: arcade_addon_title Phrase: The Arcade! ************************************************** ****** Step 2: Add the following at the bottom of global.php Find: Code:
/*======================================================================*\ PHP Code:
Find: Code:
/*======================================================================*\ PHP Code:
Find: Code:
<!-- / NAVBAR POPUP MENUS --> Code:
<!-- Addon to John's vB3 ArcadeV3 hack - created by Natch --> Code:
<td class="vbmenu_control"><a href="arcade.php?$session[sessionurl]">Arcade</a></td> Code:
<!-- Addon to John's vB3 ArcadeV3 hack - created by Natch --> Should work :) Enjoy, and props to John for his great Hack ... U can see a demo @ http://www.mobileforces.org/ << running vBulletin 3.0.0 RC4 and vBIndex RC3, on PHP v4.3.4, MySQL 4.0.15 Screenshots attached: one with all default games enabled, and one with asteroids disabled UPDATE: fixed up my comments - damn that copy and paste ... those that downloaded the attachment b4 5AM +11GMT, re-get the attachment, or make the following alterations to the above script: Find twice: Code:
// remove this line and the endif if you wish all users and guests to view the menu Code:
<!-- remove this line and the endif if you wish all users and guests to view the menu --> UPDATE: if you wat IMGAES in your dropdown menu, check out this post |
Very nice, good work Natch!
|
what querie ?
|
Quote:
|
Great work m8
but when i click on arcade at top of list and it takes me to arcade page i see this above and below the nav bar // remove this line and the endif if you wish all users and guests to view the menu what have i done wrong?? |
Okies - I get the bug :)
I'll fix this up now and get back to u ... |
UPDATED: above - check the new additions / modifications or simply remove the erroneous commenting as mentioned in post #5
|
thank you Natch.. will add right now.. good work.. also gonna use the flash player navbar auto-populate..
|
Thanks, works great thanks for quick reply
|
not a bad idea, but it creates a HUGE dropdown menu. Imagine having 100 games for the arcade... *grins* :D
|
All times are GMT. The time now is 01:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|