Log in

View Full Version : ModCP Link not Showing up


Andreas
07-16-2004, 05:49 PM
<a href="http://www.vbulletin.com/forum/bugs.php?do=view&bugid=2994" target="_blank">http://www.vbulletin.com/forum/bugs....iew&bugid=2994</a>

Jelsoft states that it is working as designed.
OK, that's true and I understand as to why they did that way (I discovered the problem in can_moderate() several month ago).

But I fear my moderators will really miss this link.

So what can be done to show this link only to moderators, wthout having an additional query?

My idea was to modify fetch_userinfo() to join moderator and check if permissions is not null, to see if a user is moderator somewhere.
I think this does not add much overhead.

Would this be a good idea?

AN-net
07-16-2004, 06:00 PM
would rephrasing the if statement to:

<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">blahblah link</if>

Andreas
07-16-2004, 06:07 PM
Well, this does also work ... but I've got moderators in usergroups other then those listed ;)
Furthermore, this would have to be done in every style (that customizes the footer).