vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   ModCP Link not Showing up (https://vborg.vbsupport.ru/showthread.php?t=67248)

Andreas 07-16-2004 05:49 PM

ModCP Link not Showing up
 
<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:
HTML Code:

<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).


All times are GMT. The time now is 03:07 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00933 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete