MyBB Community Forums

Full Version: Dropdown menu code, is this the one?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok I've been searching arround the forums, and I found this piece of code:
<a href="usercp.php" id="usercp" onclick="return openMenu(this)" class="popup_button">User CP<img src="images/popup_down.gif" border="0" /></a>

<!-- user cp tools menu -->
<div class="menupop" id="usercp-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead"><b>Quick Links</b></td></tr>
<tr><td class="menu_row" ><a href="search.php?action=getnew"><font color="#026CB1">View New Posts</a></td></tr></font>
<tr><td class="menu_row"><a href="misc.php?action=markread"><font color="#026CB1">Mark All Forums Read</a></td></tr></font>
<tr><td class="menu_row"><a href="misc.php?action=buddypopup"><font color="#026CB1">Buddy/Ignore List</a></td></tr></font>

<tr><td class="thead"><font color="#ffffff"><a href="usercp.php"><b>User CP</b></a></font></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=editsig"><font color="#026CB1">Change Signature</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=avatar"><font color="#026CB1">Change Avatar</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=profile"><font color="#026CB1">Edit Profile</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=options"><font color="#026CB1">Edit Options</a></td></tr></font>

<tr><td class="thead"><b>Miscellaneous</b></td></tr>
<tr><td class="menu_row"> <a href="private.php"><font color="#026CB1">Private Messages</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=subscriptions"><font color="#026CB1">Subscribed

Threads</a></td></tr></font>
<tr><td class="menu_row"><a href="member.php?action=profile&amp;uid={$mybb->user['uid']}"><font color="#026CB1">View Profile</a></td></tr></font>
</table>
</div>

<!-- / user cp tools menu -->
<br />

Is it the correct code to add for making a dropdown menu?
Regards.
I'm not sure but if it works - it works.

Make a backup if you're worried about losing your coding.