Quote:
Originally Posted by Alfa1
I am integrating the LDM navbar with the standard vb navbar, by placing the links in quick links and in Moderator tools. That goes well so far. But I wonder about the edit category link.
The link normally is local_links.php?action=editcat&catid=X where X is the category ID.
This doesn't work because it needs a conditional to find the ID of the category that one is in.:
Code:
<if condition="is_member_of($bbuserinfo,5,6,7)"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat">Edit Category</a></td></tr></if>
What code can I use to fetch the correct category/catid?
If you like I will post the code for this navbar integration, so that other members can enjoy this as well.
|
If the user is viewing a category, the variable $viewcatid is set to the category id and is positive. Alternatively, you can look at $vbulletin->GPC['catid']