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:

  • New Links I present you hack transformation options for DataLife Engine. Powered by CSS2.0 support each browser. The trick is that when you hover on a link it is animated and the background turns to the left or right. Very nice t… Read More
  • Drop-down horizontal menu for DLE With this hack you can create a nice Drop-down Horizontal menu for your site.. It uses HTML, CSS and a bit of jQuery.Version DLE: 8.5 and below Reviewed: Opera, IE, Mozilla Download Link: http://www.mediafire.co… 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
  • Add button in the WYSIWYG editor The buttons do the insertion into the body of news, anything. Doing for themselves, as they should be inserted into the short and full story frame with styles and so on.  Open: engine/editor/shortnews.php  Find:… Read More
  • 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

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