PDA

View Full Version : RPG hack beta 5: menu dropdown


twoseven
03-22-2005, 10:00 PM
here is my little addition for those of you who just want a little dropdown in the navbar. in the navbar template find

<td class="vbmenu_control"><a href="faq.php?$session[sessionurl]" accesskey="5">$vbphrase[faq]</a></td>

add after it

<td id="rpg" class="vbmenu_control"><a href="#rpg">RPG</a> <script type="text/javascript"> vbmenu_register("rpg"); </script></td>

then at the very bottom of the navbar template before

<!-- / NAVBAR POPUP MENUS -->
</if>

add this

<div class="vbmenu_popup" id="rpg_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">RPG</td></tr>
<tr><td class="vbmenu_option"><a href="headquarters.php">Headquarters</a></td></tr>
<tr><td class="vbmenu_option"><a href="rpgcp.php">Control Panel</a></td></tr>
<tr><td class="vbmenu_option"><a href="battle.php">Battle Arena</a></td></tr>
<tr><td class="vbmenu_option"><a href="itemshop.php">Item Shop</a></td></tr>
<tr><td class="vbmenu_option"><a href="lottery.php">Lottery</a></td></tr>
<tr><td class="vbmenu_option"><a href="heal.php">Healing Center</a></td></tr>
<tr><td class="vbmenu_option"><a href="clancp.php">Clan CP</a></td></tr>
<tr><td class="vbmenu_option"><a href="ushop.php?do=a&shortname=bank">Bank</a></td></tr>
<tr><td class="vbmenu_option"><a href="monsterarena.php">Monster Arena</a></td></tr>
</table>
</div>

thats it you should have a functioning dropdown with all the files the users should need(at this point anyhow) :banana:

Deaths
03-23-2005, 04:45 PM
This is a template mod, not a hack.

I believe the rules say you have to post mods like this in the hack's thread.

Polo
03-23-2005, 05:16 PM
yup.. i think this one should go in the RPG hack thread... :)

Deaths
03-23-2005, 05:41 PM
Or in their Premium forum.

Revan
03-23-2005, 05:43 PM
Oh crap... I was the one to tell him to post it here... I feel so stupid... :(

Polo
03-23-2005, 05:48 PM
oh that's right! the RPG hack is in the premium forums!! that would definetly be the best place :)

Deaths
03-23-2005, 05:59 PM
Heh, I just read the post aswell :D.

Deaths
03-23-2005, 05:59 PM
oh that's right! the RPG hack is in the premium forums!! that would definetly be the best place :)
Heh ;)

twoseven
03-23-2005, 06:08 PM
i just do what i'm told i know nothing

DDad
09-16-2005, 11:57 PM
Working with this template mod. can a dropdown be added to a dropdown?
For an example
open the dropdown, click on one of the names within that dropdown and another one opens

Baseball
football
soccer

Click on football and a list of teams opens as a dropdown?

HPIA
11-01-2006, 12:19 AM
Working with this template mod. can a dropdown be added to a dropdown?
For an example
open the dropdown, click on one of the names within that dropdown and another one opens

Baseball
football
soccer

Click on football and a list of teams opens as a dropdown?

Thats a cool idea. I know it can be done on websites XD