Affichage des articles dont le libellé est DLE Module. Afficher tous les articles
Affichage des articles dont le libellé est DLE Module. Afficher tous les articles

lundi 14 novembre 2016

Module Simple SEO v1.3.4 For DLE English

SEO-DLE

Simple SEO v1.3.4 module for dle generates header title and meta tags description, keywords immediately. Also manages the meta robots tag and other meta-data.

Features: Module elementary adjusts for different sections of your website, thereby generating a title element and meta-tag description and keywords on the basis of patterns and no change in the site database. In addition to everything possible to control the indexing using the meta robots.

Description and Setup Simple SEO v1.3.4 module for dle:
First of all, I tell you, this unit has a high quality layout for different versions of CMS DLE, on the appearance of the same. The big plus is that both options are provided encoding windows-1251 and UTF-8 on the stocks with the coding should arise!

Compatible with CMS: DLE 8.2-11.1

Next, you can see screenshots of the admin module Simple SEO v1.3.4!

1. Home module - global setting that allows you to control the module for work.

SIMPLE-SEO-DLE


2. Tab header settings Title - is the most basic and most important section of the module.

SIMPLE-SEO-DLE


3. This screenshot is tab settings meta tag Description - with the help of which it is possible to set up the formation of descriptions for different sections of the site.

SIMPLE-SEO-DLE


4. Tab settings META Keywords tag - this section is rather a formality and is not particularly important, because basically a lot of sense to use the meta keywords tag is not present.

SIMPLE-SEO-DLE


5. There is a tab meta tag settings Robots - if you look good, then we can understand that this is a simplified version of the module
DonBot and it contains the most appropriate settings.

SIMPLE-SEO-DLE


6. In the last tab Other settings are located - in which it was decided to add the ability to confirm ownership of your site to the webmaster Yandex panels, Google, mail.ru, Bing, as well as provide the ability to specify any arbitrary code that is added to the section of your site.

SIMPLE-SEO-DLE


For convenient work with the module Simple SEO v1.0, were created templates for the formation of Title, Description and Keywords. Below is the full list:
%site_title% — title of the site (from the global settings DLE)
%site_name% — the short name of the site (from the global settings DLE)
%page% — adds a prefix for navigation pages, starting from the second
%cat_name% — the name of the category (from the global settings categories DLE)
%cat_title% — title category (from the global settings categories DLE)
%par_cat_name% — the name of the parent category (from the global settings categories DLE)
%par_cat_title% — title of the parent category (from the global settings categories DLE)
%news_name% — the name of the news
%news_id% — ID news
%news_date% — the date of publication of the news. Format dd.mm.yyyy (example — 23.05.2011)
%xfields_NAME% — the contents of the specified additional fields
[xfgiven_FIELD NAME]%xfields_FIELD NAME%[/xfgiven_FIELD NAME] — displays contents of the specified additional fields if it is not empty
[xfnotgiven_FIELD NAME]text[/xfnotgiven_FIELD NAME] — displays text if the content of the specified additional fields blank
%arch_date% — the withdrawal date for the archive:
Date archive for a specific day. Format dd.mm.yyyy (example — 23.05.2011)
Date archive for a specific month. Mm_name yyyy format (example — May 2011)
Date archive for a specific year. Format yyyy (example — 2011)
%tag_name% — the title tag
%symb_name% — character code
%static_name% — the name of the static page
%static_title% — the title of the static page
%username% — user name

A list of these templates, should cover 99% of needs.

How it works using the example of the header title

Consider the example of our site - example.com, which has the category "Templates", in which there are subcategories "templates dle», «Joomla» and «IPB». As well as there are several publications on the website within these categories and subcategories.

Category "Templates", for example, is called "Templates" and meta title "Download dle templates for free." Everyone knows that the title is optimized for search engines and moving the main category page template, the remaining pages 2, 3, 4, etc. They do not need to be promoted, on the title for them to do better than any other matter, which is promoted by page, for one reason, "blurred" the weight of duplication. To do this, on the main category pages you need to use the title header, which is filled in the appropriate field, and for the pagination of pages in the title is recommended to insert the name of the category and the page number.

To implement this, you need to use to set " Overwrite title categories?" Cat_title% tag% , and in the setting "Overwrite title page navigation for categories?" Tags% cat_name%% page% - CoderLaba.com
As a result, we will get promoted to the main page of the category title «Download free templates dle", and pages for pagination «Templates - page X - example.com», where the X - page number, and CoderLaba.com the name of your site.

Just module Simple SEO v.1.0 allows pages to subcategories used in templates or even the name of the parent title headings. For example, the category "Modules" is called "modules" and the title " Download free modules dle ", and added another set of templates from a parent category "Templates" and "Download dle templates for free." Many users are interested in, and how to make so that in title output "sub-name - Category name - The name of the site." It is elementary, like this:% cat_name% -% par_cat_name% -% site_name%.
With these templates, you will be able to use them to generate headlines browsing the full news, in addition to the full news there are tags that display news ID and the date of its publication. For publication entitled «o-Rating v.3» from the category "Modules dle» You can quickly stir up here this headline: «o-Rating v.3, Room 911 - Modules dle from 04.08.2014 - 8dle». To do this, you need to make here takoyshablon: % news_name%, number% news_id% -% cat_name% from news_date%% -% site_name% .

In principle, the instructions for setting up module Simple SEO v.1.0 set out in the smallest details. Now you can easily have the ability to use both of a set of templates and any of its set-top box, such as "Download templates dle besplatnoo without prescription online free then without advertising"

1.3.4
- Added logging sending a developer to debug errors
- Tested working on PHP 777
- Fixed a potential error
- Tested on the DLE 11.1

Download Module Simple SEO v1.3.4 For DLE English


Just SEO - it's elementary

* Module installation:

1. Unpack the archive with the module.
2. Copy the contents of the upload folder or upload_utf8 depending on the coding of your website to Your server.
3. Open /engine/init.php
At the end of the file after

if ($config['allow_tags']) include_once ENGINE_DIR . '/modules/tagscloud.php';

Insert:
require_once ENGINE_DIR . '/inc/siseo/generation.php';

4. Run the file http://example.com/siseo_installer.php and follow his instructions.
5. Rename the file /engine/data/siseo_config.php.dist siseo_config.php and put CHMOD rights 777


* To delete a module:

1. Download the file siseo_uninstaller.php to the server.
2. Run it and follow the instructions.
3. Don't forget to remove the file siseo_uninstaller.php.
4. Open /engine/init.php
At the end of the file remove the line:

require_once ENGINE_DIR . '/inc/siseo/generation.php';

samedi 12 novembre 2016

Module LinkEnso PRO v2.3 NEW relinking for DLE Datalife Engine English

LinkEnso PRO

UP - Filled updated module with doctored CNC etc..
Module for the Ring-linking of news on the site.
Displays a news block containing images, headers and text announcements with reference to the previous/next news of the site.
Features: Visual code generator to insert, setting the number of displayed blocks, selection schemes and directions of linking. Fine tuning of the output header-links, images, announcements. Using tpl-templates to generate a list and a particular element.

Original title: LinkEnso PRO
Version of the engine: 9.x - 10.6
Current version: 2.3

Description and configuration of the module LinkEnso PRO
Some settings of the module you should be known of the first version
if not, then in front of each item has a clue. But added and
new setting for selecting image source (full/brief news
or extra box) and cut a short announcement.

Download :Module LinkEnso PRO v2.3  for DLE Datalife Engine English

samedi 1 octobre 2016

Module DLE Rapid subscribe to comments

Module DLE Rapid subscribe to comments


Introducing Module DLE Rapid subscribe to comments english version, after installation to subscribe to the comments will be available only when adding a comment. A simple module for the DLE «Quick subscribe to comments" replaces the standard engine algorithm Datalife Engine , so that you can subscribe to comments only by adding a comment. Dle This module complements the functionality and correct this omission.

On based hack / module "Quick subscribe to comments" users will be able to subscribe to messages just in one click. Actually the example of the execution of this button you can look at the author's website.

Installing the Quick subscribe to comments

The engine/ajax folder, create a file with the contents subscribe.php:

