Меню сайта
Последние комментарии
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)
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.
Популярное за день
Moderno (1.28.1) [Nulled]
Просмотров: (445 + 11)
Grevo (1.8) [Nulled]
Просмотров: (21 + 10)
Hostiko (92.9) [Nulled]
Просмотров: (1 766 + 9)
Elementor PRO (3.30.0 Pro + RUS) [Nulled]
Просмотров: (14 008 + 7)
Loco Translate Pro (2.6.11 + Addons) [Nulled]
Просмотров: (869 + 6)
Infix LMS (8.2.0) [Nulled]
Просмотров: (779 + 6)
Readabler (2.0.4 + Extensions) [Nulled]
Просмотров: (685 + 6)
Bitbetio (1.0)
Просмотров: (452 + 6)
Vuexy (10.7.0 Full)
Просмотров: (5 545 + 5)
MinimogWP (3.8.9) [Nulled]
Просмотров: (1 406 + 5)
Metronic (9.2.2 [All Full Pack])
Просмотров: (7 394 + 4)
FleetCart (4.7.5) [Nulled]
Просмотров: (2 127 + 4)
Elessi (6.4.3.0) [Nulled]
Просмотров: (2 042 + 4)
Prestige (10.0.2)
Просмотров: (962 + 4)
Onnat (1.0.3) [Nulled]
Просмотров: (6 + 4)
TextHumanizer (1.0.0) [Nulled]
Просмотров: (5 + 4)
Trikon (1.1.0) [Nulled]
Просмотров: (4 + 4)
XStore (9.5.1) [Nulled]
Просмотров: (4 358 + 3)
RISE CRM (3.9.1 + Addons) [Nulled]
Просмотров: (3 439 + 3)
Soledad (8.6.7.0) [Nulled]
Просмотров: (2 174 + 3)
SeedPro