Log in

View Full Version : Second try: How to pass a vbulletin parameter to remote script


memobug
10-17-2002, 06:06 AM
I have asked this before a few months ago and got no response, so I am trying again

I would like to know how I can pass a vbulletin variable (any variable or parameter by variable name) to an external script. Every time I do this from a template the remote script receives the variable name, not its contents.

One application, for example, is that I have an external script that generates a random gallery thumbnail from photopost. I want to put that into the vB user's profile. The script works perfectly from the command line, but when I try it call it from a template it sends the text e.g. "userid" and not the content of the variable e.g. "5"

Regards,

Matt

tHE DSS
10-19-2002, 02:03 AM
Firstly, do you inlcude the 'global.php' script into this external script?

require(global.php);