View Full Version : Exemptoing Admins from editing thread description
Boofo
05-07-2004, 12:45 AM
How would I go about exempting Admins from the following line?
if ($getpost['postid'] == $postid AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)
I want them to be able to change the thread description without a time limit. This is in editpost.php, by the way.
Boofo
05-07-2004, 12:54 AM
I think I figured it out, but I need someone to confirm it. Is this how you would do that?
if ($getpost['postid'] == $postid AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW OR $bbuserinfo['usergroupid'] == '6')
filburt1
05-07-2004, 01:10 AM
The easiest way to check is just to use an and, and group everything else together:
if (is_member_of($bbuserinfo, 6) and (all other conditions))
Boofo
05-07-2004, 01:20 AM
The easiest way to check is just to use an and, and group everything else together:
if (is_member_of($bbuserinfo, 6) and (all other conditions))
But I need to have others edit it if they timelimit hasn't passed yet. It's basically set up like the thread title.
Boofo
05-07-2004, 01:29 AM
Would this work?
if (($getpost['postid'] == $postid AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW) OR (is_member_of($bbuserinfo, 6)))
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.