<?php
/*
Subscribe to comments
Author: Sander
Website: http://sandev.pro/
*/
@error_reporting ( E_ALL ^ E_WARNING ^ E_NOTICE );
@ini_set ( 'display_errors', true );
@ini_set ( 'html_errors', false );
@ini_set ( 'error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE );

define( 'DATALIFEENGINE', true );
define( 'ROOT_DIR', substr( dirname( __FILE__ ), 0, -12 ) );
define( 'ENGINE_DIR', ROOT_DIR . '/engine' );

include ENGINE_DIR . '/data/config.php';
date_default_timezone_set ( $config['date_adjust'] );

require_once ENGINE_DIR . '/classes/mysql.php';
require_once ENGINE_DIR . '/data/dbconfig.php';
require_once ENGINE_DIR . '/modules/functions.php';
dle_session();
$user_group = get_vars( "usergroup" );
if( ! $user_group ) {
$user_group = array ();
$db->query( "SELECT * FROM " . USERPREFIX . "_usergroups ORDER BY id ASC" );
while ( $row = $db->get_row() ) {
$user_group[$row['id']] = array ();
foreach ( $row as $key => $value ) $user_group[$row['id']][$key] = stripslashes($value);
}
set_vars( "usergroup", $user_group );
$db->free();
}

require_once ENGINE_DIR . '/modules/sitelogin.php';
if(!$is_logged) $member_id['user_group'] = 5;

$post_id = intval($_POST['post_id']);
if($post_id<1) die("{"error":"Undefined news for subscriptions"}");

if(!$user_group[$member_id['user_group']]['allow_subscribe']) die("{"error":"You can not use your subscription"}");

$row = $db->super_query( "SELECT id, allow_comm FROM " . PREFIX . "_post WHERE id = $post_id" );
if(!$row['id']) die("{"error":"Publication can not be found or has been removed"}");
if(!$row['allow_comm']) die("{"error":"Comments on this publication are forbidden"}");

$row = $db->super_query( "SELECT user_id, name, email, hash FROM " . PREFIX . "_subscribe WHERE news_id = $post_id AND user_id = {$member_id['user_id']}" );
if($row['user_id']){
//un-subscribe
$db->query( "DELETE FROM " . PREFIX . "_subscribe WHERE news_id = $post_id AND user_id = {$member_id['user_id']}" );
echo "{"html":"You have successfully unsubscribed. Subscribe again?"}";
}else{
//sign
if(function_exists('openssl_random_pseudo_bytes')) $stronghash = md5(openssl_random_pseudo_bytes(15));
else $stronghash = md5(uniqid( mt_rand(), TRUE ));
$salt = str_shuffle($stronghash);
$s_hash = "";
for($i = 0; $i < 10; $i ++) $s_hash .= $salt{mt_rand( 0, 31 )};
$s_hash = md5($s_hash);
$db->query( "INSERT INTO " . PREFIX . "_subscribe (user_id, name, email, news_id, hash) values ('{$member_id['user_id']}', '{$member_id['name']}', '{$member_id['email']}', '{$post_id}', '{$s_hash}')" );
echo "{"html":"You have successfully subscribed. Unsubscribe?"}";
}


JS code to insert into any pattern connected to the js file

$(document).on('click','.unsubcomm',function(){
ShowLoading();
var $this = $(this);
$.post(dle_root+"engine/ajax/subscribe.php",{post_id:$('#post_id').val()},function(d){
HideLoading();
if(d.error) DLEalert(d.error,"Error");
else $this.html(d.html);
},"json");
});


In addcomments.tpl template file or fullstory.tpl at the desired location to insert the code:

[not-group=5]<span class="unsubcomm">Subscribe to comments</span>[/not-group]
Availability behalf unsubcomm class - is necessary.

If desired, use the buttons Style:
the CSS

.unsubcomm{
display: inline-block;
border: 1px solid #ccc;
padding: 0 20px;
height: 26px;
font: normal 12px/26px Verdana;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
cursor: pointer;
color: #555;
background: #e5e5e5 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAIAAABi9+OQAAAAI0lEQVQImWP49esXEwMDA9O/f/+YGBgYmP7//4+Vj0ucTHUA3nos7QvvyugAAAAASUVORK5CYII=) repeat-x 0 0;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.unsubcomm:hover{
color: #222;
background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAIAAABi9+OQAAAAG0lEQVQImWN49+4dEwMDAxMjIyNZNBMTEzn6AGFhAzKAZ4ckAAAAAElFTkSuQmCC) repeat-x 0 0;
}
.unsubcomm:active{
border-color: #fc0;
}
Source: sandev pro
Regards,
Oleg aka Sander
To support the standard unsubscribe via e-mail. You can put any hash algorithm, but why, Ctrl-> C, Ctrl-> V's easier :) Download dle modules on our portal as a module Quick subscribe to comments for the DLE in the archive

lundi 4 janvier 2016

Module iChat 7.0 English Compatible DLE Versions 10.6 10.5 10.4

Module iChat 7.0  English
iChat 7.0  English Compatible DLE Versions 10.6 10.5 10.4

Module iChat 7.0 for DLE English. This module on your server to use must have the support of SQLite3.

* The load on your site with the cache feature will minimize.
* In the message Capability Visitors
* With the new PHP version compatibility (PHP 5.3, 5.4, 5.5)
* Gravatar support SQLite3 and PHP 5.4 support has been added. Use the code below and place you want to show


{include file="engine/modules/iChat/show.php"}


Button code "Chat in new window

<input class="bbcodes" style="font-size: 11px; float: left;" title="Chat in new windowonclick="window.open('/engine/modules/iChat/window.php', '_iChat', 'toolbar=0,location=0,status=0, left=0, top=0, menubar=0,scrollbars=yes,resizable=0,width=620,height=605');" type="button" value="Chat in new window" />


Module Version7.0 (30.05.2015)



jeudi 3 décembre 2015

Module SimpleBB 2.1 Dle English


Module 2.1 SimpleBB - a module for creating a full-fledged online site running CMS DataLife Engine 10.3. The main difference between the module from the engine now that the module uses a common database of users and is tightly integrated with the engine DLE.

The module is designed for offline SimpleBB dle simplebb Default theme is ready for use. Module with lateral threads have been made several improvements. Topics icons used in the library is used to fontaweso, library integrated into the file CSS. For this reason, download and install the module from the page GitHub will be beneficial to you.

You have the flexibility to design a theme and in order to be able to easily integrate into their own theme with a separate file CSS, we have developed so that you can put the block left or right.


10.6 adaptations have been made and some parts have been rewritten.
Selected story and a complete set of templates has been made for the category admin panel.
Forums were made necessary amendments to the end of the last extension.
Moderation for approval has been made to correct the error.
To appear in the Subject Content error has been corrected.
Adding to the form sub-forum was held TPL file.
After adding back the transaction at issue was set to go to the link to the forum.
The style has been agreed and fixed several minor bugs.

What's new SimpleBB 2.1 of 10/13/2015:
- 10.5 and 10.6 have been adapted and rewritten some details.
- Source language file was passed to use.
- System Settings Admin panel on the left on the page.
- SQL optimization option is the default, and are removed from the admin panel.
- Custom template files to display and add comments to a user forum support added.
- Editing operations decreased and were made to optimize the code.
- Added the ability to see the sub-forums in the category.
- Arrangements were made with the default theme.

General comments:

Hierarchy
Forums by category and subcategory of the depth is set to 2. 1 category for depth, depth of 2 call the forum.
The hierarchy thus: simplebb> Categories> Forums> Topics
The theme of the template file with the same sequence [Depth = 1], [Depth = 2], [Depth = 3], [depth = 4] were determined.
DLA uses a system of categories, which can make all the preparations for.

