vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=270691

Disallow ALL moderation in archive subforum?
by James T Brock
21 Sep 2011 21:05

I have an archive forum where I do NOT want anyone, including other admins and global mods to have the ability to moderate. How do I do this?

This is the relevant code in editpost.php


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

What do I add there so that if the forumid is 20 no one will be able to edit/delete a post in that specific forum even if they're admins or global mods?

--------------- Added 22 Sep 2011 at 16:40 ---------------

No one knows how to do this? Seems like it should be relatively simple for a coder. I just need to know what php code would be the equivalent of "AND is not forumid=xx" and add that right before the canmoderateposts part. That way if all of those conditions are present AND it's NOT that forumid then they can moderate, otherwise they can't.

OR does anyone have an alternate suggestion for what to add as a conditional in the postbit template?

kh99 25 Sep 2011 15:27

You could do this:


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


I haven't looked at the code, I'm just going by what you posted.


The above would make it so no one could moderate it at all. If you want to be able to moderate it yourself, you could add this:


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


where you'd replace X with your userid.

James T Brock 03 Oct 2011 20:14

Hi, thanks for your reply! I don't know what I was thinking, that's not the right page at all.

The correct page is class_postbit.php and the relevant code is:


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

Also shouldn't that be AND instead of OR? And I can't figure out how to insert the "AND $threadinfo['forumid'] == 20" part, it does what I want but the code doesn't seem to be in the right syntax. Any help would be appreciated.



edit: I think I figured it out!


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

Can't get the userid thing to work though.


All times are GMT. The time now is 10:49.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.