The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
correct syntax for this please
i have this code which is listed below.
Code:
if ($vbulletin->userinfo['userid'] != $info['userid'] AND $vbulletin->options['KarmaEditable'] && $vbulletin->userinfo['usergroupid'] != 5) |
#2
|
|||
|
|||
PHP Code:
You can use in_array() to but the is_member_of function is better if your using vBulletin. |
#3
|
|||
|
|||
cheers m8 much appreciated
--------------- Added [DATE]1200610468[/DATE] at [TIME]1200610468[/TIME] --------------- sorry m8 the code in the 1st post works fine but code in second does not.Can u make the syntax correct for the 1st post please as i noticed that is_member_of is different in 1st post to the code u actually printed |
#4
|
||||
|
||||
Try this with array added in:
PHP Code:
|
#5
|
|||
|
|||
nope that never seemed to work.Im on vbull 3.5.7 and its calling the code from a php file so dont think can change the actual code in post 1 around.
Is there no way to add 2 usergoups into the same code which i have in post 1 |
#6
|
|||
|
|||
Hmm maybe is_member_of() has been added more recently then.
Use this is its place then: PHP Code:
|
#7
|
||||
|
||||
Quote:
PHP Code:
|
#8
|
|||
|
|||
cheers lynne that worked fine.Appreciate your time and help on this.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|