MyBB Community Forums

Full Version: Extra content boxes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How could i add extra content boxes to the users profile side box like below
usercp_nav_misc. is there a easy way to acheive this
Anyone got a idea how to acheive this
Add this to the template.

<tr><td class="trow1 smalltext"><a href="http://myforum.com/something.php">Link Title</a></td></tr>
Is there a way to a entire new catagory below the misc section
<td class="tcat">
		<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['usercpmisc']}.gif" id="usercpmisc_img" class="expander" alt="[-]" title="[-]" /></div>
		<div><span class="smalltext"><strong>Others</strong></span></div>
	</td>
<tbody style="{$collapsed['usercpmisc_e']}" id="Others">
<tr><td class="trow1 smalltext"><a href="http://myforum.com/something.php">Link Title</a></td></tr>
</tbody>

Replace ''Others'' with whatever you like.
(2011-03-13, 02:30 PM)Solidus Wrote: [ -> ]
<td class="tcat">
		<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['usercpmisc']}.gif" id="usercpmisc_img" class="expander" alt="[-]" title="[-]" /></div>
		<div><span class="smalltext"><strong>Others</strong></span></div>
	</td>
<tbody style="{$collapsed['usercpmisc_e']}" id="Others">
<tr><td class="trow1 smalltext"><a href="http://myforum.com/something.php">Link Title</a></td></tr>
</tbody>

Replace ''Others'' with whatever you like.

I tried that code and when i try to collapse the Extra Links bit it collapses the Misc section and keeps the Extra Links one open
I'm not sure how to fix that right now, I'll look into it.
is there any advances on how to acheive this
Can anyone else help
Go to: ACP > Templates > User Control Panel Templates > usercp_nav_misc > and at the bottom of all code, add the following;
<tr>
	<td class="tcat">
		<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['usercpNEW']}.gif" id="usercpNEW_img" class="expander" alt="[-]" title="[-]" /></div>
		<div><span class="smalltext"><strong>NAME</strong></span></div>
	</td>
</tr>
<tbody style="{$collapsed['usercpNEW_e']}" id="usercpNEW_e">
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=usergroups" class="usercp_nav_item usercp_nav_usergroups">LINK</a></td></tr>
</tbody>

and from there, replace NEW text with whatever you like to use. It should be same in every where, where it is written NEW with capital letters.
That's doesn't work Yaldaram. The new box won't be collapsible.
Pages: 1 2