The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Addon: Auto-populate Navbar menu (for John's Arcade V3) Details »» | |||||||||||||||||||||||||||
Addon: Auto-populate Navbar menu (for John's Arcade V3)
Developer Last Online: Apr 2022
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:
/*======================================================================*\ || #################################################################### || # Downloaded: PHP Code:
Find: Code:
/*======================================================================*\ || #################################################################### || # Downloaded: PHP Code:
Find: Code:
<!-- / NAVBAR POPUP MENUS --> Code:
<!-- Addon to John's vB3 ArcadeV3 hack - created by Natch --> <if condition="$show['member']"> <!-- remove this line and the endif if you wish all users and guests to view the menu --> <!-- flash arcade auto-menu --> <div class="vbmenu_popup" id="flasharcade_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead"><a href="$vboptions[bburl]/arcade.php?$session[sessionurl]" title="$vbphrase[arcade_addon_title]">$vbphrase[arcade_addon_title]</a></td></tr> $nav_arcade </table> </div> <!-- / flash arcade auto-menu --> </if> <!-- 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 --> <if condition="$show['member']"> <!-- remove this line and the endif if you wish all users and guests to view the menu --> <td id="flasharcade" class="vbmenu_control"><a href="#flasharcade">$vbphrase[arcade_addon_title]</a> <script type="text/javascript"> vbmenu_register("flasharcade"); </script></td> </if> <!-- 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 Show Your Support
|
Comments |
#32
|
|||
|
|||
Top worked for me.
|
#33
|
||||
|
||||
Quote:
I had it in the 'Additional Navbar' and it really really didn't like that. Nice hack. |
#34
|
|||
|
|||
I just upgraded to vbadvanced and ran into the same problem Kall.
So guessing that's what is causing it. What did you do to fix your problem? I use ushop and the arcade so would prefer to have both autopopulating. |
#35
|
|||
|
|||
Yep, the problem is with vbadvanced. Had vbindex and it worked fine, now at my home page www.mmogcommunities.com neither will populate, but at the forum index at www.mmogcommunities.com/forums they populate fine. I'll post to Trigga and see if he can troubleshoot the issue.
|
#36
|
||||
|
||||
Quote:
|
#37
|
||||
|
||||
Quote:
Seems the Forums Jump in navbar populates fine, as does the top part of the Ushop, but not the Actions, nor this menu. If I come up with a solution, I'll let you know. |
#38
|
||||
|
||||
The only reason why this would not populate would be if the functions.php is not being called, if the populate function has been removed from functions.php, or if the variable has been stolen by another bit of code ...
|
#39
|
|||
|
|||
Kewl Brian at http://vbadvanced.com pointed to the fix.
If you have VBadvanced cmps, and this hack isn't working, you'll need to open your vba_cmps_include_bottom.php file And look for : Code:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox; Code:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox, $nav_arcade; This info came from this thread - http://www.vbadvanced.com/forum/showthread.php?t=1182 |
#40
|
|||
|
|||
Whenever I have an unregistered user click on a game in the dropdown they get the error: Could not find phrase 'quickreg_prompt'.
I have quickreg_prompt defined in the phrase manager. EDIT: Nevermind, I found the reason :P I needed to move it to Front End error messages. |
#41
|
|||
|
|||
*Installs*
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|