Data Life Engine (DLE)is a multi-user news engine designed to organize your own blogs and media on the Internet. With a powerful system for publishing, customizing and editing news, the engine is one step ahead of its closest competitors. And thanks to the precise and thoughtful structure of the kernel, which minimizes the requirements for server resources, the engine is able to easily work with highly visited projects without creating any special load on the server. Flexibility and ease of customization and integration of your own design will allow you to deploy your own sites in the shortest possible time, without any additional material costs. Using advanced AJAX technology will reduce both your server traffic and the traffic of your visitors, not to mention the convenience of using this technology on the site. Due to the increased attention to the security of the script, to the convenience of working with it, as well as dynamic development, more than 70,000 portals that successfully use it in their work have already spoken in favor of using the DataLife Engine. The engine is optimized for search engines which will bring more customers to your site.
Official site:http://dle-news.ru/
FAQ: http://dle-news.ru/faq.html
Please note that this software ispaid, and the installation will be discussed with an exampledemo versions.
InstallationCMS DLE
To start installing DLE, you need to go to the hosting control panel using the link and data sent to your contact e-mail when ordering the service.
Download the CMS DLE (DataLife Engine) distribution, for example here http://dle-news.ru/demo.html .
Go to the hosting control panel, point "File Manager" and then to the directory www/domain_name. Delete by default the index.html file created when adding the domain, press the "Upload" button, select the CMS DLE archive and press OK.
After downloading the CMS DLE (DataLife Engine) archive, click on it once so that it is highlighted and press the "Extract" button. After unpacking the archive, you should come to this view:
Next, we need to create a CMS DLE (DataLife Engine) database, for this, in the hosting control panel, go to the "Databases" item and click the "Create" button. Enter the database name, username and password and click OK:
In the future, the name of the database and user is used with a prefix in the form of your login in the hosting control panel:
The Database Type column displays the database host db01.site.
After performing the above steps, we access the browser by the name of your domain, proceed to install CMS DLE (DataLife Engine), press the button "Start installation":
Note! To start installing CMS DLE (DataLife Engine) when accessing a domain, the domain must already respond to records from the hosting server. If the domain has just been added to the server and information about its records has not yet been distributed over the network, you can register and save it on your computer in hosts file following entry: server IP address domain name
83.69.23*.*** domain name
The IP address of the server can be viewed in the hosting control panel item Domain names- Entries entry:
domain_name.ru. |
A (Internet v4 address) |
At the next step, to continue the installation, you need to read and accept the license agreement.
We put a daw "I accept the terms of the agreement" and continue with the installation.
9. One of the important steps during installation is setting up the system configuration, where you need to correctly specify the data for connecting to the database and set the login and password of the site administrator.
The data that is required from you (using the example of our user):
Base name: vh12345_dle
Database username: vh 12345_ admin
Password: the password you specified when creating the database
MySQL server: column Type of database in the section Databases db01.site(see item 4) or
indicate in this field mysql.your_domain
The prefix is set arbitrarily.
Data for access to the control panel is the creation account administrator of your site, here we indicate the desired login / password and e-mail administrator.
Installation of CMS DLE (DataLife Engine) is completed.
Delete file install.php, it is located in the directory www/your_domain
We request a domain through a browser, enter the CMS DLE (DataLife Engine) admin panel and start working with the site.
Let's talk about the menu on the dle website. More precisely, how to add your own items to the menu, or replace existing ones with new ones. Quite often, for beginners who have just installed this CMS, the question arises: “How to replace the standard menu items in the standard template with your own?” If, in wordpress, this can be done without editing the code, then in dle the situation is different, you still have to get into the code and figure it out a bit. However, there is nothing difficult in adding new items, and I hope you can see this today.
So, let's get down to business. To begin with, we need to create items that later need to be implemented in the dle menu, be it pages or categories. To do this, go to the admin panel and click on the item "list of all sections."
And then it all depends on the situation. If we need to add a link to the site category to the menu, then go to the “Categories” item, and if we need to create a page that the menu item will direct the user to, then go to the “Static Pages” item. There is no fundamental difference between them, so we will choose one of the two options, for example, "Categories".
A form for creating a new category on the site will appear. Everything is simple there. What each form field is used for, see image.
Not all fields that are described in the figure are mandatory, but only the first and second fields. And the points that I did not touch on the image do not relate to categories at all, but to global engine settings, such as dle news output settings, and also provide the ability to assign a unique template for each category separately.
After filling in the required fields, at least the first two, click on the add button. This action will create a new category on the site, a link to which we will add to the dle menu. And Special attention note the second field, where it was necessary to write an alternative name for the category, which will be the address at which the category will be located. In my example, it will look like this: http://site.ru/primer_category/
Now, let's move on to directly adding a new item to the dle menu.
To do this, in the admin panel you need to go to the "Website Templates" section.
And then you need to select one of the two files, if a standard template is used, in which the menus on the site are registered. There are two types of menus in the standard template: this, and both horizontal and vertical. The topmenu.tpl file is responsible for the horizontal menu, and the sidebar.tpl file is responsible for the vertical menu in the left column of the site. Both of these files can be found in the left column of the Site Templates section. And when you click on one of them, the code of this file will appear in the right column.
After opening the file, we need to fix any existing item on ours. That is, change the name, in this case to the name of the category. And substitute a link to the category itself (alternative name), instead of #. That is, if I replace the “About site” item, then the menu code will look like this:
By analogy, you can change the rest of the menu items. As for the second, horizontal menu, the situation is exactly the same there. And of course, everything that you don't need can be removed. And of course, save the edited file.
If you are not sure about something, for example, that you will delete something superfluous, then just do it so that in case of unforeseen situations it can be restored.
And that's all for me.
The following changes have been prepared and implemented:
4. Added the ability to create a description, for a video that will be visible when shown in the player, for this, the following format is used in the video embed tag: , the same can be set for all files if a comma-separated file playlist is used. You can see an example of the display in the screenshot above.
5. Added the ability to use in the tag, also links to videos in the Youtube service. Thus, you can organize mixed playlists that include your video and videos on the Youtube service.
7. Added the ability to create a description, for audio that will be visible when playing music in the player, for this, the following format is used in the audio embed tag: . You can see an example of the display in the screenshot above.
8. Added the ability for the audio player adding links to play streaming audio. Thus, you can set and display playlists to listen to on your site of radio stations.
13. For additional fields of type"Download image" and "Upload file", added automatic prohibition of re-uploading images and files until the previous uploaded image or file is deleted. This reduces the likelihood of attaching unused files and images to the news.
14. For additional fields of type "Upload image" new tags added: and , which output only the URL for the thumbnail of the uploaded image and the URL for the full image, respectively, where "X" is the name of the optional field. These tags will be useful for webmasters who want to personalize the uploaded publications on the site, for example, in combination with other additional fields.
17. Due to the fact that the developers of the WYSIWYG LiveEditor decided to stop any work on this editor, and he has not received any updates for several years, it was decided to remove this editor from the DataLife Engine. Sites that previously used this editor will automatically switch to using the FroalaEditor.
19. Added automatic cache reset Zend OPCache when changing site settings. Thus, when this caching is enabled in the server settings, you do not need to reset the cache yourself, or wait for the changes to take effect.
22. Added the ability to subscribe to comments to the news when a comment is posted, even when the comment is being moderated.
24. In the user profile on the site, the ability to automatically subscribe to receive notifications about new comments that are added to the news, the author of which he is. Thus, the user does not need to subscribe separately to each of his news, it is enough to cancel the corresponding checkbox in the settings of his profile. To display a checkbox, in a template userinfo.tpl added new tag usage (news-subscribe).
25. In the user profile on the site, the ability to automatically subscribe to receive notifications of new comments that are responses to his own comments. To do this, just uncheck the corresponding checkbox in your profile settings. To display a checkbox, in a template userinfo.tpl added new tag usage (comments-reply-subscribe).
26. Added support for PHP Memcached extension. The DLE script automatically determines which PHP extension is installed, Memcache or Memcached on the server, and depending on this, uses one or another PHP extension, if Memcache caching is enabled in the script settings. Thus, it is no longer necessary to install the PHP Memcache extension on the server.
28. For the template tag Text added the ability specify a news range using a dash character. For example, you can specify Text Text. This makes it easier to create the design you need, and there is no need to prescribe all the IDs of the required publications separated by commas.
29. For the template tag Text added the ability specify the range of pages you want using the dash character. For example, you can specify Text. Similarly, the range can be set for the opposite tag Text. This makes it easier to create the design you need, and there is no need to prescribe all the numbers of the pages you need, separated by commas.
31. Added automatic addition for all external links, which are published in the news and comments, attribute rel, containing the parameters "external noopener noreferrer". This attribute allows you to reduce the likelihood of a possible attack on the site using social engineering mechanisms.
34. In the admin panel, in the user editing section, the ability has been added quick recalculation of the number of publications by the user. To do this, click on the number of publications of the user and select the recalculation of publications in the menu. This option will be useful if mass manipulations with publications were performed, or additions to the database bypassing the script.
36. Improved performance of news output when using sorting by rating and views. Also improved the performance of the output of comments that use sorting by rating.
37. Improved the system for accounting for the number of user comments in his profile statistics. Mass deletion of news also automatically recalculates user comments. This eliminates the need for periodic recalculation of statistics.
38. Optimized the display of the DataLife Engine admin panel on mobile devices in portrait orientation. Thus, the control panel has become more convenient when using it on smartphones.
39. Jquery library has been updated to line 2.xx
40. Updated the TinyMCE editor to the current version.
41. Fixed a problem where it was impossible to use the dot in the add. fields of the cross-reference type.
42. Fixed a problem where invalid layout of HTML comments was formed when using tree-like comments.
43. Fixed a problem where for the tag (category-url), the URL to the category was displayed using the CNC, regardless of the CNC settings in the script's admin panel.
44. Fixed a problem where there was a duplication of indexes of additional fields, having the option of cross-references, if the news is published in several categories.
45. Fixed a problem where text and text tags worked incorrectly for home page, if the script settings have enabled displaying a static page on the main page as the main one.
46. Fixed a problem where if the news was cleared from comments in the publications editing section, then there was always a return to the first page of the news editing section, regardless of the search filters and displaying publications for editing.
47. Fixed a problem where it was impossible to enter the correct answer to the Q&A system if the user is replying to a comment rather than adding a new one.
48. Minor bugs in the script that were discovered and announced earlier have been fixed.
Information for downloading the script for clients:
Attention! Viewing this information is available only to users who have a license for the script. If you have already purchased the script, then you need to go to the site under your client account.
If you are not yet our client, then you can visit our website.
You can discuss the release at
Hi friends. I spend almost all of my time. Since most of my sites are built on CMS DLE, I have to work a lot with this engine. I have said before that developers are not friends with SEO, and in general they have never heard such a word, but it turned out to be even worse than it could be. I even prepared a whole series of posts dedicated to the "ossification" of the national engine (see in the category).
But today I would like to talk about such an important thing as the html sitemap for DLE. No matter how much I searched the Internet for a normal card module, I did not find it. There are, of course, several solutions, but all of them do not give the desired result at all, and sometimes even cause harm. I had to write the module myself, or rather entrust the implementation of my “wishlist” to professionals. I express my deep gratitude to Alexander Fomin for his enthusiasm and incredible speed of work.
The sitemap module for DLE that I am about to introduce to you meets all the requirements of seo and is extremely easy to install.
A complete list of modules for DLE from Alaich "a:
SiteMap - HTML sitemap generation module for DLE
Original name: sitemap
CMS Compatibility: DLE 8.2- 10.6
Spreading: Free, As Is, when distributing a link to the source is required
Current version: 2.2 (from 05/08/2014)
Purpose: Output an unordered list with links to all publications, categories and static pages.
Peculiarities: Visual embed code generator. Detailed setting of the principle of displaying all site elements - news, categories, static pages - the number of displayed elements, sorting principle and sorting order, displaying elements as a link or plain text, the ability to include/exclude specific elements.
Description and configuration of the HTML sitemap module for DLE
Friends, June 3, 2012 is a big day, a brand new sitemap version 2.0 has been released. We are raising the usability bar of our module to a new level. We (I hope you, too) liked the visual code generation system implemented in the system and we decided to implement it in the sitemap module. Now you do not need to read manuals and descriptions of all functions and their values - just go to the admin panel, specify a few values and that's it - the module is ready to go!
In addition to the above, I would like to list a few more important features:
- the module is fully cached;
- the module uses the DLE API;
- the map does not display publications that have not passed moderation, as well as those planned for the future;
- the presence / absence of CNC, as well as the type of CNC are taken into account;
- such a subtlety is provided - if someone has been working with the DLE engine for a long time, then he remembers that in the early versions there was no CNC at all, and then it appeared, but only of one type (the same as type 3 is now being formed). So this is also provided for in this module - new publications are displayed with a url, the CNC type of which is selected in the admin panel, and old ones, respectively, with the url of the CNC of the old type.
Despite the appearance of a visual generator, I suggest that you familiarize yourself with the mechanics of the module.
The module is inserted into the main.tpl template using the tag:
(include file="engine/modules/sitemap.php?param1=value1¶m2=value2")
param1= — module parameter, value1 — parameter value. Module settings come after the sign? and separated by &.
Insert example (displays a sitemap with a list of static pages and news from categories with id=2,3,4):
(content)
(include file="engine/modules/sitemap.php?show_static=1&need_cats=2,3,4")
In order for the sitemap to be displayed on a separate page, the (include ...) tag must be enclosed in , and the (content) tag must be enclosed in . After that, the module will be available at http://site.ru/sitemap/
After any changes to the parameters and their values, it is necessary to clear the cache in the admin panel.
Module parameters passed via tpl when inserting:
- need_cats - a list of id categories separated by commas for display in the map
- exc_cats - list of id categories separated by commas, excluded from the map
- need_news — comma-separated list of id articles to display in the map
- exc_news - comma-separated list of article ids to be excluded from the map
- it is pointless to specify these parameters at the same time
- need_static — comma-separated list of static page ids to display in the map
- exc_static - list of id static pages, separated by commas, excluded from the map
- it is pointless to specify these parameters at the same time
- cats_as_links - show category names as links (1 or 0)
- show_static - show static pages in the map (1 or 0)
- cats_sort - category list sort field (field from dle_category table)
- cats_msort - category list sorting direction (ASC or DESC)
- news_sort - sorting field for the list of articles (field from the dle_post table)
- news_msort - direction of sorting the list of articles (ASC or DESC)
- static_sort - sort field for the list of static pages (field from the dle_static table)
- static_msort - direction of sorting the list of static pages (ASC or DESC)
- There are 2 sorting options:
- ASC - ascending (alphabetically)
- DESC - descending (in reverse order)
- if the field and sorting order are not specified, the specified category settings or standard DLE parameters are used
- cats_limit - maximum number of subcategories to display
- news_limit - the maximum number of output articles from the category
- static_limit - the maximum number of displayed static pages
Notice none of the above settings are required, you can not specify anything at all - just insert the tag (include file="engine/modules/sitemap.php") - then the default settings will be used.
Sitemap Appearance and Style Classes
Optional change is provided appearance site maps, for this we open the style file (style.css) of our template and prescribe the classes described below.
List of sitemap CSS classes:
Sitemap_categories - element
- category list
- category list
.sitemap_items - element- list of articles
- list of articles
.sitemap_static_pages - element- list of static pages
- list of static pages
Root - a class for the above elements located at the root of the list
Sitemap_categories a - element with category name
.sitemap_categories span - element with category name
.sitemap_items a - the element with article title
.sitemap_static_pages a - element with static page nameInstalling, uninstalling and updating the sitemap module on DLE
Module installation
- Unpack the archive with the module;
- Copy the contents of the uploads folder (except /templates/) to the server;
- Place the contents of the uploads/templates/Default/ folder in your template folder;
- Run the file http://site.ru/sitemap_installer.php and follow the instructions;
- Delete the sitemap_installer.php file from the server;
- Go to the admin panel, select the SiteMap module and generate the code;
- Open your template's main.tpl file and find:
Rewrite Engine On
Add below:
$metatags =<<
Add above:
if ($do == "sitemap" ) ( $nam_e = "Sitemap" ; $metatags [ "title" ] = "Sitemap ($config["home_title"]) "; $metatags["description"] = "Sitemap ($config["description"]) "; $canonical = "" ; ) if ($do == "sitemap") ( $nam_e = "Sitemap"; $metatags["title"] = "Sitemap ($config["home_title"])"; $metatags["description"] = " Sitemap ($config["description"])"; $canonical = ""; )
- The installation process is completed - the sitemap is available at http://site.ru/sitemap/
Removing a module
- Upload the sitemap_uninstaller.php file to the server (to the folder where DLE is installed);
- Run the http://site.ru/sitemap_uninstaller.php file and follow the instructions;
- Delete all module files downloaded during installation;
- Revert all changes to the engine files (main.tpl and .htaccess) made during installation;
- Don't forget to delete the sitemap_uninstaller.php file.
Module update
- Download the new version of the module from the page https://website/blog/post/1974
- Unpack the archive with the module.
- Copy the contents of the upload folder (except for the sitemap_installer.php file and the /templates/ folder) to your server, answering "Yes" to your FTP client's questions about replacing existing files.
Attention! To upgrade from v.1.x to v.2.x:
It is necessary to completely copy the new files from version 2.x to the server, if the names match, confirm the replacement. After that, you need to run http://site.ru/sitemap_installer.php and follow the instructions. This completes the update.Download HTML SiteMap module for DLE
Version history (History Log)
- v.2.2 - 08.05.2014
- Completely redesigned module design for all versions of DLE.
- Minor bugs fixed and improvements made. When updating, be sure to follow the step with editing the engine.php file in the update instructions.
- v.2.1.1 - 17.04.2014
- The module code has been updated to be compatible with the new DLE settings file format version 10.2 and higher.
- v.2.1 - 08.10.2012
- Fixed a bug in the code generator.
- Fixed typos in admin panel.
- v.2.0 - 03.06.2012
- Added installer.
- There was an admin panel with a code generator for inserting into a template.
- v.1.2 - 02.06.2012
- DLE version control introduced.
- The module is now compatible with the DLE 8.2-9.6 line.
- v.1.1 - 02.11.2011
- Fixed bugs with some module functions.
- v.1.0 - 16.03.2011
- Official release.
FAQ - answers to frequently asked questions
Q: Why do I need two sitemaps xml and html? What is their difference? Can they be used at the same time?
A: These are two completely different entities: the xml sitemap is intended only for search engines. The html sitemap is for users to navigate the site. They can and should be used at the same time.Q: What sitemap should be added to the Yandex and Google webmaster panel?
A: Search engines need to “feed” exactly the xml sitemap, and not the sitemap that this module creates.Q: Which sitemap can be linked to on the site (for example, in the footer)?
A: You only need to link to the html sitemap, i.e. the one that is created by this module and is available at http://site.ru/sitemap/Q: I got the following error, what should I do?
Fatal error: Cannot redeclare class Sitemap in /.../engine/modules/sitemap.php on line 55
A: Use the alternative installation of a sitemap through static pages - the method is described hereQ: Does this module work on DLE 10?
A: Yes, everything is working fine. But if you have any difficulties, then there is another alternative. Thanks to the user under the nickname Ryan - the method is described hereQ: I have a lot of publications on the site, and all these links are displayed on one page. This is crap, Yandex swears!
A: Yes, Yandex swears. To reduce the number of links on a page, use the news_limit parameter to limit the number of news output (see the list of parameters for details).Q: How many links on the map page can/should be displayed?
A: From the official response from Yandex support: the recommended number of links in the html sitemap should not exceed 3000 links.Q: But what about dividing the sitemap into pages? Please do.
A: Pagination of the site map is not implied by the database structure and module logic. Pagination is not expected in the near future.So I told you everything, please download, test and write reviews. If you find any errors - write, we will correct everything as quickly as possible. Also, if you have any wishes regarding the functionality, improvements, also write, we will discuss everything and do it!
DISCLAIMER Recently, this module has been distributed on various sites dedicated to DLE, under other names, with changed code, removed / changed copyright, etc. But, nevertheless, signs that this is exactly this module and developed by Alexander Fomin remain. So - I do not bear any responsibility for distributions downloaded from other sites.
News on DLE without loading and without refreshing the page!
Module Features:
Doesn't require any engine modifications. Accounting for access rights to the news. If for some reason the user is forbidden to view the full news in the settings, he will not be able to view it. View count. The module takes into account the DLE settings and, if required, counts news viewing. Correct clearing of the module cache. The module cache is cleared in accordance with the DLE cache auto-clearing rules, so the news will always be up-to-date in quick view. Support for all tags. The module supports all tags of the fullstory.tpl template. If the tag is not needed in quick view, it will be empty instead. (the form for adding comments, the comments themselves). Caching on the client side. The module returns the correct headers. If caching is enabled on the site and the user calls the quick view of the news again, the browser will receive a 304 status in response and give the user a cached (in the browser) page. Installation:
Unpack the contents of the upload folder to the root of the site.
In the right place of any template, insert the minimum code: Quick ViewWhere (news-id) - news ID (required parameter).
"); $modalBlock .appendTo("body") // Add the block to the page. find("#" + modalId) // Look for the selector we're interested in. html($html) // Paste the resulting code into it. dialog(( // Show modal window width: 800 )); )) .fail(function () ( console.log("full-story error"); )); )); errors:
You can also use additional attributes:
Quick view
data-afs-template="mytemplate" - path to the module template relative to the current site template folder.
Default: **(THEME)/ajax/fullstory**. (Optional parameter).
data-afs-preset="mypreset" - path to file with module settings. Not used by default.
3. Insert into js template file:
$(document).on("click", "", function () ( var $this = $(this), $data = $this.data(); $.ajax(( url: dle_root + "engine/ajax /full-story.php", type: "GET", dataType: "html", data: ( newsId: $data.afsId, // Required variable preset: ($data.afsPreset) ? $data.afsPreset: "" , // Configuration file name (optional) template: ($data.afsTemplate) ? $data.afsTemplate: "", // Template file name (optional) ), )) .done(function (data) ( var $ html = $(data); // Data has been received, you can parse it and show it in a dialog // Below is a simple example of displaying content in a standard DLE modal window var modalId = "afs-" + $data.afsId + "-" + $ data.afsPreset + "-" + $data.afsTemplate; modalId = modalId.replace(///g, "-"); var $modalBlock = $("
.afs-error ( /*General style for all errors*/ padding: 20px; background: #fff; color: #424242; ) .afs-news-error ( /*Error style if no news found*/ background: # eceff1; ) .afs-tpl-error ( /*Error style if template not found*/ color: #b71c1c; ) .afs-perm-error ( /*Error style if not enough rights to view full news*/ background : #e65100; color: #F5F5F5; )
Ready! Don't forget to tweak your JS and CSS code to match your site's design.
Parameters accepted by the module:
The module accepts the following parameters via GET requests:
newsId is a required parameter. The ID of the news to display.
template - path to the module template relative to the current site template folder.
If skin changes are allowed on the site, then the path will be built relative to the currently active site template.
Default: (THEME)/ajax/fullstory
preset - path to file with module settings. Not used by default.
Module settings:
The module settings are stored in a separate file, this is done for the safe transfer of settings and reducing the load on the hosting.
The template format was chosen to store the settings. it can be edited via the admin panel.
When creating settings, the following syntax must be observed:
- Parameters must be written one per line.
- The parameter name and its value must be separated by an equal sign.
The following options are currently available:
fields - fields selected from the database.
The following query fields are available: short_story, full_story, xfields, comm_num, fixed, tags.
You can also use the all field, then all possible news fields from the database will be selected. A similar result will be if you do not pass the preset variable to the module or pass it empty.
cachePrefix - cache prefix created by the module. The default is full. If you want the module cache not to be cleared automatically, you can change this parameter.
.sitemap_static_pages li - element - list of static pages
.sitemap_items li - element - list of articles
.sitemap_categories li - element