![]() |
is_member_of($vbulletin->userinfo, $vbulletin->options[gcm_ug])
HI to all,
I'm creating a mod for a marquee system and I have a problem with the groups who should see the phrase :) Hi created an option: PHP Code:
PHP Code:
Example: I enter 6(id for administrators) and I see the phrase; I enter 2, 6 or 2,6 and don't see the phrase :( I don't understand why :eek: |
I would use the permissionsystem istead of something like this.
I have nothing more, than add-ons where i have to set the permissions in the script or the settings https://vborg.vbsupport.ru/showthrea...ht=permissions |
First, you don't use $vbulletin->userinfo or $vbulletin->options[gcm_ug] in templates. It would be $bbuserinfo and $vboptions[gcm_ug]. But, besides that $vboptions[gcm_ug] is an array and I don't think you can treat it the way you did. You may need to explode it in a plugin and then use it.
|
Quote:
PHP Code:
Then I put this in my mod file: PHP Code:
PHP Code:
Are they correct? :) Quote:
|
All times are GMT. The time now is 11:30 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:
|