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)

LightScribe 12-08-2007 10:00 PM

Give Moderators ModCP Link In Footer
 
I just spoke to one of my moderators today and found out that by default in vBulletin the ModCP link doesn't show up in the footer for them. It shows up next to the AdminCP link for Administrators but if the user isn't an administrator they cannot see it.

This is just a very quick template modification for you to use if you want it to be visible for all moderators (and administrators).

Template Edit (1)

In Template "footer", find:
PHP Code:

<if condition="$show['modcplink']"

Replace With:
PHP Code:

<if condition="can_moderate()"

I don't know why vBulletin hides it from them by default, and I haven't seen an option in the ACP to enable or disable it.

I hope this little modification helps at least one person.

Screenshot
Attachment 73098

LightScribe 12-09-2007 02:53 AM

Reserved, although this isn't the sort of mod likely to need updates.

yahoooh 12-09-2007 04:04 AM

is this not default in vbulletin?

LightScribe 12-09-2007 04:32 AM

Nope. Try logging in as a moderator account and see for yourself.

ssslippy 12-09-2007 06:53 AM

Normally only supermods and higher can the mod cp link. Dont ask me why.

Millenium IT 12-09-2007 06:55 AM

This belongs in the vBulletin 3.6 Template Modifications catagory

mokonzi 12-09-2007 11:34 AM

Nice work LightScribe. It's been driving me up the wall this problem, glad it was such a simple solution. Let's hope vB includes an option in 3.7

DssCrazy 12-09-2007 01:13 PM

Does this mod give a regular mod the same cp as a super mod?

DssCrazy 12-09-2007 01:18 PM

I hope this get fixed by vb, because, this should be in the vb forums by defalt, if a admin gives a regular member mod rights then thay would be a staff, and thay would not be a staff if thay were not trusted! so why is it hided?

johnrizz 12-09-2007 07:29 PM

Quote:

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

No...

How I got around this in the first place was to go into Mod Usergroup and check Can Moderate All Forums (is Super Moderator) at Administrator Permissions this would show the MOD link at bottom, then go into Forums & Moderators >>Show All Moderators>> then pick & choose what power you like them to have...

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

ozzy47 09-20-2013 07:31 PM

Reviving a six year old mod lol

RCK 09-21-2013 06:35 AM

vB 3.8.8 revive me with all vB 3.x modification ;)


All times are GMT. The time now is 09:08 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.02200 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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