vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Moderators Functions - Give Moderators ModCP Link In Footer (https://vborg.vbsupport.ru/showthread.php?t=164723)

Spank 12-09-2007 10:14 PM

Apparently it's not on vB by default because it adds a query for ever user.

Marco van Herwaarden 12-10-2007 09:03 AM

As Spank already replied, this is left out of the default vBulletin because it adds queries to every single page load. Adding this can have a negative impact on the performance of your board.

LightScribe 12-11-2007 09:45 AM

Quote:

Originally Posted by DssCrazy (Post 1397878)
Does this mod give a regular mod the same cp as a super mod?

You choose the permissions that show up in the ModCP using the Moderator Manager section of your ACP. You can grant ability to ban, edit signatures, prune, move ect ect.

Quote:

Originally Posted by Marco van Herwaarden (Post 1398442)
As Spank already replied, this is left out of the default vBulletin because it adds queries to every single page load. Adding this can have a negative impact on the performance of your board.

But how much more strenuous is the if condition="can_moderate()" query than the if condition="$show['modcplink']", since this replaces the latter with the former?

Brandon Sheley 12-11-2007 01:15 PM

I have all my mods set as super mods anyways.
If I had a board setup that had mods that could only mod selected forums, I don't know if I'd want them to have access to the modcp.

just my 2 cents :)

Triky 12-11-2007 04:17 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1398442)
As Spank already replied, this is left out of the default vBulletin because it adds queries to every single page load. Adding this can have a negative impact on the performance of your board.

Oh. http://www.web-city.it/forum/images/smilies/fermosi.gif
I didn't know this. Thank you, Marco.

ssslippy 12-11-2007 06:43 PM

Quote:

Originally Posted by Loco.M (Post 1399165)
I have all my mods set as super mods anyways.
If I had a board setup that had mods that could only mod selected forums, I don't know if I'd want them to have access to the modcp.

just my 2 cents :)

They already do, it just doesnt show a link.

LightScribe 12-23-2007 10:41 PM

They can access it by entering the URL into their browsers manually.

Alfa1 12-24-2007 03:37 PM

Which is very unhandy. But they can go from a member profile to the modcp, which is what my mods did until I added a Staff tools dropdown in navbar with a link to modcp.
It may add queries, but why cause more work for your staff? The adminCP link in the footer ads just as many queries and is used by less people (if you have less admins than moderators)

Marco van Herwaarden 12-25-2007 08:01 AM

The AdminCP link does not add any queries. ;)

AdminCP access is based on a usergroup setting, and already loaded into memory.

ModCP access for Super Moderators, see above.

ModCP access for regular moderators is however not a usergroup function and need to be read from the database on each pageload.

RCK 09-20-2013 05:41 PM

What about this template modification ?
I don't think it will add a query :)
Code:

<if condition="($show['modcplink']) OR (in_array($bbuserinfo[usergroupid], array(7)))">


All times are GMT. The time now is 09:32 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.01939 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete