PDA

View Full Version : Using "eval()" on templates


shri
Wed 3rd May '00, 11:01am
Hi,

I would really like to structure in some calls into the individual templates.

Particularly I would like to be evaluate the showthread template (and while I am doing this perhaps extend the functionality to all the templates except perhaps postbit.

Possible? Would any evil things happen?

Where would I put the eval into showthread.php to have it evaluate the template?

Shri

John
Wed 3rd May '00, 6:09pm
I'm not exactly sure what you are asking... what is it that you want to do?

John

shri
Wed 3rd May '00, 6:17pm
Basically I'd like to call php variables / code from anywhere in any template. So, instead of just having a header eval'ed by turning on $useadvheader, I would also like to have showthread and a couple of other templates parsed by php.

For example, I would like to use my own counter which prints "This post for read xxx times, xxx times this month, xxx times this week.". This is in a custom php script.

With ubb I was able to configure HTML files as server parsed and had embedded ssi calls in a couple of places in the HTML "template" (I use the word lightly) in their CreateThreadHTML code.