PDA

View Full Version : running php-scripts within templates


Sx
02-17-2005, 12:32 PM
Ok,

Here I am again :lol: with another small question.
If you check out my (rather simple) website you notice that there are 2 small php-scripts running : the date at the upper right corner, and right beneith that a quote-script that randomizes a display-quote.

I adapted the page_main.tpl file to fit my layout, but as you can see the 2 php-scripts stopped working.

I guess it is because the output of the link-script is html, not php. Is there an easy way to get the output as php so the small scripts keep on working ?

That would be awsome.
thanks for your help,

Sx

David
02-19-2005, 05:01 PM
Since you the output of the script is based on a template system which outputs html, it does make it a little trickier to integrate PHP, but it is possible. This script has been integrated with OSCommerce, for example. You can see an example here:
http://www.headlightsdepot.com/directory.php
Probably the easiest thing to do would be to get a programmer to help you the first time. Would you be willing to make a small donation? If yes, I will get a programmer to personally assist you in getting your other scripts running with this script. Send me a PM if you want to do this. I think $20 will do.

IGonza
02-19-2005, 10:11 PM
I can do it for you.
But I have to look at the these two small php-script and template file as well.