how do i pass vBulletin variables to my PHP script?
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:
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:
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...
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.