Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Sep 2011, 21:05
James T Brock James T Brock is offline
 
Join Date: Sep 2004
Disallow ALL moderation in archive subforum?

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?
Reply With Quote
  #2  
Old 25 Sep 2011, 15:27
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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.
Reply With Quote
  #3  
Old 03 Oct 2011, 20:14
James T Brock James T Brock is offline
 
Join Date: Sep 2004
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.

Last edited by James T Brock; 03 Oct 2011 at 21:04.
Reply With Quote
Reply



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

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:36.

Layout Options | Width: Wide Color: