2016-01-05, 04:29 PM
I'm currently trying to add another table row to the the ModCP user nav template.
This is my modcp_nav_users template currently.
I created another template named modcp_nav_unread with the contents
I then edited to my modcp_nav_users template to include the modcp_nav_unread template by doing the below however it doesn't add the new template to modcp
This is my modcp_nav_users template currently.
<tr>
<td class="tcat tcat_menu tcat_collapse{$collapsedimg['modcpusers']}">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['modcpusers']}.png" id="modcpusers_img" class="expander" alt="[-]" title="[-]" /></div>
<div><span class="smalltext"><strong>{$lang->mcp_nav_users}</strong></span></div>
</td>
</tr>
<tbody style="{$collapsed['modcpusers_e']}" id="modcpusers_e">
{$nav_editprofile}
{$nav_banning}
{$nav_warninglogs}
{$nav_ipsearch}
</tbody>
I created another template named modcp_nav_unread with the contents
<tr><td class="trow1 smalltext"><a href="modcp.php?action=request" class="modcp_nav_item modcp_nav_ipsearch">Unread</a></td></tr>
I then edited to my modcp_nav_users template to include the modcp_nav_unread template by doing the below however it doesn't add the new template to modcp
<tr>
<td class="tcat tcat_menu tcat_collapse{$collapsedimg['modcpusers']}">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['modcpusers']}.png" id="modcpusers_img" class="expander" alt="[-]" title="[-]" /></div>
<div><span class="smalltext"><strong>{$lang->mcp_nav_users}</strong></span></div>
</td>
</tr>
<tbody style="{$collapsed['modcpusers_e']}" id="modcpusers_e">
{$nav_editprofile}
{$nav_banning}
{$nav_warninglogs}
{$nav_ipsearch}
{$nav_unread}
</tbody>