![]() |
[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!! |
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:
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=78823" target="_blank"> [How-To]Using Array conditionals with $vboptions </a>
|
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?....... |
in template
HTML Code:
<if condition="is_member_of($bbuserinfo, explode(",", $vboptions[xx_xx_group]))"> PHP Code:
|
IIRC, explode() is not an allowed function, therefore, you must do that in a plugin.
|
All times are GMT. The time now is 06:09 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:
|