PDA

View Full Version : Where is usercp menu created?


Haakon
05-02-2004, 07:30 PM
Hi, can anyone please explain where I should modify in templates and files to get an additional menu option in usercp?

Basically in here if you look at the html :

<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">

<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">Quick Links</td></tr>
<tr><td class="vbmenu_option"><a href="search.php?do=getnew">New Posts</a></td></tr>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?do=markread">Mark Forums Read</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?do=buddylist&amp;focus=1','buddy list','statusbar=no,menubar=no,toolbar=no,scrollba rs=yes,resizable=yes,width=250,height=300'); return false;">Open Buddy List</a></td></tr>

<tr><td class="thead"><a href="usercp.php?">User Control Panel</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?do=editsignature">Edit Signature</a></td></tr>

<tr><td class="vbmenu_option"><a href="profile.php?do=editavatar">Edit Avatar</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?do=editprofile">Edit Profile</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?do=editoptions">Edit Options</a></td></tr>

<tr><td class="thead">Miscellaneous</td></tr>
<tr><td class="vbmenu_option"><a href="private.php?">Private Messages</a></td></tr>
<tr><td class="vbmenu_option"><a href="subscription.php?">Subscribed Threads</a></td></tr>

<tr><td class="vbmenu_option"><a href="member.php?u=1">My Profile</a></td></tr>
<tr><td class="vbmenu_option"><a href="online.php?">Who's Online</a></td></tr>

</table>
</div>
<!-- / user cp tools menu -->


Thanks,
Haakon

Tony G
05-03-2004, 12:51 AM
This is the easiest way to do it. Just copy one of the existing dropdown codes. Just incase you didn't know what to copy, copy this:


<tr><td class="vbmenu_option"><a href="member.php?u=1">My Profile</a></td></tr>


And place it below all of them, or wherever you want your new dropdown option to appear on the list.

Now, first thing to do is change the a href URL (where member.php?u=1 is), change it to wherever you want to point it. If it's to another vB page, keep it in the same style it has here. (For example, just leaving the name of the file, nothing else, like it does with member.php in this example)

Next, change what you want it called. So change "My Profile" to whatever you want the link to be named.

Save. That should be it.

Haakon
05-03-2004, 04:26 AM
++++, I managed to look at the wrong section in the html source. You are right, this is the drop down menu code, which wasn`t what I was after. I managed to locate the code now though so I should be able to build a new link.

Thanks for help!
Haakon