Меню сайта
Stats for main (0.3) - Вывод статистики в main.tpl для DLE 13.x

Простенький хак который устанавливаемый в DLE через систему управления плагинами, позволит вывести статистику сайта со страницы /statistics.html на его главную страницу.
Установка:
1. Зайти в Панель управления DLE и в разделе Управление плагинами загрузить хак.
2. Открыть main.tpl и в нужное место добавить:
{include file="engine/modules/stats.php?main=1"}
Готово!
Оформление вывода, по умолчанию, будет строиться из стандартного шаблона статистики stats.tpl. Если вы хотите изменить вывод на свой, то создайте stats_main.tpl и скопируете в него содержимое stats.tpl или код из примера ниже:
<style>
.box, {background-color: #fff; margin-bottom: 5px; border-radius: 2px; position: relative;}
.dark_top {border-radius: 2px 2px 0 0; color: #202020;}
.box_in {padding: 1% 1%;}
.stigan {margin: 15px 0 18px; text-align: center;}
.stigan .block {display: inline-block; margin: 0 5px; position: relative;}
.stigan .block div {border: 2.1px solid; box-shadow: 0px 5px 10px 0px #e4e4e4; border-radius: 5px 5px 0px 0px; width: 130px; height: 49.5px; line-height: 47px; font-size: 18px;}
.stigan span {display: block; border-radius: 2px;width: 130px; box-shadow: 0px 5px 10px 0px #e4e4e4; height: 20px; line-height: 20px; font-size: 10px; color: #f3efef; text-transform: uppercase; position: absolute; right: 0px; top: 47px;}
.stigan .block:nth-of-type(1) div {border-color: #3765c5; color: #1;}
.stigan .block:nth-of-type(1) span {background: #1d69ff;}
.stigan .block:nth-of-type(2) div {border-color: #e64a1f; color: #1;}
.stigan .block:nth-of-type(2) span {background: #de6a18;}
.stigan .block:nth-of-type(3) div {border-color: #76ad16; color: #1;}
.stigan .block:nth-of-type(3) span {background: #2bb31b;}
</style>
<article class="box story">
<div class="stigan">
<div class="block"><div id="newstats">{news_num}</div><span>NEWS</span></div>
<div class="block"><div id="comstats">{comm_num}</div><span>COMMENTS</span></div>
<div class="block"><div id="userstats">{user_num}</div><span>USERS</span></div>
</div>
<div class="box_in dark_top stats_head">
<center>
<ul>
For the day <span><font color="#4b73c4">{news_day}</font> news and <font color="#4b73c4">{comm_day}</font> comments, <font color="#4b73c4">{user_day}</font> registered users</span><br />
For the week <span><font color="#4b73c4">{news_week}</font> news and <font color="#4b73c4">{comm_week}</font> comments, <font color="#4b73c4">{user_week}</font> registered users</span><br />
For the month <span><font color="#4b73c4">{news_month}</font> news and <font color="#4b73c4">{comm_month}</font> comments, <font color="#4b73c4">{user_month}</font> registered users</span>
</ul>
</center>
</div>
Автор: dj-avtosh
Версия DLE: 13.2
Кодировка: utf-8
Скачать Stats for main (0.3)
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.
Популярное за день
Elementor PRO (3.28.2 Pro + Kit Library + RUS) [Nulled]
Просмотров: (12 564 + 16)
XStore (9.4.10) [Nulled]
Просмотров: (4 225 + 16)
Masterstudy (4.8.100 + Mobile App 2.2.9.2) [Nulled]
Просмотров: (2 411 + 13)
Journal (3.2.1) [Nulled]
Просмотров: (7 354 + 11)
Arkhitekton (1.3.7) [Nulled]
Просмотров: (105 + 11)
Softec (1.0.0)
Просмотров: (68 + 11)
WoodMart (8.1.2) [Nulled]
Просмотров: (6 918 + 10)
SportPress Pro (2.7.25.0) [Nulled]
Просмотров: (944 + 10)
Polylang Pro (3.6.7) [Nulled]
Просмотров: (3 319 + 8)
All in One Video Downloader Script (2.19.1) [Nulled]
Просмотров: (1 662 + 8)
Afterlogic WebMail Pro PHP (9.7.8) [Nulled]
Просмотров: (394 + 8)
Slider Revolution (6.7.30 + Addons + Templates) [Nulled]
Просмотров: (6 079 + 7)
CS-Cart Ultimate & Multivendor (4.18.3) [Nulled]
Просмотров: (5 704 + 7)
WPBakery Page Builder for WordPress (8.3.1) [Nulled]
Просмотров: (3 124 + 7)
MovieTor (2.0)
Просмотров: (130 + 7)
BeTheme (28.0.4.0) [Nulled]
Просмотров: (9 248 + 6)
Ultimate POS (6.6 + Addons) [Nulled]
Просмотров: (2 911 + 6)
Media Cleaner Pro (6.8.7) [Nulled]
Просмотров: (2 139 + 6)
Content Views PRO (7.2.0) [Nulled]
Просмотров: (1 733 + 6)
Astra Premium Starter Templates Pro (4.4.18) [Nulled]
Просмотров: (1 674 + 6)
Simple Business Directory Pro