Log in

View Full Version : [tip] See what you have access to


filburt1
12-09-2002, 10:00 PM
Add the following to phpinclude to see all assigned variables:

echo "<pre>";
print_r(get_defined_vars());
echo "</pre>";

You'll see an incredibly huge flood of text, much of it useless (just repeating the templates and replacements), but nestled in there are variables that you can use in your templates. Useful for seeing what $bbuserinfo contains, among other things.

Cypher720
12-09-2002, 11:11 PM
interessting - thanks for sharing!

Tony G
12-09-2002, 11:16 PM
Thanks for that. :)

Dean N Steve
05-20-2003, 10:37 AM
Good tip filburt :)

zeeko1212
03-02-2005, 06:45 PM
interessting - thanks!

tgillespie
03-09-2005, 06:38 AM
Very nice. Searching for variables used in vBulletin is a time consuming task.