![]() |
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) |
PHP Code:
You can use in_array() to but the is_member_of function is better if your using vBulletin. |
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 |
Try this with array added in:
PHP Code:
|
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 |
Hmm maybe is_member_of() has been added more recently then.
Use this is its place then: PHP Code:
|
Quote:
PHP Code:
|
cheers lynne that worked fine.Appreciate your time and help on this.
|
All times are GMT. The time now is 06:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|