MyBB Support

[Plugin Help] Making available to certain usergroups

Submitted by Tropical, , Thread ID: 3944

Thread Closed
Tropical
Fulltime Member
Level:
0
Reputation:
35
Posts:
1.04K
Likes:
54
Credits:
117
18-05-2015, 04:19 AM
This post was last modified: 18-05-2015, 04:30 AM by Tropical
#1
I know on some forums, the usergroups have different features to access certain plugins
The only one I know of that allows this is Username Color Changer

The code for the "apparent" feature to allow this in that plugin is:

PHP Code:
// add settings

$setting = array(

"sid"=> NULL,

"name"=> "userstyle_usergroups",

"title"=> "Allowed Usergroups",

"description"=> "Enter the IDs of the groups allowed to use this feature. (use \'all\' to allow everyone)",

"optionscode"=> "text",

"value"=> 'all',

"disporder"=> 1,

"gid"=> $gid

);



$db->insert_query("settings"$setting); 


I am looking to add to plugins; a option like that to allow it's access to certain usergroups
I'd really appreciate it if anyone could help me with this

[AndresXZ09] - :noh: Told me to mention you huehue

http://community.mybb.com/thread-163996.html

:yus: I think this is what I am looking for but.....
may somebody tell me actually where those codes go in the plugin?

Users browsing this thread: 1 Guest(s)