atzaman
04-13-2010, 03:15 PM
Hey all
I hope someone can help me with this.
I know how to create separate php files but can anyone tell me how I can pass a variable from the template to the php file? eg. how can I send the threadid to my php script so that I can use it there?
Many thanks for looking and thanks in advance if you're able to help :)
EDIT:
OK. I've worked out that I need to use $vbulletin->userinfo['usergroupid'] type thing on the php file but what would that be if I wanted the threadid?
I'm editing threadbit and FORUMDISPLAY if that helps.
I hope someone can help me with this.
I know how to create separate php files but can anyone tell me how I can pass a variable from the template to the php file? eg. how can I send the threadid to my php script so that I can use it there?
Many thanks for looking and thanks in advance if you're able to help :)
EDIT:
OK. I've worked out that I need to use $vbulletin->userinfo['usergroupid'] type thing on the php file but what would that be if I wanted the threadid?
I'm editing threadbit and FORUMDISPLAY if that helps.