How To Add New Menu In Navbar

TsuQi

New Member
83739187fd9.jpg


i have a button " AWARD "
so, how to add to NAVBAR MENU .... ?

can give me a tutorial ?
 
TsuQi said:
:( im add with " award.gif " and link how to make it

the tutorial in this forum only add link and text


you have to put the image between this <a href="HERE URL THAT YOU WANT"><img src=></a>


if you have a doubt just pm
 
Here's how i did my torrent menu at The Blue Indigo System - Brought to you by The Blue Indigo System

My skin is also custom so my nav links are in the header template.

I located this code:
PHP:
	<td width="56" height="19" id="usercptools" class="nav_buttons"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/nav_menu.gif" width="56" height="19" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>
		</if>
and added this below it:
PHP:
	<!-- TORRENTS MENU -->
	<td width="56" height="19" id="torrents" class="nav_buttons"><a href="$show[nojs_link]#torrents"><img src="$stylevar[imgdir_misc]/nav_torrent.gif" width="87" height="19" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("torrents", 1); </script></td>
        <!-- / TORRENTS MENU -->
Then i located this code in the navbar template:
PHP:
<!-- / user cp tools menu -->
and placed this below it:
PHP:
	<!-- TORRENTS MENU -->
	<div class="vbmenu_popup" id="torrents_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		
        <tr><td class="thead">Search Torrents</td></tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
            <form action="torrents.php" method="post">
                <input type="hidden" name="do" value="process" />
                <input type="hidden" name="showposts" value="0" />
                <input type="text" class="bginput" name="query" size="20" />$gobutton<br />
            </form>
            </td>
        </tr>
		$template_hook[navbar_quick_links_menu_pos1]
        <tr><td class="thead">Display Torrents</td></tr>        
        <tr><td class="vbmenu_option"><a href="torrents.php?$session[sessionurl]" accesskey="4">Show all torrents</a></td></tr>
        <tr><td class="vbmenu_option"><a href="torrents.php?$session[sessionurl]&mode=orphan" accesskey="5">Show orphan torrents</a></td></tr>
        <tr><td class="vbmenu_option"><a href="torrents.php?$session[sessionurl]&mode=latest" accesskey="6">Show latest torrents</a></td></tr>
        <tr><td class="vbmenu_option"><a href="torrents.php?$session[sessionurl]&mode=top" accesskey="7">Show top torrents</a></td></tr>                                        
		$template_hook[navbar_quick_links_menu_pos3]
		
		</table>
	</div>
        <!-- / TORRENTS MENU -->

I placed notes (TORRENTS MENU) to keep my code organized so if i wanted to add anything to that menu i know exactly where to find it. It's not required but it's greatly recommended.

Make sure you make the appropriate edits to the code above, this is copied and pasted directly from my site so insure that you make the right edits or your menu will not work correctly.
 
Back
Top