PDA

View Full Version : php help (I am dummy)


indiamike
12-15-2002, 01:41 PM
Ok I feel stupid because my php knowledge is terrible, mostly hunt and peck.

Anyway I just need a little help with including a custom template on my usercp page.

I have made a custom template called photoincp that I wish to include on the user control panel page.

Basically the template is just a link that would point to a members upload page to upload a photo (brad c's photo upload hack which I got working).

Anyway I have added the template name in the $templatesused part but am unclear on basic php how to call that template up in the file.

Could anyone help?

Mike

Xenon
12-15-2002, 01:48 PM
eval("\$varname = \"".gettemplate('templatename')."\";");

then yo can use $varname in your callingtemplate

indiamike
12-15-2002, 01:50 PM
Thanks Xenon your the best!!! :D

Xenon
12-15-2002, 02:57 PM
:)
too much honor :)

you're welcome