![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
Addon: Auto-populate Navbar menu (for John's Arcade V3)
![]() Developer Last Online: Jan 2018 ![]() ![]() ![]() This modification is in the archives.
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:
Add Before:
Step 3: Add the following at the bottom of includes/functions.php Find:
Add Before:
Step 4: Add the following to the template 'navbar' Find:
Add Before:
Find:
REPLACE WITH:
NOTE: in the two navbar edits there are conditionals that WILL CAUSE the menu to only appear to Registered users - remove these conditional wrappers to show the menu to all and sundry ... ![]() Should work ![]() 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:
Replace with:
UPDATE: IF YOU WANT ONLY N MOST POPULAR GAMES - check out this post UPDATE: if you wat IMGAES in your dropdown menu, check out this post Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Add-On Releases v3 Arcade Dropdown Menu in your Navbar with Newest Games Category | HMBeaty | Modification Graveyard | 8 | 30 Jul 2007 14:31 |
[HTL] Addon: Auto-populate NavBar popup menu [for Erwin's Flash Player] | Natch | vBulletin 3.0 Full Releases | 51 | 07 Jan 2005 02:53 |
Comments |
#2
|
||||
|
||||
Very nice, good work Natch!
No members have liked this post.
|
#4
|
||||
|
||||
Originally Posted by msimplay
It performs one query to the games table to get game title (for the link wording), game id (for the link itself), and game settings (to check the game is enabled from the Arcade CP) ...
__________________
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support! ... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar http://www.mobileforces.org/sig.jpg {DaniWeb: Learn HOW-TO mod_rewrite your vB board} No members have liked this post.
|
#5
|
|||
|
|||
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?? No members have liked this post.
|
#6
|
||||
|
||||
Okies - I get the bug
![]() I'll fix this up now and get back to u ...
__________________
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support! ... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar http://www.mobileforces.org/sig.jpg {DaniWeb: Learn HOW-TO mod_rewrite your vB board} No members have liked this post.
|
#7
|
||||
|
||||
UPDATED: above - check the new additions / modifications or simply remove the erroneous commenting as mentioned in post #5
__________________
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support! ... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar http://www.mobileforces.org/sig.jpg {DaniWeb: Learn HOW-TO mod_rewrite your vB board} No members have liked this post.
|
#8
|
|||
|
|||
thank you Natch.. will add right now.. good work.. also gonna use the flash player navbar auto-populate..
No members have liked this post.
|
#9
|
|||
|
|||
Thanks, works great thanks for quick reply
No members have liked this post.
|
#10
|
||||
|
||||
not a bad idea, but it creates a HUGE dropdown menu. Imagine having 100 games for the arcade... *grins*
![]()
__________________
Chamber of Secrets - The Ultimate Harry Potter Community! No members have liked this post.
|
#11
|
||||
|
||||
Good thing the drop-downs are persistent and you can scroll LOL ...
But what could be done to improve this is to evaluate which are the most popular 15 games, and only put them in the menu ... probably based on the number of times played, or the length of time played ... if it became an issue that could be implemented ...
__________________
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support! ... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar http://www.mobileforces.org/sig.jpg {DaniWeb: Learn HOW-TO mod_rewrite your vB board} No members have liked this post.
|
#12
|
||||
|
||||
Originally Posted by Natch
now, that I like. The sql query will no doubt get abit complicated, though since you'd need to do a join table and use 'count', order by, limit etc.
![]()
__________________
Chamber of Secrets - The Ultimate Harry Potter Community! No members have liked this post.
|
#13
|
||||
|
||||
Any chance to use it without DHTML on?
No members have liked this post.
|
#14
|
||||
|
||||
Originally Posted by gmarik
How would you want it - like in a Sidebar menu ? or a vBIndex custom box ?
Sure - could be done ![]()
__________________
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support! ... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar http://www.mobileforces.org/sig.jpg {DaniWeb: Learn HOW-TO mod_rewrite your vB board} No members have liked this post.
|
#15
|
|||
|
|||
THIS IS AWESOME LOOKING. But right now even with a dozen or so games the LIST is Huge!
I like the idea of HAVING an option like ONLY use top 5 games. or Whatever you want to make the limit. Personally I would like to use Top5 most visited Games. Someone might want to use Top 10. Perhaps a editable field in the Arcade Panel for this option. Ill use this hack soon if it ever gets those features. Ill keep in touch with this thread. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:23.