The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Well if you combine 2 (or more) NOT '!' conditions they will get related.
Example of what you want: 1. If you are not the poster AND not have rights to edit (this will mean that if you are the poster, but don't have the right to edit (your own post) you still can edit): PHP Code:
- I am the poster, and i have rights to edit. The above is NOT true, so no error msg. - I am the poster, and i have NO rights to edit. The above is NOT true (the first part of the condition is false), so no error msg. - I am NOT the poster, and i have rights to edit. The above is NOT true, so no error msg. - I am the NOT poster, and i have NO rights to edit. The above is true, so i get a no permission page. Now the second part: PHP Code:
PHP Code:
PHP Code:
- User is same, C2 is TRUE (making the test false!!!), and C3 is FALSE(he is not a moderator, making this test true. So we have here a user, who made this post, have edit rights and is not a moderator, this would result in: 1. post_user != cur_user......FALSE (the user is the same) 2. !C2....FALSE (the user has permission to edit) 3. !C3....TRUE (the user is not a moderator) this will result in: Code:
((FALSE AND FALSE) OR (TRUE)) Code:
(FALSE OR TRUE) Code:
TRUE PHP Code:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|