Меню сайта
Последние комментарии
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)
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.
Популярное за день
Max Addons Pro for Bricks Builder (1.18.0) [Nulled]
Просмотров: (359 + 6)
SP Page Builder Pro (6.10.0 + Templates + RUS)
Просмотров: (14 132 + 4)
Hostiko (9.4.58) [Nulled]
Просмотров: (1 948 + 4)
All-in-One WP Migration Unlimited Extension (2.90 + Addons) [Nulled]
Просмотров: (1 928 + 4)
Скрипт автоматического обменного пункта Premium Exchanger (1.5) [Nulled]
Просмотров: (7 476 + 3)
CiuisCRM (1.94) [Nulled]
Просмотров: (2 324 + 3)
Action Library - Motion Presets Package
Просмотров: (1 332 + 3)
Essential Grid Gallery (4.0.4.0) [Nulled]
Просмотров: (1 060 + 3)
WP Scheduled Posts Pro (5.4.0 + RUS) [Nulled]
Просмотров: (890 + 3)
HTML CSS Image Hover Effects (1.0.0)
Просмотров: (133 + 3)
Nexsas (2.6.0)
Просмотров: (124 + 3)
Futuristic Call Outs
Просмотров: (26 + 3)
WebViewGold for Android (16.6) [Nulled]
Просмотров: (1 972 + 2)
MyRitual
Просмотров: (101 + 2)
Ripped Paper Scotch Grunge Tape Titles Lowerthirds
Просмотров: (11 + 2)
Alvera (1.0.0) [Nulled]
Просмотров: (8 + 2)
Arigo (1.0.0) [Nulled]
Просмотров: (3 + 2)
Elementor PRO (4.4.2 + RUS) [Nulled]
Просмотров: (30 071 + 1)
Porto (7.10.2) [Nulled]
Просмотров: (5 347 + 1)
Tutor LMS Pro (4.1.2 + Addon) [Nulled]
Просмотров: (3 567 + 1)

Duplicator Pro