Operating System
We select major categories, one for the forum. This category has sub-categories, which define a special .TPL.
Only Homepage /forum/*.tpl files in the theme to use.
When you select a category to access the topics of the forum, the forum gathered by the system will be listed instead.

Options:
Using subdomains
Simplebb supports subdomain. However, the measures were necessary management and SEO.
Using the subdomain subdomain included all forums entered into links automatically redirected to a subdomain.
Orientation, etc. Errors that may arise in connection with the canonical link has been identified. Thus, each subject in the forum of the canonical metadata will be available.

It is necessary to do additional steps:
Htaccess file, you must add the code (for example, use DLE.NET.T. "Forum" was written for the subdomain.)

# Forum redirect
RewriteCond %{HTTP_HOST} ^forum.dle.net.tr$ [NC]
RewriteRule ^$ index.php?do=cat&category=forum [L,NC]

DLETR.CO spelling for example.
RewriteCond %{HTTP_HOST} ^forum.dletr.com$ [NC]


After that, you must additionally create a subdomain with CPanel.

Stages and not indexed by search engines against the possibility of problems. Dynamic add a subdomain subdomain, rather than just going to use. If this subdomain will use the same name for the category, use the forum.

SQL Optimization
Previously, the system was reduced by too many requests. Total is ready to house 2-3 requests. Global variables collect information about categories of aid.

Remove:

Setting up:
- You must remove the previous version. (V1.0-beta users only)
- Your site before you begin the installation, we recommend that you yedekeleme.
- Create categories in order to be used for the forum.
- Determined for each information online and enter the custom template files. Please specify exactly the part of the following templates.
- If all the categories of the forum and set completely. Now all files are available for download to your site with the installation.
- Run for install_module.php installation. XML configuration is done automatically with the system. Thus, all the files belonging to the system and archive files for the original installation / backup / directory is stored.
- Immediately after the installation by entering the admin panel "System Settings" are available.
- If you use a subdomain found in the description above then activate the "Enable Subdomains" Please read and take the title.
- How can you get access to any of the categories on your site / forum you can get. (If you appear at the forum, which URL.
- Main.tpl file by opening the plug at the top of your topic, add the following code:

[forum]<link media="screen" href="{THEME}/forum/css/simplebb.css" type="text/css" rel="stylesheet" />[/forum]


Update (v1.0 => v1.1):
* Do not install the unit eliminating the hassle will be your choice. But if you can not put the next step.
* All to copy the files, perform a typical installation.

elevator
* If you want to install the system to delete / backup directory, open the backup file, which is downloaded to your site enough.

Templates and Tags:
Forum is working in total 4 .tpl file.
main.tpl, stats.tpl and post.tpl selected for each forum, threads.tpl files.

[forum: main] Forum Homepage [/ forum: main]
[forum: cat] Category page [/ forum: cat]
[forum: forum] Home Forum [/ forum: forum]
[forum: inside] Category page or forum [/ forum: inside]
[forum: thread] page topics in the forum [/ forum: thread]
[forum] on any page of the forum [/ forum]

{forum-stats}          : Forum statistics ( forum/stats.tpl changed from the template )
{category echo="id"} : the current category ID (show.short page will not work)
{category echo="name"} : The current name of the category (show.short page will not work)
{page-title} : show.full in the page header ({name}) can be used instead.
{count_all} : Category pages that are categorized article shows that many
{user-group} : is a group of people show.full. Panel displays with the specified style.
{avatar} : show.full pulls the URL in the user's avatar.
{user-group-icon} : user group icon in show.full.
{forum-cats} : forum was available in custom subcategories s list

Extensions are used: Application number 163, application number 45, number 41 Appendix
addpost.tpl used tags
addpost.tpl addnews.tpl image file may be the same, but you need to cancel a category.
This template can be used to tag the file, select {cat} is the name of these categories:

Translation:
- English / English: DLEStarter
- Russian / Russian: mrb4el and Corsair
- Ukrainian / Ukrainian: Corsair

Versions:
v1.0, DLE 10.2, 10.3
v1.1, DLE 10.2, 10.3
v2.0, DLE 10.5
v2.1, DLE 10.5, 10.6

Version DLE: 10.2-10.5
Developer: Mehmet Hanoglu
Design: Kadir Hanoğlu
Website: dle.net.tr
Languages: English, Russian, Ukrainian
License: MIT License


Demo
Details
GitHub SimpleBB

simplebb-2.1-rusr.zip

mardi 3 février 2015

Module Country Filter v1.0 [DLE English]

Module Country Filter v1.0 - Datalife Engine English

The module adds functionality DLE content filtering depending on the country of the visitor. Filtering is based on a database of IP addresses. Database of IP addresses from 01.01.2015 with service ip2location.com

The module adds tags:
[Country = RU, UA] display unit only for visitors from Russia and Ukraine [/ Country]
[not-Country = RU, UA] display unit for all visitors, except of Russia and Ukraine [/ not-country]

Author: MSW
Версия DLE: 9.6, 9.7, 9.8, 10.0, 10.1, 10.2, 10.3
Support Site: 0-web.ru

Download Country-Filter-v.1.0.zip

================================================== ===
  Module: Country Filter
  Version: 1.0
-------------------------------------------------- ---
  Author: MSW
  Website: https://0-web.ru/
-------------------------------------------------- ---
  Copyright (c) 2015 MSW
================================================== ===
  This code is copyrighted
================================================== ===

1. Load dump the database through phpmyadmin.

2. Open files:
- /engine/modules/show.full.php
- /engine/modules/show.short.php
- /engine/modules/show.custom.php

Search for:
================================================== ===
if (stripos ( $tpl->copy_template, "{image-" ) !== false) {
================================================== ===

Add above:
================================================== ===
# ****** Country Filter *** srart ****** #
if (strpos ( $tpl->result['content'], "[country=" ) !== false) {
$tpl->result['content'] = preg_replace_callback ( "#\[(country)=(.+?)\](.*?)\[/country\]#is", 'check_country', $tpl->result['content'] );
}
if (strpos ( $tpl->result['content'], "[not-country=" ) !== false) {
$tpl->result['content'] = preg_replace_callback ( "#\[(not-country)=(.+?)\](.*?)\[/not-country\]#is", 'check_country', $tpl->result['content'] );
}
# ****** Country Filter *** stop ****** #
================================================== ===

3. File: /engine/modules/functions.php
Find:
================================================== ===
function formatsize($file_size) {
================================================== ===

Add above:
================================================== ===
# ****** Country Filter *** srart ****** #
function check_country( $matches=array() ) {
global $member_id;
$block = $matches[3];
$country = explode( ',', $matches[2] );
if( $matches[1] == "country" ) {
if( ! in_array( $member_id['user_country'], $country ) ) return "";
} else {
if( in_array( $member_id['user_country'], $country ) ) return "";
}
return $block;
}
# ****** Country Filter *** stop ****** #
================================================== ===

4. File: /engine/modules/sitelogin.php
Find:
================================================== ===
?>
================================================== ===

Add above:
================================================== ===
# ****** Country Filter *** srart ****** #
if( $_IP != $_SESSION['dle_user_ip'] ) {
$_IP_COD = sprintf( "%u", ip2long( $_IP ) );
$_IP_SQL = $db->super_query( "SELECT country_code FROM " . PREFIX . "_ip2location1 WHERE ip_from <= '{$_IP_COD}' AND ip_to >= '{$_IP_COD}'" );
if($_IP_SQL['country_code']) {
$dle_user_country = $_IP_SQL['country_code'];
} else {
$dle_user_country = "no";
}
$_SESSION['dle_user_ip'] = $_IP;
$_SESSION['dle_user_country'] = $dle_user_country;
}
$member_id['user_country'] = $_SESSION['dle_user_country'];
# ****** Country Filter *** stop ****** #
================================================== ===

5. File: /engine/classes/templates.class.php
Find:
================================================== ===
if (strpos ( $this->template, "[group=" ) !== false) {
$this->template = preg_replace_callback ( "#\[(group)=(.+?)\](.*?)\[/group\]#is", array( &$this, 'check_group'), $this->template );
}
================================================== ===

Add above:
================================================== ===
# ****** Country Filter *** srart ****** #
if (strpos ( $this->template, "[country=" ) !== false) {
$this->template = preg_replace_callback ( "#\[(country)=(.+?)\](.*?)\[/country\]#is", 'check_country', $this->template );
}
if (strpos ( $this->template, "[not-country=" ) !== false) {
$this->template = preg_replace_callback ( "#\[(not-country)=(.+?)\](.*?)\[/not-country\]#is", 'check_country', $this->template );
}
# ****** Country Filter *** stop ****** #
================================================== ===

Find:
================================================== ===
if (strpos ( $template, "[group=" ) !== false) {
$template = preg_replace_callback ( "#\[(group)=(.+?)\](.*?)\[/group\]#is", array( &$this, 'check_group'), $template );
}
================================================== ===

Add above:
================================================== ===
# ****** Country Filter *** srart ****** #
if (strpos ( $template, "[country=" ) !== false) {
$template = preg_replace_callback ( "#\[(country)=(.+?)\](.*?)\[/country\]#is", 'check_country', $template );
}
if (strpos ( $template, "[not-country=" ) !== false) {
$template = preg_replace_callback ( "#\[(not-country)=(.+?)\](.*?)\[/not-country\]#is", 'check_country', $template );
}
# ****** Country Filter *** stop ****** #
================================================== ===

6. Tags can be used in the text of news and template files:
================================================== ===
[country = RU, UA] display unit only for visitors from Russia and Ukraine [/ country]
[not-country = RU, UA] display unit for all visitors, except of Russia and Ukraine [/ not-country]
================================================== ===

Some country code that I know
"AF" = AFGHANISTAN
"AL" = ALBANIA
"DZ" = ALGERIA
"AS" = AMERICAN SAMOA
"AD" = ANDORRA
"AO" = ANGOLA
"AI" = ANGUILLA
"AQ" = ANTARCTICA
"AG" = ANTIGUA AND BARBUDA
"AR" = ARGENTINA
"AM" = ARMENIA
"AW" = ARUBA
"AP" = ASIA PACIFIC
"AU" = AUSTRALIA
"AT" = AUSTRIA
"AZ" = AZERBAIJAN
"BS" = BAHAMAS
"BH" = BAHRAIN
"BD" = BANGLADESH
"BB" = BARBADOS
"BY" = BELARUS
"BE" = BELGIUM
"BZ" = BELIZE
"BJ" = BENIN
"BM" = BERMUDA
"BT" = BHUTAN
"BO" = BOLIVIA
"BA" = BOSNIA AND HERZEGOWINA
"BW" = BOTSWANA
"BV" = BOUVET ISLAND
"BR" = BRAZIL
"IO" = BRITISH INDIAN OCEAN TERRITORY
"BN" = BRUNEI DARUSSALAM
"BG" = BULGARIA
"BF" = BURKINA FASO
"BI" = BURUNDI
"KH" = CAMBODIA
"CM" = CAMEROON
"CA" = CANADA
"CV" = CAPE VERDE
"KY" = CAYMAN ISLANDS
"CF" = CENTRAL AFRICAN REPUBLIC
"TD" = CHAD
"CL" = CHILE
"CN" = CHINA
"CX" = CHRISTMAS ISLAND
"CC" = COCOS (KEELING) ISLANDS
"CO" = COLOMBIA
"KM" = COMOROS
"CG" = CONGO
"CD" = CONGO, THE DEMOCRATIC REPUBLIC OF THE
"CK" = COOK ISLANDS
"CR" = COSTA RICA
"CI" = COTE D'IVOIRE
"HR" = CROATIA
"CU" = CUBA
"CY" = CYPRUS
"CZ" = CZECH REPUBLIC
"CS" = CZECHOSLOVAKIA (FORMER)
"DK" = DENMARK
"DJ" = DJIBOUTI
"DM" = DOMINICA
"DO" = DOMINICAN REPUBLIC
"TP" = EAST TIMOR
"EC" = ECUADOR
"EG" = EGYPT
"SV" = EL SALVADOR
"GQ" = EQUATORIAL GUINEA
"ER" = ERITREA
"EE" = ESTONIA
"ET" = ETHIOPIA
"EU" = EUROPEAN UNION
"FK" = FALKLAND ISLANDS (MALVINAS)
"FO" = FAROE ISLANDS
"FJ" = FIJI
"FI" = FINLAND
"FR" = FRANCE
"FX" = FRANCE, METROPOLITAN
"GF" = FRENCH GUIANA
"PF" = FRENCH POLYNESIA
"TF" = FRENCH SOUTHERN TERRITORIES
"GA" = GABON
"GM" = GAMBIA
"GE" = GEORGIA
"DE" = GERMANY
"GH" = GHANA
"GI" = GIBRALTAR
"GB" = GREAT BRITAIN
"GR" = GREECE
"GL" = GREENLAND
"GD" = GRENADA
"GP" = GUADELOUPE
"GU" = GUAM
"GT" = GUATEMALA
"GN" = GUINEA
"GW" = GUINEA-BISSAU
"GY" = GUYANA
"HT" = HAITI
"HM" = HEARD ISLAND AND MCDONALD ISLANDS
"VA" = HOLY SEE (VATICAN CITY STATE)
"HN" = HONDURAS
"HK" = HONG KONG
"HU" = HUNGARY
"IS" = ICELAND
"IN" = INDIA
"ID" = INDONESIA
"IR" = IRAN, ISLAMIC REPUBLIC OF
"IQ" = IRAQ
"IE" = IRELAND
"IL" = ISRAEL
"IT" = ITALY
"JM" = JAMAICA
"JP" = JAPAN
"JO" = JORDAN
"KZ" = KAZAKSTAN
"KE" = KENYA
"KI" = KIRIBATI
"KP" = KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF
"KR" = KOREA, REPUBLIC OF
"KW" = KUWAIT
"KG" = KYRGYZSTAN
"LA" = LAO PEOPLE'S DEMOCRATIC REPUBLIC
"LV" = LATVIA
"LB" = LEBANON
"LS" = LESOTHO
"LR" = LIBERIA
"LY" = LIBYAN ARAB JAMAHIRIYA
"LI" = LIECHTENSTEIN
"LT" = LITHUANIA
"LU" = LUXEMBOURG
"MO" = MACAU
"MK" = MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF
"MG" = MADAGASCAR
"MW" = MALAWI
"MY" = MALAYSIA
"MV" = MALDIVES
"ML" = MALI
"MT" = MALTA
"MH" = MARSHALL ISLANDS
"MQ" = MARTINIQUE
"MR" = MAURITANIA
"MU" = MAURITIUS
"YT" = MAYOTTE
"MX" = MEXICO
"FM" = MICRONESIA, FEDERATED STATES OF
"MD" = MOLDOVA, REPUBLIC OF
"MC" = MONACO
"MN" = MONGOLIA
"MS" = MONTSERRAT
"MA" = MOROCCO
"MZ" = MOZAMBIQUE
"MM" = MYANMAR
"NA" = NAMIBIA
"NR" = NAURU
"NP" = NEPAL
"NL" = NETHERLANDS
"AN" = NETHERLANDS ANTILLES
"NC" = NEW CALEDONIA
"NZ" = NEW ZEALAND
"NI" = NICARAGUA
"NE" = NIGER
"NG" = NIGERIA
"NU" = NIUE
"NF" = NORFOLK ISLAND
"MP" = NORTHERN MARIANA ISLANDS
"NO" = NORWAY
"OM" = OMAN
"PK" = PAKISTAN
"PW" = PALAU
"PS" = PALESTINIAN TERRITORY, OCCUPIED
"PA" = PANAMA
"PG" = PAPUA NEW GUINEA
"PY" = PARAGUAY
"PE" = PERU
"PH" = PHILIPPINES
"PN" = PITCAIRN
"PL" = POLAND
"PT" = PORTUGAL
"PR" = PUERTO RICO
"QA" = QATAR
"RE" = REUNION
"RO" = ROMANIA
"SU" = RUSSIAN FEDERATION
"RW" = RWANDA
"SH" = SAINT HELENA
"KN" = SAINT KITTS AND NEVIS
"LC" = SAINT LUCIA
"PM" = SAINT PIERRE AND MIQUELON
"VC" = SAINT VINCENT AND THE GRENADINES
"WS" = SAMOA
"SM" = SAN MARINO
"ST" = SAO TOME AND PRINCIPE
"SA" = SAUDI ARABIA
"SN" = SENEGAL
"YU" = SERBIA AND MONTENEGRO
"SC" = SEYCHELLES
"SL" = SIERRA LEONE
"SG" = SINGAPORE
"SK" = SLOVAKIA
"SI" = SLOVENIA
"SB" = SOLOMON ISLANDS
"SO" = SOMALIA
"ZA" = SOUTH AFRICA
"GS" = SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS
"ES" = SPAIN
"LK" = SRI LANKA
"SD" = SUDAN
"SR" = SURINAME
"SJ" = SVALBARD AND JAN MAYEN
"SZ" = SWAZILAND
"SE" = SWEDEN
"CH" = SWITZERLAND
"SY" = SYRIAN ARAB REPUBLIC
"TW" = TAIWAN, PROVINCE OF CHINA
"TJ" = TAJIKISTAN
"TZ" = TANZANIA, UNITED REPUBLIC OF
"TH" = THAILAND
"TG" = TOGO
"TK" = TOKELAU
"TO" = TONGA
"TT" = TRINIDAD AND TOBAGO
"TN" = TUNISIA
"TR" = TURKEY
"TM" = TURKMENISTAN
"TC" = TURKS AND CAICOS ISLANDS
"TV" = TUVALU
"UG" = UGANDA
"UA" = UKRAINE
"AE" = UNITED ARAB EMIRATES
"UK" = UNITED KINGDOM
"US" = UNITED STATES
"UM" = UNITED STATES MINOR OUTLYING ISLANDS
"UY" = URUGUAY
"UZ" = UZBEKISTAN
"VU" = VANUATU
"VE" = VENEZUELA
"VN" = VIET NAM
"VG" = VIRGIN ISLANDS, BRITISH
"VI" = VIRGIN ISLANDS, U.S.
"WF" = WALLIS AND FUTUNA
"EH" = WESTERN SAHARA
"YE" = YEMEN
"ZM" = ZAMBIA
"ZW" = ZIMBABWE

samedi 1 novembre 2014

MODULE Chats DLE 9.X - 10.X - English

Description:

Revised, redesigned and adapted to DLE 10.3 chat module. Simple functional, is all that is necessary, and no excess.

Functionality of the site:
1. Writing messages in chat with the conclusion avatars. It is possible to write, referring to a specific user. Compatible bb tags, smiles, colors, fonts .. The administrator or moderator can delete the message.
2. There is a setting in the admin chat.
3. Ban users
4. Filter words with replacement
5. Save the logs and view them
6. Cleaning of all messages in the chat.
What I actually corrected the errors of:
1. Fixed a bug where the avatar appeared for a second, then becomes a bat picture.
2. After clicking "Send" the message is not sent until you press enter.
3. A couple of small bugs in the admin.
4. Fixed auto-update the chat.


Installing

1. Pour the files on the server
2. Align right folder engine \ chat \ data and files in it, as well as on the backup / chat / - 777
3. Open index.php
Find:
require_once ROOT_DIR . '/engine/init.php'; 
Add below:
require_once ENGINE_DIR . '/chat/chat_block.php'; 
Find:
 $tpl->set ( '{speedbar}', $tpl->result['speedbar'] );
Add below:
 $tpl->set ( '{chat_block}', $tpl->result['chat_block'] );
4. Open engine\engine.php
Find:
case "comments" :
include ENGINE_DIR . '/modules/comments.php';
break;
Add below:
 case "chat" : 
include ENGINE_DIR.'/chat/chat.php';
break;
5. Start the installation by clicking on the link http: //yoursite.com/chat.install.php

6. Open .htaccess
Find:
RewriteEngine On 
Add below:
 # For Chat
RewriteRule ^chat(/?)+$ index.php?do=chat
7. If you would like to chat was not only on a separate page at the following address: http: //yoursite.com/chat/
but also on the main page, insert tag {chat_block} in main.tpl before or after {content} tag to your discretion.

8. If you want to auto-cleaning the chat, you can set the crown on cron_job.php

9. Delete file chat.install.php

Title: Module chat
CMS: DLE 9.x - 10.x
Module Version: 1.0

Appearance


Download MODULE Chats DLE 9.X - 10.X - English

dimanche 26 octobre 2014

Module DLE Mini Statistics

Module DLE Mini Statistics
The module allows you to view the statistics for the mini users for a certain period.

For installation, you must download the file from the archive to a folder userstat.php engine / modules / module and connect you with the right parameters.


Such variations are possible:
range (Range) ...
- Statistics of the time interval:
5 days: range = 5 & per = day
7 weeks: range = 7 & per = week
4 months: range = 4 & per = month
1 year: range = 1 & per = year

per (Period) ...
- Period: hour, day, week, month, year

last (latest) ...
- Values: abs (the last today, yesterday), int (during 24 hours)

Download Module DLE Mini Statistics

Examples of connection: Output per day:
{include file="engine/modules/userstat.php?range=1&per=day&last=abs"}
Output data for the last 24 hours:
{include file="engine/modules/userstat.php?range=1&per=day&last=int"}
Output data from the last 2 weeks:
{include file="engine/modules/userstat.php?range=2&per=week&last=int"}
Output data for the last 3 months:
{include file="engine/modules/userstat.php?range=3&per=month&last=abs"}
The report will be made to decrease the period, for example 03/04/2014 23:59:59 - 01/03/2014 23:59:59. Version DLE: 9.6-10.3
Author: MaRZoCHi

Mobile Detect DLE Module

Mobile Detect DLE Module

The new release Dle 10.3 appeared quite interesting innovation, namely the automatic detection of devices from which to browse the site. And depending on the device can be displayed or hide certain content. For this we introduce new tags [smartphone] text [/ smartphone] and [not-smartphone] text [/ not-smartphone], [tablet] text [/ tablet] and [not-tablet] text [/ not-tablet], and as well [desktop] text [/ desktop] and [not-desktop] text [/ not-desktop]. Let us try to apply this innovation to version 10.2.


Details for tags:
[smartphone] text [/ smartphone], which displays the text enclosed in them, if the site is viewed using a smartphone, and the tags [not-smartphone] text [/ not-smartphone], which displays the text enclosed in them, if the site visitors are not visible from the smartphone. These tags are global and can be used in all template files. Thus, you can flexibly adjust the content output of your site, depending on the visitor of the device, for example, control the output devices for advertising and more.

[tablet] text [/ tablet], which displays the text enclosed in them, if the site is viewed using the tablet, as well as tag [not-tablet] text [/ not-tablet], which displays the text enclosed in them, if the site visitors are not visible using the tablet. These tags are global and can be used in all template files. Thus, you can flexibly adjust the content output of your site, depending on the visitor of the device, for example, control the output devices for advertising and more.

[desktop] text [/ desktop], which displays the text enclosed in them, if the site is viewed using a desktop browser (desktop computers, laptops), and tags [not-desktop] text [/ not-desktop], which displays the text enclosed in them, if the site visitor is not visible using a desktop browser. These tags are global and can be used in all template files. Thus, you can flexibly adjust the content output of your site, depending on the visitor of the device, for example, control the output devices for advertising and more.

Version DLE: 10.2
Source: dle-faq.ru
Author modifications: vitnet

Download Module DLE Mobile detect

Installation
1. Download the following archive file mobile.detect.php and unpack it in a folder /engine/classes/.
2. Open the index.php file and find:
require_once ENGINE_DIR . '/init.php';
Add below:
require_once ENGINE_DIR . '/classes/mobile.detect.php';
$detect = new Mobile_Detect;
Find:
if (stripos ( $tpl->copy_template, "{custom" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\{custom(.+?)\\}#i", "custom_print", $tpl->copy_template );
}
Add below:
if (stripos ( $tpl->copy_template, "[smartphone" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(smartphone)\\](.*?)\\[/smartphone\\]#is", "check_smartphone", $tpl->copy_template );
}
if (stripos ( $tpl->copy_template, "[not-smartphone" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(not-smartphone)\\](.*?)\\[/not-smartphone\\]#is", "check_smartphone", $tpl->copy_template );
}
if (stripos ( $tpl->copy_template, "[tablet" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(tablet)\\](.*?)\\[/tablet\\]#is", "check_tablet", $tpl->copy_template );
}
if (stripos ( $tpl->copy_template, "[not-tablet" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(not-tablet)\\](.*?)\\[/not-tablet\\]#is", "check_tablet", $tpl->copy_template );
}
if (stripos ( $tpl->copy_template, "[desktop" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(desktop)\\](.*?)\\[/desktop\\]#is", "check_desktop", $tpl->copy_template );
}
if (stripos ( $tpl->copy_template, "[not-desktop" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(not-desktop)\\](.*?)\\[/not-desktop\\]#is", "check_desktop", $tpl->copy_template );
}
3. Open File engine/classes/templates.class.php and find:
if (strpos ( $this->template, "[aviable=" ) !== false) {
$this->template = preg_replace_callback ( "#\[(aviable)=(.+?)\](.*?)\[/aviable\]#is", array( &$this, 'check_module'), $this->template );
}
Add above:
if (strpos ( $this->template, "[smartphone" ) !== false) {
$this->template = preg_replace_callback ( "#\[(smartphone)\](.*?)\[/smartphone\]#is", array( &$this, 'check_smartphone'), $this->template );
}

if (strpos ( $this->template, "[not-smartphone" ) !== false) {
$this->template = preg_replace_callback ( "#\[(not-smartphone)\](.*?)\[/not-smartphone\]#is", array( &$this, 'check_smartphone'), $this->template );
}

if (strpos ( $this->template, "[tablet" ) !== false) {
$this->template = preg_replace_callback ( "#\[(tablet)\](.*?)\[/tablet\]#is", array( &$this, 'check_tablet'), $this->template );
}

if (strpos ( $this->template, "[not-tablet" ) !== false) {
$this->template = preg_replace_callback ( "#\[(not-tablet)\](.*?)\[/not-tablet\]#is", array( &$this, 'check_tablet'), $this->template );
}

if (strpos ( $this->template, "[desktop" ) !== false) {
$this->template = preg_replace_callback ( "#\[(desktop)\](.*?)\[/desktop\]#is", array( &$this, 'check_desktop'), $this->template );
}

if (strpos ( $this->template, "[not-desktop" ) !== false) {
$this->template = preg_replace_callback ( "#\[(not-desktop)\](.*?)\[/not-desktop\]#is", array( &$this, 'check_desktop'), $this->template );
}
Find:
if (strpos ( $template, "[aviable=" ) !== false) {
$template = preg_replace_callback ( "#\[(aviable)=(.+?)\](.*?)\[/aviable\]#is", array( &$this, 'check_module'), $template );
}
Add above:
if (strpos ( $template, "[smartphone" ) !== false) {
$template = preg_replace_callback ( "#\[(smartphone)\](.*?)\[/smartphone\]#is", array( &$this, 'check_smartphone'), $template );
}

if (strpos ( $template, "[not-smartphone" ) !== false) {
$template = preg_replace_callback ( "#\[(not-smartphone)\](.*?)\[/not-smartphone\]#is", array( &$this, 'check_smartphone'), $template );
}

if (strpos ( $template, "[tablet" ) !== false) {
$template = preg_replace_callback ( "#\[(tablet)\](.*?)\[/tablet\]#is", array( &$this, 'check_tablet'), $template );
}

if (strpos ( $template, "[not-tablet" ) !== false) {
$template = preg_replace_callback ( "#\[(not-tablet)\](.*?)\[/not-tablet\]#is", array( &$this, 'check_tablet'), $template );
}

if (strpos ( $template, "[desktop" ) !== false) {
$template = preg_replace_callback ( "#\[(desktop)\](.*?)\[/desktop\]#is", array( &$this, 'check_desktop'), $template );
}

if (strpos ( $template, "[not-desktop" ) !== false) {
$template = preg_replace_callback ( "#\[(not-desktop)\](.*?)\[/not-desktop\]#is", array( &$this, 'check_desktop'), $template );
}
Find:
function clear_url_dir($var) {
if ( is_array($var) ) return "";

$var = str_ireplace( ".php", "", $var );
$var = str_ireplace( ".php", ".ppp", $var );
$var = trim( strip_tags( $var ) );
$var = str_replace( "\", "/", $var );
$var = preg_replace( "/[^a-z0-9/_-]+/mi", "", $var );
$var = preg_replace( '#[/]+#i', '/', $var );
return $var;
}
Add below:
function check_smartphone( $matches = array() ) {
global $detect;

$action = $matches[1];
$block = $matches[2];

if( $action == "smartphone" ) {
if( $detect->isMobile() && !$detect->isTablet() ) {
return $block;
}
} elseif( $action == "not-smartphone" ) {
if( !$detect->isMobile() || $detect->isTablet() ) {
return $block;
}
} else return "";
}

function check_tablet( $matches = array() ) {
global $detect;
$action = $matches[1];
$block = $matches[2];

if( $action == "tablet" ) {
if( $detect->isTablet() ) {
return $block;
}
} elseif( $action == "not-tablet" ) {
if( !$detect->isTablet() ) {
return $block;
}
} else return "";
}

function check_desktop( $matches = array() ) {
global $detect;
$action = $matches[1];
$block = $matches[2];

if( $action == "desktop" ) {
if( !$detect->isMobile() && !$detect->isTablet() ) {
return $block;
}
} elseif( $action == "not-desktop" ) {
if( $detect->isMobile() ) {
return $block;
}
} else return "";
}
Done!

Module System points 1.5 Final release DLE 10.3 English

Datalife Engine 10.3  English
Module System points 1.5 Final release DLE 10.3 English

Description: 
Presenting your attention the module System points / scoring system that allows users to receive points on your website and in return the user gets different opportunities as changing a nickname, group or style nickname. These features makes your website to many unique, interesting and frequently visited.


Possibilities:
- All components are configured from the admin panel
- The operation of all components is made entirely using Ajax
- Support on and off the NC Online
- Easy customization of templates for each component
- Enable / disable the entire system as well as a separate component
- Easy integration into other modules (DLE-Files Forum, Ecom, Thank Module)
- Ability to receive points for adding news, comments, forum posts, or creation of topics on the forum
- Ability to receive at check points
- Ability to earn points at check if all fields (name, location, avatar, icq)
- Ability to change the login
- Block Top users (caching)
- Ability to make a style login: Bold
- Ability to make a style login: italic
- Ability to make a style login: Underline
- Ability to make a style login: Color
- Ability to make a style login: Font
- Ability to include specular reflection Avatar
- Ability to set personal status
- Ability to modify / change the group to which the user is located (caching)
- Ability to give gifts to friends and other users on the site (caching)
- Ability to establish for each gift your price
- Ability to obtain a unique referral link for each user through which he can invite friends and acquaintances to the site, and in return receive points if the recipient is registered on the site
- As well as the opportunity to invite friends and acquaintances to the site via e-mail
- Ability to send scores to other users
- Ability to purchase points for the currency (the system Robokassa)
- Ability to see the latest action

Changes from 10.22.2014:
- Updated to version DLE 10.3
- Fixed a referral system
- Updated design adminpaneli
- Fixed a significant number of bugs
- Cut activation

Author: iDezign
Version of the engine DLE: 10.3
Author adaptation: MSW and Roman Bork
Translate in English: Mika

Datalife Engine 10.3  English


Download Module System points 1.5 Final release DLE 10.3 English

Instruction/install
Instruction in the site template
Insstalling System Points 1.5 Final For DLE Forum


dimanche 5 octobre 2014

Module Simple SEO 1.0 For DLE English

Module Simple SEO 1.0 For DLE English

Purpose: Generate header title and meta tags, description, keywords «on the fly." Manage meta tag robots and other meta-data.
Features: Tweaking activate the module in different sections of the site. Generation of the title element and meta tags description and keywords based on templates and no change in the real basis of the site. Management of indexation using the meta robots, and other settings.


Understanding and Configuring the module Simple SEO:

Immediately it should be said that the module has a layout as a new version of DLE, and under the old (anything below 10.2) and displayed the same course. And also finally provided both options windows-1251 and UTF-8, so do not even bother about these things - the module itself and adjusted to determine all requirements for!

1 Home module - a global setting that allows you to enable or disable the module completely. Oh, and my greetings to you :)

2 Settings Tab header Title - perhaps the most basic and most important section of the module. From this idea was born and header management module and other features of overgrown.

3 Settings Tab meta tag Description - allows you to adjust the formation of descriptions for different sections of the site.

4 Settings Tab meta tag Keywords - This section is more of a formality and a tribute to the past, because in principle make much sense to use the keywords meta tag is not.

5 Settings Tab meta tag Robots - a greatly simplified version of the module DonBot and having the most appropriate settings.

6 Other settings - in this section it was decided to add the ability to confirm ownership of your site to the webmaster panels Yandex, Google, mail.ru, Bing, as well as provide the ability to specify any arbitrary code that will be added to the section of your site.

7 As you can see, for the formation of Title, Description and Keywords are available, the so-called templates.

Here is a complete list of them:
-%site_title% - title of the site (from the global settings DLE)
-%site_name% - short name of the site (from the global settings DLE)
-%page% - adds prefix navigation pages, starting from the second
-%cat_name% - the name of the category (from the global settings categories DLE)
-%cat_title% - title category (from the global settings categories DLE)
-%par_cat_name% - name of the parent category (from the global settings categories DLE)
-%par_cat_title% - title parent category (from the global settings categories DLE)
-%news_name% - name of the news
-%news_id% - ID News
-%news_date% - the date of the publication of news. Format dd.mm.yyyy (example - 23.05.2011)
-%xfields_FIELD NAME% - the contents of the additional field
-%arch_date% - a conclusion date for the archive:
-Date To archive on a particular day. Format dd.mm.yyyy (example - 23.05.2011)
-Date Archive for a specific month. Format mm_name yyyy (example - June 2011)
-Date Archive for a specific year. Format yyyy (example - 2011)
-%tag_name% - the name of the tag
-%symb_name% - character code
-%static_name% - the name of a static page
-%static_title% - title static page
-%username% - username

The idea is that it should cover 99% of the needs. But if it turns out that some kind of template you are missing - write in the comments, and we will in the next update will add a new template.

How it works using the example of the header title

Suppose that we have a site about diet, type slimdown .ru, and there is a category of "Diet", which is the subcategory "Fasting days", "mono-diet" and "Diet" stars. And also there are several publications on the website within these categories and subcategories.

The category of "Diet" for example, is called "Diet" and meta title «Effective weight loss diet free." It is clear that the title here is optimized for search engines and promoted Home category diets, all pages 2, 3, 4, etc. do not need to promote and title is better for them to do other than the one which is promoted by the page, not to "wash out" the weight of duplication. It is therefore advisable for the main category page title used in that title, which is filled in the appropriate field, and pagination for the pages in the title, you can substitute the name of the category and page number.

To do this, use the setting in "Overwrite title categories?" Tag% cat_title%, and in the setting "Overwrite title navigation pages for categories?" Tag% cat_name%% page% - SlimDown. Ru
As a result, we get promoted to the main page of the category title «Effective weight loss diet free", but for pages pagination "Diets - Page X - SlimDown.Ru», where X - the page number, and SlimDown. Ru is the name of the site.

For subcategories pages can be used in templates or even the name of the title of parent groups. Say, the category of "mono-diet" is called "mono-diet" and the title «The most efficient mono-diet for weight loss," and more will be added to the set of templates from the parent category "Diet" and "Effective weight loss diet for free." I have often asked in comments to other articles about the DLE, how to make a title is derived "sub name - Category name - The name of the site." It's very simple, like this:% cat_name% -% par_cat_name% -% site_name%.

All the same tags you can use to generate headlines to view the full news pages, in addition to the full news has tags that display news ID and the date of its publication. Let's say for the publication entitled "Hollywood diet" from the category "Diet stars" can quickly slap a headline: "Hollywood diet for weight loss, number 31 - Diets stars from 23.05.2011 - SlimDown.Ru». To do this, we form the following pattern:% news_name%, number% news_id% -% cat_name% of% news_date% -% site_name%.

I think the principle of operation is now clear to everyone. You can use both patterns of recruitment and any of its set-top box, such as "free download without prescription free then no online advertising" :)

Installation, removal and update module Simple SEO

Installation of the module:

- Unpack the archive with the module;
- Copy the contents of the folder upload to your server, in the folder where you installed DLE;
- Open /engine/init.php and at the very end of the file before ?>> Insert:
require_once ENGINE_DIR . '/inc/siseo/generation.php';


- Run http://yoursite.com/siseo_installer.php and follow the instructions;
- Rename the file to /engine/data/siseo_config.php.dist siseo_config.php and put the right CHMOD 777;
- Remove a file from the server siseo _installer.php.

Removing the module:

- Download the file to the server siseo_uninstaller.php in the folder where you installed DLE;
- Run the file and follow the instructions http://yoursite.com/siseo_uninstaller.php;
- Remove all module files downloaded during the installation;
- Open /engine/init.php at the end of the file, locate and delete the line:
require_once ENGINE_DIR . '/inc/siseo/generation.php';


- Do not forget to delete the file siseo_uninstaller.php.

Update module:

- Download the new version of the module
- Unpack the archive with the module.
- Copy the contents of the upload (except siseo_installer.php) on your server, answering "yes" to your questions in FTP-client to replace the existing files.

Developer: Alaev
Compatible with CMS: DLE 8.2-10.X

Download Module Simple SEO 1.0 For DLE English

mercredi 17 septembre 2014

Module CatFace 2.3 Eng

Module CatFace 2.3 english

Module CatFace 2.3 english version for SEO optimization of the main page and categories engine DLE Datalife Engine.
Displays on the main page and categories seo-optimized text description and header H1.

Purpose: Output tekstovovogo description and H1 header on the category pages and the home page.
Features: Ability to control the display of the title and description on different pages. Opportunity to ask for a description of each category 2 and 2 header - for the first (main) page and for everyone else. Flexible adjustment through a separate tpl-pattern using special tags.

Opportunities - complete control output text descriptions in different situations through the admin panel.

Features: 
- Intuitive control panel interface and visual text editor;
- Module is fully cached;
- Module uses API DLE;
- The ability to activate the module only in certain categories;
- The ability to activate the module only on the first page of the category;
- The ability to output different descriptions and title to the home page and section pages for pagination;
- Availability of detailed tips to all settings in the admin panel.

Installation of the module: 
- Unpack the archive with the module;
- Copy the contents of the folder uploads (in addition to / templates /) to the server;
- Contents of the folder uploads/templates/Default/ put in a folder of your template;
- Run http://yoursite.com/catface_installer.php and follow the instructions;
- Remove a file from the server catface_installer.php;
- Open the file main.tpl your template and in the right place, add the following code:
[aviable=cat|main]{include file="engine/modules/catface.php"}[/aviable]

The installation process is complete, proceed to configure the module.

Removing the module: 
- Download the file catface_uninstaller.php to the server in the folder where you installed DLE;
- Run the file and follow the instructions http://yoursite.com/catface_uninstaller.php;
- Remove all module files downloaded during the installation;
- Do not forget to delete the file catface_uninstaller.php.

Current version 2.3 (from 23.05.2014) 
- Completely updated and redesigned the look of the module.
- Fixed switching editors (BBCODES, WYSIWYG) for new versions of DLE.
- Fixed a bug in PHP version 5.4 and above.

Version DLE: 8.2-10.x
Website: alaev.info


Download Module CatFace 2.3 english version

vendredi 29 août 2014

Module set of smileys DLE English



Simple module to display a set of emoticons that you can use on the site. Inserted into the message, in correspondence with another user on the site, comments, news. With the module comes bundled six sets of emoticons.

List of packs with smiles:
1: Nya Smiles
2: TrollFace Smiles
3: Angel & Demon Smiles
4: Rokey Smiles
5: Rolk Smiles
6: Vector Anime Smiles

You can think of many places where to use it.
And also have the opportunity to enhance their smile, for this there is a configuration in which you can enter a separate directory.

Before installing read the file install.html - detailed information about the installation and module.

Version: 1.0
Released: 12/08/2014
Author module: leparkour

Download Module set of smileys DLE English

vendredi 30 mai 2014

Module LinkEnso PRO 2.2 For DLE English

Module LinkEnso PRO 2.2


Module LinkEnso PRO 2.2 - visual relinking for DLE. Displays news block containing images, headers and text announcements with reference to the previous / next news site.

Features: Visual code generator to insert, setting the number of output units, the selection scheme and direction relink. Tweaking output headers, links, images, announcements. Tpl-use templates to build a list and a specific element.

Some settings module you should be known from the first version, if not, next to each item has a clue. But added new options to set the image source (full / short news or dop.pole) and cut short text announcement.

The module is still inserted into the template the full news fullstory.tpl using the tag:

{include file="engine/modules/linkenso.php?param1=value1¶m2=value2"}

Where param1 = - module option, value1 - the parameter value. Module settings after a sign? and separated by &.
Module parameters passed when pasting:

- Post_id - required parameter id with the current news, must have a value {news-id}
- Links - the total number of links displayed module
- Date - option to adjust the display order news
- Old - in the block will be displayed links to previous news
- New - in the block will be displayed with links to more recent news
- Ring - an option to lock or not to lock the ring relinking
- Yes - links will roll over, ie block "fresh" items (date parameter is set to new), you will see links to the first news website
- No - links will not roll over if it is not found fresh (date parameter is set new) or previous (date parameter is set to old) links, the module displays nothing
- Scan - relinking scheme or scanning depth categories to display links
- All_cat - relink will be used when all the news site from all categories
- Same_cat - when relinking news will only be used in the same category as the current
- Global_cat - when relinking news will only be used in the same category at the top level
- Parameters and same_cat global_cat have some important features when enabled "Enable multicategory site."
- Anchor - setting the anchor links in the
- Name - as the anchor name will be used by the news
- Title - as the anchor will be used filled field title news
- Title - title attribute output setting links
- Name - as the title of the link will be used filled field title news
- Title - as the title of the link will be shown as news
- Empty - does not apply to add a title attribute to the code reference
- Image - the principle of the image output of the news
- Full_story - as an image will be used the first picture of the full news
- Short_story - as an image will be used first picture of Newsflash
- 'Extra. field '- you must specify the name of an additional field containing the url of the image that will be used
- Limit - the number of characters you want to trim the full and brief description of the article to display the announcement


As I mentioned above, now has a module tpl-templates, two of them - linkenso_link.tpl and linkenso_list.tpl - the first is intended to form a single element for the block, the second is simply a container that contains the elements.

Template tags are used appropriately:
linkenso_list.tpl - common template module, which "wraps" the list of references
{Links} - the main part of the template tag - displays a list of links
linkenso_link.tpl - output pattern from the list of articles, supports the following tags
{Link} - displays a link to the article according to the settings of the module
{Anchor} - displays the contents of the anchor according to the settings of the module
{Title} - displays the contents of the title links according to the settings of the module
{Short-story} - displays the contents of a short film, adjusted for the html and cropped according to the module's settings
{Full-story} - displays the full content of an article, refined from html and cropped according to the module's settings
{Image} - displays the path (src) to the image according to the settings of the module
[Link] [/ link] - a block of tags, which can be placed between any content and use it as a reference
[Show_image] [/ show_image] - a block of tags, which can wrap the tag {image}. The contents of this block tags will be displayed only if the picture is displayed.
Installation of the module:

- Unpack the module;
- Copy the contents of the folder uploads (except / templates /) to the server;
- Contents of the folder upload / templates / Default / put in a folder of your template;
- Run http://site.ru/linkenso_installer.php and follow the instructions;
- Remove a file from the server linkenso_installer.php;
- Go to the admin panel, select the module LinkEnso, generate the code;
- Open / templates / {THEME} / fullstory.tpl and paste in the right place the generated code.


Removing the module:

- Download the file linkenso_uninstaller.php by the server in the folder where you installed DLE;
- Run the file and follow the instructions http://site.ru/linkenso_uninstaller.php;
- Remove all module files downloaded during the installation;
- Do not forget to delete the file linkenso_uninstaller.php.


Update module:

- Download the new version of the module from the page http://alaev.info/blog/post/3982
- Unpack the module.
- Copy the contents of the folder upload (except linkenso_installer.php and folder / templates /) on your server, answering "yes" to the questions your FTP-client to replace the existing files.

Version DLE: 8.2-10.x
Author: Alaich
Website: alaev.info
Pass Unrar: dle-guides.blogspot.com

Download Module LinkEnso PRO 2.2 For DLE English

mercredi 5 mars 2014

BARS-RATING BY SANDER - Eng

In Bars-Rating Rating saved standard values ​​and using "smart" algorithm automatically calculates the number of ratings from 1 to 5 points on the basis of the original data. Author: Sander Version DLE: 9.7 - 10.1

Installation.
Connected to the template file styles prescribe such styles:
.b-rating-area{height:120px;width:270px;margin:10px 0;text-align:left;}
.b-rating-lines{list-style:none;margin:0;padding:0;}
.b-rating-lines li{height:18px;display:block;font:normal 12px/17px Arial;color:#333;width:200px;padding:0 50px 0 20px;}
.b-rating-lines li:hover{background:#fafafa;}
.b-rating-lines-bar{float:left;height:16px;}
.b-color-5{background:#7cac16;border-bottom:1px solid #699212;}
.b-color-4{background:#a8d12e;border-bottom:1px solid #8fb127;}
.b-color-3{background:#ffcf00;border-bottom:1px solid #d9b000;}
.b-color-2{background:#faa732;border-bottom:1px solid #d48e2a;}
.b-color-1{background:#d9534f;border-bottom:1px solid #b84643;}

.b-rating-lines-rate{float:left;width:14px;height:100%;border-right:1px solid #444;margin-left:-15px;}
.b-rating-lines-votes{float:right;width:40px;height:100%;margin-right:-50px;color:#666;}

.b-rating-vote-area{height:25px;padding-top:5px;font:normal 16px/25px Arial;color:#444;}
.b-rating-stars{float:right;margin:0;padding:0;list-style:none;}
.b-rating-stars li{float:left;width:25px;height:25px;background:url('../images/b_rating.png') no-repeat 0 0;cursor:pointer;}
.b-rating-stars li.b-current{background-position:0 -25px;}
.b-rating-stars li.b-hover{background-position:0 -50px;}

And as in any connected to the template file to insert JS code:
$(document).on("mouseenter",".b-rating-stars li",function(){
var b_index = $(this).index()+1;
$(this).parent().find('li').each(function(i){
if(b_index>i) $(this).addClass('b-hover');
});
}).on("mouseleave",".b-rating-stars li",function(){
$(this).parent().find('li').removeClass('b-hover');
});


Now the fun part. Run the query to the database:
ALTER TABLE `dle_post` ADD `b_rating` VARCHAR( 20 ) NOT NULL;


Open File engine/modules/functions.php Find the line:
function ShowRating(

It should be renamed the function like this
function ShowRating2(


Before and paste it:
function b_sander_rating($id,$rate,$vote){
global $db;
if(!$vote) return "0|0|0|0|0";
$vt = array_fill(0,$vote,1);
if(($rate-$vote)>=5) $vt[0] = 5;
$vt[$vote-1] = 1;
$i = 0;
$r = 0;
while($r<$rate){
$i++;
if($i>10000) return "0|0|0|0|0";
if($r<$rate){
shuffle($vt);
foreach($vt as $k=>$v){
if($v<5 data-blogger-escaped-as="" data-blogger-escaped-break="" data-blogger-escaped-db-="" data-blogger-escaped-foreach="" data-blogger-escaped-k="" data-blogger-escaped-r="" data-blogger-escaped-v="" data-blogger-escaped-votes="" data-blogger-escaped-vt="">query("UPDATE ".PREFIX."_post SET b_rating='{$votes}' WHERE id={$id}");
return $votes;
}

function ShowRating($id, $rating, $vote_num, $allow = true){
global $row;
if(!$row['b_rating']) $row['b_rating'] = b_sander_rating($id,$rating,$vote_num);
$b_rating = explode("|",$row['b_rating']);
$max = max($b_rating);
if($vote_num) $rateval = round($rating/$vote_num);
else $rateval = 0;
$list = '';
$pc = array();
for($i=4;$i>=0;$i--){
$k = $i+1;
$w = ceil(100*$b_rating[$i]/$max);
if($rateval>=$k) $pc[$k] = "class='b-current'";
$list .= "\t

  • {$k}




    {$b_rating[$i]}


  • \n";
    }

    return <<


      {$list}









    Vote


    HTML;
    }


    Open File engine/ajax/rating.php Find the line:
        $db->query( "UPDATE " . PREFIX . "_post_extras SET rating=rating+'$go_rate', vote_num=vote_num+1 WHERE news_id ='$news_id'" );


    After it insert:
        $r = $db->super_query("SELECT b_rating FROM ".PREFIX."_post WHERE id={$news_id}");
    if($r['b_rating']) $b_rating = explode("|",$r['b_rating']);
    else $b_rating = array_fill(0,5,0);
    $b_rating[$go_rate-1]++;
    $b_rating = implode("|",$b_rating);
    $db->query( "UPDATE " . PREFIX . "_post SET b_rating='$b_rating' WHERE id ='$news_id'" );


    Find the line:
    $row = $db->super_query( "SELECT news_id, rating, vote_num FROM " . PREFIX . "_post_extras WHERE news_id ='$news_id'" );


    Replace with:
    $row = $db->super_query( "SELECT e.news_id, e.rating, e.vote_num, p.b_rating FROM ".PREFIX."_post p LEFT JOIN " . PREFIX . "_post_extras e ON p.id=e.news_id WHERE news_id ='$news_id'" );

    Pass Unrar: dle-guides.blogspot.com
    Download

    BARS-RATING BY SANDER

    Size: 5 KB .Rar

    mardi 21 janvier 2014

    Content protection from copying

    Content protection from copying
    Content protection from copying

    Finished with the implementation of easy installation NoCopy - Content protection from copying, allows you to protect the text from attempts to copy its combination of buttons Ctrl + C , or release the mouse, thereby adding problems to people who stupidly tyryat news from your internet portal.


    Installation:
    1. Upload to my template file script nocopy.js in js folder
    2. In the template file, add a line main.tpl tag:




    Download: NoCopy.rar
    Pass Unrar :dle-guides.blogspot.com

    samedi 11 janvier 2014

    Category menu with new counts

    Category menu with new counts
    Category menu with new counts


    The module is pretty simple but yet powerful for those website that want to add categories automatically with the news and articles counted without modify any Datalife Engine files only require a few lines of CSS styles and include file into the theme.


    Features:
    - Automatically generate the category list from the category cache files and database
    - Use cache to reduce the server loading and resources
    - Automatically count all news in both main categories and sub-categories and make the total count in main categories
    - Supports category icons (useful for those who use category icons like file hosts and different category icons)
    - Very simple to install without modify any DLE files
    - Easy to customize in CSS
    - Can set cache to how often to update the article count and category list

    This module only tested on 9.6 - 10.1

    Modules Installation Guide

    - Using your FTP client to upload folders /engine/ to root of your server

    - Using your FTP client to upload folders {THEME}/images/cat.png to your theme images folder

    Open main.tpl or side.tpl or whatever file you want category menu to display Add this code in any place you want category menu to display


    {include file="/engine/modules/cat_starter.php?new_days=1"}

    OR

    {include file="/engine/modules/cat_starter.php?new_days=1&cache_time=43200"}

    Attribute Information


    •  new_days=1 is for the number of day to starter the grab the category list the default is "1" which is the "day the category was created"
    • cache_time=43200 is for how often the cache to update the category list and counter this use second I set "43200" is to "update every 12 hours", you can set the number you want


    Add this css style to one of your css files in your theme (possibly /css/ or /styles/ folder) CSS Code:

    .catmenus {margin:-4px 0 0 0;padding:0; width:100%;display:block;position:relative}
    .catmenus a {font-size:14px !important;font-family: 'Ubuntu Condensed', Helvetica, Arial, sans-serif !important;font-weight:normal;font-style:normal !important;
    background-image: -webkit-gradient(linear, top left, bottom left, from(rgba(255,255,255,1) 20%), to(rgba(255,255,255,0)));
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 20%, rgba(255,255,255,0));
    background-image: -moz-linear-gradient(top, rgba(255,255,255,1) 20%, rgba(255,255,255,0));
    background-image: -ms-linear-gradient(top, rgba(255,255,255,1) 20%, rgba(255,255,255,0));
    background-image: -o-linear-gradient(top, rgba(255,255,255,1) 20%, rgba(255,255,255,0));
    background-image: linear-gradient(top, rgba(255,255,255,1) 20%, rgba(255,255,255,0));
    -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 1px rgba(0, 0, 0, .1),0 2px 0 0 rgba(0, 0, 0, .06);
    -moz-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 1px rgba(0, 0, 0, .1),0 2px 0 0 rgba(0, 0, 0, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 1px rgba(0, 0, 0, .1),0 2px 0 0 rgba(0, 0, 0, .06);
    background-color: #E3E6E8;
    color:#3c83b0;
    text-shadow: 1px 1px 0px #ffffff;
    margin:3px 0;
    text-decoration:none;
    display:block;
    cursor:pointer;
    position:relative
    }
    .catmenus a:hover{background:#fff;color:#f30871;text-shadow:0 1px 0 #ffffff,0 -1px 3px #bebebe;}
    .catmenus a span.ficon{background:url(../images/cat.png) 5px 6px no-repeat;padding:4px 5px 4px 25px;display:block}
    .catmenus a span.total {
    color: #fff;
    display: block;
    position: absolute;
    top: 5px;
    right:5px;
    text-align:center;
    padding:0 8px;
    font:normal 13px Helvetica, Arial, sans-serif !important;
    font-style:normal !important;
    background: #3c83b0;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    -webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0, .2), 1px 1px 1px rgba(255,255,255, .1);
    -moz-box-shadow: inset 1px 1px 1px rgba(0,0,0, .2), 1px 1px 1px rgba(255,255,255, .1);
    box-shadow: inset 1px 1px 1px rgba(0,0,0, .2), 1px 1px 1px rgba(255,255,255, .1);
    text-shadow:none !important;
    }
    .catmenus a:hover span.total {background: #f30871;}


    You can customize the color and background color of your choices,

    Download CategoryMenu-new-count.rar 
    Pass Unrar : dle-guides.blogspot.com