PDA

View Full Version : How to see all values for {vb:raw vboptions.xxx}


kharmer
09-24-2010, 11:20 AM
Hi,

Just wondered if somebody could direct me to where I might find all values that would come under the 'vboptions' array used in the templates (vB4.0.7)?

i.e. {vb:raw vboptions.xxx}

I placed {vb:raw vboptions} into my header templete but it just output array; maybe somebody could explain how I'd get VB templates to display an array (might be better)? Of course, I tried the usual PHP methods without any luck and I'm still getting to grips with the vB template language.

Kind regards,
Kris...

--------------- Added 1285335435 at 1285335435 ---------------

OK, I found this.

http://forum.vbulletinsetup.com/f18/vbulletin-variables-list-1064.html

If you know of any other, more recent sources, please post here. ;o)

Regards,
Kris...

Deceptor
09-24-2010, 03:19 PM
Create a file called something like "optionsview.php", inside the file paste this code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
require_once('./global.php');

echo '<pre>';
print_r($vbulletin->options);
echo '</pre>';

Save the file, upload it to your forums root directory then view it in your browser. I do not recommend keeping the file live for long since it's public, once you're done remove it.

Also note it'll show options from any modifications you have, not just the default vbulletin ones.