Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Addon: Auto-populate Navbar menu (for John's Arcade V3) Details »
Addon: Auto-populate Navbar menu (for John's Arcade V3)
Mod Version: 1.00, by Natch (Member) Natch is offline
Developer Last Online: Jan 2018 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 15
Released: 07 Feb 2004 Last Update: 07 Feb 2004 Downloads: 5
Not Supported  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add Before:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 3: Add the following at the bottom of includes/functions.php

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add Before:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 4: Add the following to the template 'navbar'

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add Before:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Click image for larger version

Name:	screenshot-all-games-enabled.jpg
Views:	1113
Size:	10.2 KB
ID:	16589   Click image for larger version

Name:	screenshot-asteroids-disabled.jpg
Views:	675
Size:	10.4 KB
ID:	16590  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
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  
Old 07 Feb 2004, 15:13
John's Avatar
John John is offline
 
Join Date: Mar 2002
Real name: John Warwick
Very nice, good work Natch!
Reply With Quote
  #3  
Old 07 Feb 2004, 15:59
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
what querie ?
Reply With Quote
  #4  
Old 07 Feb 2004, 16:20
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Originally Posted by msimplay
what querie ?
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}
Reply With Quote
  #5  
Old 07 Feb 2004, 16:25
Blackbeard Blackbeard is offline
 
Join Date: Mar 2003
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??
Reply With Quote
  #6  
Old 07 Feb 2004, 16:55
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
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}
Reply With Quote
  #7  
Old 07 Feb 2004, 17:03
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
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}
Reply With Quote
  #8  
Old 07 Feb 2004, 17:33
13th_Disciple 13th_Disciple is offline
 
Join Date: Jan 2003
thank you Natch.. will add right now.. good work.. also gonna use the flash player navbar auto-populate..
Reply With Quote
  #9  
Old 07 Feb 2004, 17:35
Blackbeard Blackbeard is offline
 
Join Date: Mar 2003
Thanks, works great thanks for quick reply
Reply With Quote
  #10  
Old 07 Feb 2004, 17:36
M1th's Avatar
M1th M1th is offline
 
Join Date: Jul 2002
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!
Reply With Quote
  #11  
Old 07 Feb 2004, 17:39
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
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}
Reply With Quote
  #12  
Old 07 Feb 2004, 17:48
M1th's Avatar
M1th M1th is offline
 
Join Date: Jul 2002
Originally Posted by Natch
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 ...
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!
Reply With Quote
  #13  
Old 07 Feb 2004, 20:27
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Real name: Marco
Any chance to use it without DHTML on?
Reply With Quote
  #14  
Old 08 Feb 2004, 04:25
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Originally Posted by gmarik
Any chance to use it without DHTML on?
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}
Reply With Quote
  #15  
Old 08 Feb 2004, 06:46
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 03:23.

Layout Options | Width: Wide Color: