The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[How?] Usergroup permissions in a mod/hack?
I'm trying to create a mod with usergroup permissions, I have placed
PHP Code:
PHP Code:
PHP Code:
I've searched high and low and have found different variations of this with and without arrays PHP Code:
PHP Code:
Please help me!! |
#2
|
||||
|
||||
My guess is that your option is a comma-separated list. Say you entered "1,2,3" into that option, you would expect this:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?t=78823" target="_blank"> [How-To]Using Array conditionals with $vboptions </a>
|
#4
|
|||
|
|||
both are valid answers but I do not know php that well so would someone please explain abit more in detail as the code in top post is within a template and so php cannot be placed there.
How can I convert it or how can I wrap the template in php and still have it work, will I need to replace the template with a plugin instead or what and if so how?....... |
#5
|
|||
|
|||
in template
HTML Code:
<if condition="is_member_of($bbuserinfo, explode(",", $vboptions[xx_xx_group]))"> CONTENT <else /> OTHER CONTENT </if> PHP Code:
|
#6
|
||||
|
||||
IIRC, explode() is not an allowed function, therefore, you must do that in a plugin.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|