vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   ModCP Link for Moderators (https://vborg.vbsupport.ru/showthread.php?t=67340)

Andreas 07-18-2004 10:00 PM

ModCP Link for Moderators
 
ModCP Link for Moderators

Description
vBulletin does not show the ModCP link in the footer of every page to moderators since Version 3.0.1, as this caused an extra query and the developers decided it was not worh it.
I think the link is useful - not only for Supermods and Admins.

So this hack adds some code so the link will also be there for Moderators, without adding too much overhead (at least I hope/think so).

Files to modify: 2
Difficulty: Easy

Version 0.2: Fixed a small typo

Boofo 07-19-2004 04:56 PM

Nice. Will use when I upgrade and click install now.

Erwin 07-20-2004 12:01 AM

You could just add template conditionals to the footer according to usergroupid - no extra queries needed.

Andreas 07-20-2004 12:03 AM

Well, moderators can have just any usergroupid ...

Oblivion Knight 07-21-2004 06:44 PM

I couldn't find the following line in 3.0.3:
Code:

$modcache$modcache["$userid"]["$do"] = 0;
Either this is a typo, or it was changed..


The nearest I can find is:
Code:

$modcache["$userid"]["$do"] = 0;

Andreas 07-21-2004 06:47 PM

Yep, that was a typo ;)

Oblivion Knight 07-21-2004 06:56 PM

Heh, thanks Kirby.. Installed with seemingly no problems.

I'll keep my eyes on the server load and such.

Mysticales 07-24-2006 07:43 AM

Thank you, installed on my large 3.0x community. =) My "Mods" are more like super mods.. since they could ban and so.. but I hated to give AdminCP access too like Ive been.. You gave me the work around option, thanks. =)


All times are GMT. The time now is 10:03 AM.

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.01569 seconds
  • Memory Usage 1,717KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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