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.

0 comments:

Post a Comment