MyBB Community Forums

Full Version: How to display UserCP menu?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello everyone I want to display usercp menus I'm I started using mybb template newly and I'm having challenges in displaying the usercp menu. Thank you in advance
Can you clarify what you mean by showing the menu? Where do you want it to show? In the header?
I want to display the menu options in the usercp.php
They will be there by default. You should be able to see the menu on these forums: https://community.mybb.com/usercp.php

Are you saying your forum doesn’t have this menu? Or that you want to display these options somewhere else?
Yes all of them
Right, so where is it you want to display them? In the header?
You should please understand with me I don't know how or even where to display them just please help me
(2022-05-01, 07:05 PM)preshboy Wrote: [ -> ]You should please understand with me I don't know how or even where to display them just please help me

It's hard to help or understand when it's not very clear what it is you're trying to do. Your request doesn't make much sense currently. I'm not sure what we can suggest if you don't even know where you want to display them.

The User CP menu will display in the sidebar by default. If they're not there, then you must have a custom theme that's broken. If you want to show them somewhere else, you'll need to explain where.
I need something like the code below but this isn't full
<template name="usercp_nav_misc" version="1814"><![CDATA[<tbody>
<tr>
	<td class="tcat tcat_menu tcat_collapse{$collapsedimg['usercpmisc']}">
		<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['usercpmisc']}.png" id="usercpmisc_img" class="expander" alt="[-]" title="[-]" /></div>
		<div><span class="smalltext"><strong>{$lang->ucp_nav_misc}</strong></span></div>
	</td>
</tr>
</tbody>
<tbody style="{$collapsed['usercpmisc_e']}" id="usercpmisc_e">{mysubscriptions_nav}
	<!--Invitation-->
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=usergroups" class="usercp_nav_item usercp_nav_usergroups">{$lang->ucp_nav_usergroups}</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=editlists" class="usercp_nav_item usercp_nav_editlists">{$lang->ucp_nav_editlists}</a></td></tr>
	{$attachmentop}
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=drafts" class="usercp_nav_item usercp_nav_drafts">{$draftcount}</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=subscriptions" class="usercp_nav_item usercp_nav_subscriptions">{$lang->ucp_nav_subscribed_threads}</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=forumsubscriptions" class="usercp_nav_item usercp_nav_fsubscriptions">{$lang->ucp_nav_forum_subscriptions}</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="{$profile_link}" class="usercp_nav_item usercp_nav_viewprofile">{$lang->ucp_nav_view_profile}</a></td></tr>
</tbody>]]></template>
	</templates> 
why are you editing the xml of a theme ? and why do you need all of this things , in that place you are getting all of this things by default. If youwant to edit or desgine a theme then there is option named difference which shows what you have changed from the original template.
Pages: 1 2