Wednesday, January 5, 2011

How to insert PHP code in file main.tpl

main.tpl file is a template file of DLE. There are cases when you need to insert PHP codes in It, but It is not allowed. So now I will show you a hack how to enable the insertion of PHP codes in main.tpl

1. Open file index.php
Find:
echo $tpl->result['main'];

Replace to:
eval (' ?' . '>' . $tpl->result['main'] . '<' . '?php ');

That's all you need to do.

Related Posts:

  • How to insert PHP code in file main.tplmain.tpl file is a template file of DLE. There are cases when you need to insert PHP codes in It, but It is not allowed. So now I will show you a hack how to enable the insertion of PHP codes in main.tpl 1. Open file index.p… Read More
  • How to add iframe in DLE post Adding iframe to Datalife Engine post is much easier than you may think. You don't need any modules. By default DLE allows iframe from only few domains because of security purposes. Let's say you want to embed a video or m… Read More
  • Datalife Engine Noindex Hack After 5 years I am back on using Datalife Engine CMS. And one of the problem I faced when trying to rank well for SEO was no index for tags, xfields or other pages I didn't want to. In wordpress it is simple, installing pl… Read More

4 comments:

  1. I insert it it does not show signs faulty hospitality "." located anywhere

    ReplyDelete
  2. Cool and that i have a super provide: How To Become A House Renovation house to renovate

    ReplyDelete