Меню сайта
Последние комментарии
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)
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.
Популярное за день
WoodMart (8.2.7) [Nulled]
Просмотров: (8 548 + 5)
Grupo Chat (3.9.0) [Nulled]
Просмотров: (578 + 4)
JobZilla (1.9) [Nulled]
Просмотров: (81 + 4)
Elementor PRO (3.32.2 Pro + RUS) [Nulled]
Просмотров: (16 102 + 3)
Happy Elementor Addons Pro (3.3.0 PRO) [Nulled]
Просмотров: (1 742 + 3)
Vporn (1.0)
Просмотров: (751 + 3)
Rideup
Просмотров: (3 + 3)
BeTheme (28.1.9.0) [Nulled]
Просмотров: (9 716 + 2)
WPML Multilingual CMS (4.8.2) [Nulled]
Просмотров: (7 845 + 2)
Polylang Pro (3.7.3) [Nulled]
Просмотров: (3 575 + 2)
Astra Pro Addon (4.11.9) [Nulled]
Просмотров: (2 323 + 2)
Echo RSS Feed Post Generator (5.4.9.0) [Nulled]
Просмотров: (191 + 2)
ChatGPT Assistant Pro (1.2.2291)
Просмотров: (53 + 2)
Unimate
Просмотров: (47 + 2)
Journal (3.2.8.1) [Nulled]
Просмотров: (8 546 + 1)
JetElements (2.7.11.0) [Nulled]
Просмотров: (6 730 + 1)
CS-Cart Ultimate & Multivendor (4.18.3) [Nulled]
Просмотров: (6 032 + 1)
Отдельная страница авторизации пользователей сайта для DLE
Просмотров: (3 540 + 1)
Dokan Pro Business (4.1.0 + Theme 2.3.8) [Nulled]
Просмотров: (2 835 + 1)
UniSite CMS (4.11) [Nulled]
Просмотров: (2 595 + 1)
Gameplex