Friday, June 17, 2016

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 movie to your site using iframe from Openload.co
What you need to do is follow the step below.
Open the file engine/classes/parse.class.php
Find:
var $allowed_domains = array("vkontakte.ru", "ok.ru", "vk.com", "youtube.com", "maps.google.ru", "maps.google.com", "player.vimeo.com", "facebook.com", "mover.uz", "v.kiwi.kz", "dailymotion.com");
Add the iframe domain as below:
var $allowed_domains = array("openload.co", "vkontakte.ru", "ok.ru", "openload.co","vk.com", "youtube.com", "maps.google.ru", "maps.google.com", "player.vimeo.com", "facebook.com", "mover.uz", "v.kiwi.kz", "dailymotion.com");

After you do this you may add iframe from openload.co using Short description or xfields.

Related Posts:

  • 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
  • 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
  • 10 stars ratingHow to install?! Open: engine/ajax/rating.php Search: if( $go_rate > 5 or $go_rate < 1 ) $go_rate = 0; Replace with: if( $go_rate > 10 or $go_rate < 1 ) $go_rate = 0; Open: engine/modules/functions.php… 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
  • 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

0 comments:

Post a Comment