The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Can i use if conditional in vb files?
guys can i use this if conditional in vb files, for example in forumdisplay.php or showthread.php ?
PHP Code:
i need to do some custom hack, there is code need to inserted to vb files and to the templates, but i just want to showing this hack to some usergroups like above please share your knowledge guys, is this if conditional works for vb files? |
#2
|
||||
|
||||
I don't know off hand if that specific condition works but yes you can use conditionals. You can use any php you want.
Also in your example, if it was to work, you forgot the opening brace, the "{" before "stuff." Edit- looks like it should work, but you might need to make an array out of the usergroup id's list= I copied this line from a working mod php: Code:
if (is_member_of($vbulletin->userinfo, $ugroups)) array{2, 5, 6, 7) I believe... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|