vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to see all values for {vb:raw vboptions.xxx} (https://vborg.vbsupport.ru/showthread.php?t=251083)

kharmer 09-24-2010 11:20 AM

How to see all values for {vb:raw vboptions.xxx}
 
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 [DATE]1285335435[/DATE] at [TIME]1285335435[/TIME] ---------------

OK, I found this.

http://forum.vbulletinsetup.com/f18/...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:
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.


All times are GMT. The time now is 07:21 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
  • Page Generation 0.00994 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete