View Full Version : $pluginsettings
vista
08-23-2005, 02:15 PM
I've noticed this variable in some of the plugins install.php. Can't seem to find where it tells us what it is, how it is used, etc? Common values I've noticed are 17, 19 & 27.
Working on some plugins (using the 900 - 999 id range) and would like to understand what this variable means.
utw-mephisto
08-23-2005, 02:34 PM
Might be related to
http://www.subdreamer.org/forum/index.php?showtopic=24
vista
08-23-2005, 03:05 PM
Originally posted by utw-mephisto@Aug 23 2005, 10:34 AM
Might be related to
http://www.subdreamer.org/forum/index.php?showtopic=24
810
No, that thread is for assigning the unique plugin id number and the variable used in the install.php for that is $uniqueid. As I said, I'm using the 900 range (allocated for "personal plugins") as stated in the referenced thread.
It's a value which determines the privileges which the plugin can enable in the usergroups. Here's the values for reference.
// plugin bitfield data
$pluginbitfield = array('canview' * * => 1,
* * * * * * * * * * * *'cansubmit' * => 2,
* * * * * * * * * * * *'candownload' => 4,
* * * * * * * * * * * *'cancomment' *=> 8,
* * * * * * * * * * * *'canadmin' * *=> 16);
As the values are bitfields, to allow more than one option you add the values together. So, if you wanted to enabled 'canview' and 'cansubmit' you set your $pluginsettings to 3.
vista
08-23-2005, 08:09 PM
Thanks, spib. If this was explained in the Plugins Manual, I apologize because I totally missed it even after reading it many times.
abcohen
08-24-2005, 03:11 AM
it will be covered in the updated plugin manual (its not currently in the older manual)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.