Debt Consolidation - Credit Cards - Debt Consolidation - Turquoise Rings - Debt Consolidation

PDA

View Full Version : php code in tpl file?


MattEvers
Jan 7th 2006, 4:05 pm
Can this be done? I tried to include some coop code in my footer file. I have done this a lot with footer.php, but never footer.tpl. It doesn't work, and I can't figure out what to do.

Am I missing something simple?

mdvaldosta
Jan 7th 2006, 4:09 pm
what kind of tpl? Smarty, phpbb?

if phpBB, you can't use php code in tpl unless you use the xtreme styles mod. if smarty, try placing the code inside {php} {/php} tags

cytech
Jan 7th 2006, 4:28 pm
It all depends on what kind of template system you are using. As md stated if Smarty you can use {php}{/php} (make sure its set in the config file though)

MattEvers
Jan 7th 2006, 4:29 pm
I dont' really understand that much about this. I got the tpl files from a free odp script. So I guess they are smarty?? Anyway, including those tags didn't work.

I'm stumped! :D

cytech
Jan 7th 2006, 4:50 pm
Can you post a link to this free script?

Once one of us sees it we can let ya konw :)

MattEvers
Jan 7th 2006, 4:51 pm
I found the product page: http://www.dominion-web.com/products/dwodp_live/

cytech
Jan 7th 2006, 6:22 pm
This script does not use Smarty :(

but depending on what you want to do I can do quick edit and for you.

So, what kind of PHP code are you trying to put into the footer file?

MattEvers
Jan 8th 2006, 12:01 am
This script does not use Smarty :(

but depending on what you want to do I can do quick edit and for you.

So, what kind of PHP code are you trying to put into the footer file?

Coop.......