Quote:
Originally Posted by Alfa1
So do I understand you correct that if I place this code in my drop down, then the link will cause editing of the viewed category?
Code:
<if condition="is_member_of($bbuserinfo,5,6,7)"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat&catid=$viewcatid">Edit Category</a></td></tr></if>
|
As I understood, you only wanted this to show if the user is currently in a category, so I think (without testing it) that you need
Code:
<if condition="is_member_of($bbuserinfo,5,6,7) and $viewcatid>0"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat&catid=$viewcatid">Edit Category</a></td></tr></if>