[Nulled] » Nulled Warez Scripts » CMS (Site management systems) » DataLife Engine » DLE hacks » A small and simple video constructor with the preservation of the latest series
December 26 2022

A small and simple video constructor with the preservation of the

I'm still restoring everything I posted. So, we start by creating an additional field.:


These are approximate values, you can change them to your own.

Opening fullstory.tpl
We put it in the right place
 Code

    <script>
      var DEFAULT_VIDEO_SRC = "{THEME}/images/tv.png";
      window.onload = function()
      {
        openVideoBySrc(getCookie("selected_video_src"));
      }
      
      function openVideoBySrc(src, do_reload_page)
      {
        src = src || DEFAULT_VIDEO_SRC;
        
        if(!do_reload_page && document.getElementById('film_main'))
          document.getElementById('film_main').src = src;
        
        setCookie("selected_video_src", src);
        
        if (do_reload_page)
          window.location.reload();
      }
      
      function setCookie(name, value, options) {
        options = options || {};
        
        var expires = options.expires;
        
        if (typeof expires == "number" && expires) {
          var d = new Date();
          d.setTime(d.getTime() + expires*1000);
          expires = options.expires = d;
        }
        if (expires && expires.toUTCString) {
          options.expires = expires.toUTCString();
        }
        
        value = encodeURIComponent(value);
        
        var updatedCookie = name + "=" + value;
        
        for(var propName in options) {
          updatedCookie += "; " + propName;
          var propValue = options[propName];  
          if (propValue !== true) {
            updatedCookie += "=" + propValue;
          }
        }
        
        document.cookie = updatedCookie;
      }
      
      function getCookie(name) {
        var matches = document.cookie.match(new RegExp(
          "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
                                           ));
        return matches ? decodeURIComponent(matches[1]) : undefined;
      }
    </script>
    <iframe name='film_main' id='film_main' width='800' height='540' frameborder='0'></iframe>
    <br>
    <select size='1' onchange="openVideoBySrc(this.value, true);">
    <option selected='selected' value='{THEME}/images/tv.png'>
    Select a series
    </option>
    [xfgiven_video][xfvalue_video][/xfgiven_video]
   </select>




[xfgiven_video][xfvalue_video][/xfgiven_video] We change it to our own tags {THEME}/images/tv.png We change it to our picture When adding news In the "Video" field, we write this for each series <option value="Link">01. Series</option> Opening /engine/skins/default.skin.php Looking for </body> before we put Show/Hide Text <script language="jаvascript" type="text/jаvascript"> /*<![CDATA[*/ document.onmouseup = function(){ var t = document.getElementsByTagName('textarea'); var short_scrollTop = document.getElementById('short_story').scrollTop; var short_scrollLeft = document.getElementById('short_story').scrollLeft; var full_scrollTop = document.getElementById('full_story').scrollTop; var full_scrollLeft = document.getElementById('full_story').scrollLeft; for (var i=0; i<t.length; i++) { t[i].value=t[i].value.replace(/<iframe src="(.*?)".*?<\/iframe>/gim, '$1'); t[i].value=t[i].value.replace(/<iframe width="640" height="360" src="(.*?)".*?<\/iframe>/gim, '$1'); t[i].value=t[i].value.replace(/<object style="height: 390px; width: 640px"><param name="movie" value="(.*?)".*?<\/object>;/gim, '$1'); } document.getElementById('short_story').scrollLeft = short_scrollLeft; document.getElementById('short_story').scrollTop = short_scrollTop; document.getElementById('full_story').scrollLeft = full_scrollLeft; document.getElementById('full_story').scrollTop = full_scrollTop; } /*]]>*/ </script>




Information

Visitors who are in the group Guests they can't download files.
Log in to the site under your login and password or if you are a new user go through the process registrations on the website.

Comments:

This publication has no comments yet. You can be the first!

Information the publication:

Related News

26 December 2022
DLE hacks
Changes in DLE templates

The hack will allow you to display, in the admin panel of the Dle 10.2-10.3 engine, Changes in the DataLife Engine

Read more
16 November 2022
Discuz! script / Modules Discuz!
Discuz! X2.5 Add a

Discuz! X2.5 Add a custom data call module (simple method) Function Discuz! The X Series Dista is still pretty

Read more
26 December 2022
DLE hacks
Sliding Entry Form dle

Sliding Entry Form dle 10.x

Read more
16 November 2022
Discuz! script / Modules Discuz!
The "Features of

In the "Comment Chain Features" tab, you can manage the components of the comment layout. That is, to

Read more
12 November 2022
PrestaShop script / Modules PrestaShop
Module Import/Update

Easy automatic loading, import of product information, images, stocks, combinations, functions, options,

Read more

Information

Users of visitor are not allowed to comment this publication.

Site Search

Site Menu


☑ Scripts Software

Calendar

«    May 2024    »
MonTueWedThuFriSatSun
 12345
6789101112
13141516171819
20212223242526
2728293031 

Advertisement

Survey on the website

Evaluate the work of the site
 

Statistics

  • +4 Total articles 5578
  • +14 Comments 3149
  • +33 Users : 4130