View Single Post
  #2  
Old 08-07-2006, 09:44 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
Orange Plog
 
Join Date: Jun 2006
Posts: 104
Gallery: 2
Comments: 1
Default

I know exactly what you mean! It can be a steep learning curve.

A useful feature I only recently discovered for finding out vboption names is ... if you go to the admincp and find the option you want, and just hover the mouse on the title for that option, it'll pop up a little box with the option name in it.

For instance, if you wanted to find out what the option name for the "Legacy Feel" in PhotoPlog Pro is, just go to your PhotoPlog Settings cp, hover over the title for that option, and it tells you:

$vbulletin->options['photoplog_legacy_feel']

This covers stuff that is set as options one way or another, typically in the AdminCP.

If you are looking for usergroup permissions / settings, this will usually be in the userinfo['permissions'] array, such as ...

$vbulletin->userinfo['permissions']['photoplogmaxfilesize'];

... which obviously gives you the current users "photoplogmaxfilesize".

Unfortunately there is no easy way in the AdminCP of finding out the variable name to use for any given usergroup permission field, so you have to go look in the ./includes/xml dir (as you seem to have discovered), in the appropriate "bitfield" XML file.

Does this help? Or are you looking for stuff other than basic options and usergroup permissions / settings?

As long as Morgan doesn't mind us using his forums for this kind of stuff, I don't mind answering questions if I know the answers!

-- hugh
Reply With Quote