View Full Version : how do i pass vBulletin variables to my PHP script?
keymistress
03-22-2005, 02:12 AM
i can get the number of posts of a user using $bbuserinfo[posts] in my vBulletin template, but i want to get the $bbuserinfo[posts] from my PHP script instead of the template, how do i do it? :ermm:
Zachery
03-22-2005, 02:23 AM
i can get the number of posts of a user using $bbuserinfo[posts] in my vBulletin template, but i want to get the $bbuserinfo[posts] from my PHP script instead of the template, how do i do it? :ermm:
Query the database.
keymistress
03-22-2005, 02:25 AM
but i'll need the username or member id to query the database, which means i'll still need to pass a vB variable to my php script isn't it? cos i'm using vB's login session...
Marco van Herwaarden
03-22-2005, 04:21 AM
If you are using a vB login (i expect by using the global.php) you will have access to the $bbuserinfo array. That one holds all the user information you need.
keymistress
03-22-2005, 06:15 AM
is it possible for me to include a php file inside a template?
neocorteqz
03-22-2005, 07:32 AM
is it possible for me to include a php file inside a template?
I don't think so, but then again, i'm not too sure about the templates and what is ok and not ok yet.
tgmorris
03-22-2005, 06:54 PM
is it possible for me to include a php file inside a template?
What is it you're actually trying to do? Knowing that will go a long way to being able to provide a solution.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.