The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 Code:
if (!$postinfo['postid'] OR $postinfo['isdeleted'] OR (!$postinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts'))) --------------- Added [DATE]1316706032[/DATE] at [TIME]1316706032[/TIME] --------------- 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? |
#2
|
|||
|
|||
You could do this:
Code:
if ( !$postinfo['postid'] OR $postinfo['isdeleted'] OR (!$postinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts')) OR $threadinfo['forumid'] == 20 ) 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: Code:
if ( !$postinfo['postid'] OR $postinfo['isdeleted'] OR (!$postinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts')) OR ($threadinfo['forumid'] == 20 && $vbulletin->userinfo['userid'] != X) ) where you'd replace X with your userid. |
#3
|
|||
|
|||
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: Code:
// hide edit button if they can't use it $forumperms = fetch_permissions($this->thread['forumid']); if ( !$this->thread['isdeleted'] AND !$this->post['isdeleted'] AND ( can_moderate($this->thread['forumid'], 'caneditposts') OR can_moderate($this->thread['forumid'], 'candeleteposts') OR ( $this->thread['open'] AND $this->post['userid'] == $this->registry->userinfo['userid'] AND ($forumperms & $this->registry->bf_ugp_forumpermissions['caneditpost']) AND ( $this->post['dateline'] >= (TIMENOW - ($this->registry->options['edittimelimit'] * 60)) OR $this->registry->options['edittimelimit'] == 0 ) )) ) edit: I think I figured it out! Code:
AND $this->thread['forumid'] != XXX |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|