Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Give Moderators ModCP Link In Footer Details »
Give Moderators ModCP Link In Footer
Mod Version: 1.00, by Pakblogger (Designer) Pakblogger is offline
Developer Last Online: Sep 2019 I like it Show Printable Version Email this Page

vB Version: 4.2.3 Rating: (1 vote - 1.00 average) Installs: 3
Released: 11 Nov 2015 Last Update: Never Downloads: 0
Supported Template Edits Re-usable Code Translations  

I have many manual created moderators groups, just today one of my moderator asked me that modcp option is not showing for him,.

There is small template modification in footer template for the same.

Template Edit (1)

In Template "footer", find:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Replace With:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thats all,..

100% working checked on Vbulletin 4.2.3

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Moderators Functions Give Moderators ModCP Link In Footer LightScribe vBulletin 3.6 Template Modifications 21 21 Sep 2013 08:35
ModCP Link for Moderators Andreas vBulletin 3.0 Full Releases 7 24 Jul 2006 08:43

Comments
  #2  
Old 12 Nov 2015, 01:15
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Welcome to 1 extra query per page view for every non moderator/admin on your site!

Why do you think it was changed in the first place?
__________________
Looking for ImpEx?
Reply With Quote
  #3  
Old 12 Nov 2015, 05:13
Pakblogger Pakblogger is offline
 
Join Date: Oct 2009
Originally Posted by Zachery View Post
Welcome to 1 extra query per page view for every non moderator/admin on your site!

Why do you think it was changed in the first place?
Can you explain what you want to say
Reply With Quote
  #4  
Old 12 Nov 2015, 21:12
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
That your site would work a bit slower (every query slow down website a bit).

On the other hand, this is always a question do you need functionality and if you do, how much do you need it. Also, depending on how popular your site is, you maybe wouldn't even notice this.
Reply With Quote
  #5  
Old 12 Nov 2015, 22:02
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
vBulletin originally used the can_moderate() check in the show modcp link, but removed it because it caused an extra query on every page that was viewed for any user who was not a admin/mod

If you have 1000 hits per hour, and only 10 of those are from staff, you ran an extra 990 queries, for no real reason.
__________________
Looking for ImpEx?
Reply With Quote
  #6  
Old 13 Nov 2015, 17:01
Pakblogger Pakblogger is offline
 
Join Date: Oct 2009
Originally Posted by Alan_SP View Post
That your site would work a bit slower (every query slow down website a bit).

On the other hand, this is always a question do you need functionality and if you do, how much do you need it. Also, depending on how popular your site is, you maybe wouldn't even notice this.
Originally Posted by Zachery View Post
vBulletin originally used the can_moderate() check in the show modcp link, but removed it because it caused an extra query on every page that was viewed for any user who was not a admin/mod

If you have 1000 hits per hour, and only 10 of those are from staff, you ran an extra 990 queries, for no real reason.
100% correct
Reply With Quote
  #7  
Old 13 Nov 2015, 19:58
alcazarx's Avatar
alcazarx alcazarx is offline
 
Join Date: Jul 2014
We use a modified version of the call
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Group #7 is the standard Moderators group which contains all users that are declared as moderator.
Would this also generate extra queries?
Thanks.

Last edited by alcazarx; 30 Dec 2015 at 20:09.
Reply With Quote
  #8  
Old 14 Nov 2015, 16:10
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Basically, you only need conditionals before can_moderate if user is moderator (member of usergroup 7, or others if you use different usergroup settings). Other checks you don't need, as supermods and admins already can see that link.

And no, in that case, if check returns false, code within check is skipped, so no additional queries.
Reply With Quote
  #9  
Old 15 Nov 2015, 23:42
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Can't assume users who are in a specific usergroup are even moderators.
__________________
Looking for ImpEx?
Reply With Quote
  #10  
Old 16 Nov 2015, 11:34
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
While its true this will add an extra query, in reality these days its not that big a deal.

Unless you sql server is on the brink of collapse (in which case you have for more serious issues than this mod) then you really are never going to notice the difference.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 05:01.

Layout Options | Width: Wide Color: