memobug
08-01-2002, 08:37 PM
Greetings
I've been able to get includes working by following the instructions, but this is a little more complicated.
How can I pass a Vbulletin variable as a command line argument from vBulletin into the included script?
Example: I have written a php program for photopost that will display a few of a user's thumbs. I'd like to put that into their vBulletin profile. The script accepts a userid as a commandline argument, for example user #26 is
> showthumbs.php?userid=26
Can I just replace 26 with the variable I want passed (the displayed user's userid? I know about putting the include into php-template I just don't know about the variable.
> showthumbs.php?userid=$userid
UPDATE: I tried the above and it doesn't work. I think it doesn't render $userid It just passes out the text. The include works fine, I just get the last user's pictures in every case.
Thanks,
Matt
I've been able to get includes working by following the instructions, but this is a little more complicated.
How can I pass a Vbulletin variable as a command line argument from vBulletin into the included script?
Example: I have written a php program for photopost that will display a few of a user's thumbs. I'd like to put that into their vBulletin profile. The script accepts a userid as a commandline argument, for example user #26 is
> showthumbs.php?userid=26
Can I just replace 26 with the variable I want passed (the displayed user's userid? I know about putting the include into php-template I just don't know about the variable.
> showthumbs.php?userid=$userid
UPDATE: I tried the above and it doesn't work. I think it doesn't render $userid It just passes out the text. The include works fine, I just get the last user's pictures in every case.
Thanks,
Matt