Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Give Moderators ModCP Link In Footer Details »»
Give Moderators ModCP Link In Footer
Version: 1.00, by LightScribe LightScribe is offline
Developer Last Online: May 2014 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.6.8 Rating:
Released: 12-08-2007 Last Update: Never Installs: 14
Template Edits
Re-useable Code Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-09-2007, 10:14 PM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apparently it's not on vB by default because it adds a query for ever user.
Reply With Quote
  #13  
Old 12-10-2007, 09:03 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 12-11-2007, 09:45 AM
LightScribe's Avatar
LightScribe LightScribe is offline
 
Join Date: Jun 2006
Location: Australia
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DssCrazy View Post
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 View Post
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?
Reply With Quote
  #15  
Old 12-11-2007, 01:15 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 12-11-2007, 04:17 PM
Triky's Avatar
Triky Triky is offline
 
Join Date: Mar 2007
Location: [Italy]
Posts: 728
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
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.
I didn't know this. Thank you, Marco.
Reply With Quote
  #17  
Old 12-11-2007, 06:43 PM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loco.M View Post
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.
Reply With Quote
  #18  
Old 12-23-2007, 10:41 PM
LightScribe's Avatar
LightScribe LightScribe is offline
 
Join Date: Jun 2006
Location: Australia
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They can access it by entering the URL into their browsers manually.
Reply With Quote
  #19  
Old 12-24-2007, 03:37 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #20  
Old 12-25-2007, 08:01 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #21  
Old 09-20-2013, 06:41 PM
RCK's Avatar
RCK RCK is offline
 
Join Date: Jan 2002
Location: Paris / France
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)))">
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09673 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete