![]() |
Need some php(maybe?) help with adding an option to my admincp
I'm working on adding an option to my admincp so certain usergroups can see a mod I have installed in the postbit. I have the options and everything there, but its not working. What do I need to add?
If possible, please contact me via instant messenger. (AIM, ICQ, MSN, YAHOO) Thanks in advance :) |
I'm assuming the option looks like this
"enter Usergroup ID's ... [3,6,7]" The field name is "ug_postbit_mod" (Just for example). In the template you would add HTML Code:
<if condition="is_member_of($bbuserinfo, $vboptions[ug_postbit_mod])"> |
Thanks, will test this now :)
No, sorry. That didn't work. I have my settings set like this: Varname: manage_usergroups Setting Group: My Product Menu Product: My Product Title: Allowed Usergroups? Description: Enter your Usergroup ID/IDs to be able to use My Product. Separate groups by commas. (Default is 5,6,7.) Option Code: (blank) Default: 5,6,7 Data Validation Type: Free Validation PHP Code: (blank) Blacklist: No vBulletin Default: Yes I tried HTML Code:
<if condition="is_member_of($bbuserinfo, $vboptions[manage_usergroups])"> |
Maybe
HTML Code:
<if condition="is_member_of($bbuserinfo, array($vboptions[manage_usergroups]))"> |
Still didn't work :(
If this helps, it doesn't even show the code to me when my usergroup is entered in the field Anybody? |
Setting Group: My Product Menu
You seem to have created a custom settinggroup, are you loading this group in your script? |
I would assume it already added it as I added the setting and everything through the debug mode options. If that doesn't do it, how would I go about doing this?
$10 USD via Paypal to whoever can get this to work. |
All times are GMT. The time now is 03: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:
|