View Full Version : Using variables in a Custom Page
kinggori
02-19-2007, 12:01 AM
Hello guys
I created my own template and page but when I tried using
$vbphrase[posts]
$post[posts]
the $vbphrase[posts] works BUT $post[posts] does not work
any ideas why?
Guest190829
02-19-2007, 12:02 AM
Hello guys
I created my own template and page but when I tried using
$vbphrase[posts]
$post[posts]
the $vbphrase[posts] works BUT $post[posts] does not work
any ideas why?
The $post array only has scope inside the postbit, none of the variables will work elsewhere. :)
kinggori
02-19-2007, 12:16 AM
The $post array only has scope inside the postbit, none of the variables will work elsewhere. :)
thanks for your reply Danny :)
so how can i display the number of posts in a custom page then?
Gio~Logist
02-20-2007, 04:42 AM
Do you want to display the number of posts in the entire forum?
kinggori
02-20-2007, 04:47 AM
Thanks i figured out how and for anyone with the same question here it is:
{$vbulletin->userinfo[username]}
{$vbulletin->userinfo[posts]}
{$vbulletin->userinfo[email]}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.