Hi Distance! I wanted to move the open and closed buttons out of the modcp so, I came up with this code. I am not sure if it is right or the best way to code it. I am still learning alot but would like input on this.
PHP Code:
<!-- added menu items post reports -->
<tr><td class="thead">Post Reporting</td></tr>
<tr><td class="vbmenu_option"><a href="postreports.php">Your post reports</a></td></tr>
<tr>
<if condition="is_member_of($bbuserinfo,5,6,7)">
<td class="vbmenu_option"><a href="modbook.php">Moderator handbook</a></td></tr>
<tr>
<if condition="$vbulletin->openreports"><td class="vbmenu_option"><a href="$modcpdir/postreports.php?do=list">$vbphrase[postreports_postreports]</a>: $vbulletin->openreports</if></td>
</tr>
<tr>
<if condition="$postreport[status]=pending"><td class="vbmenu_option"><a href="$modcpdir/postreports.php?do=list">$vbphrase[postreports_status_pending]</a>: $vbulletin->openreports</td></tr>
<tr>
<if condition="$postreport[status]=closed"><td class="vbmenu_option"><a href="$modcpdir/postreports.php?do=closed">$vbphrase[postreports_closedreports]</a> $vbulletin->closedreports</td></tr></if></if></if>
<!-- / end added menu items -->
That will give you this
Did I do this right? Or is there a better way how to write it?
Thanks in advance for your help.
Richard