Skip to content

Commit

Permalink
add counters option
Browse files Browse the repository at this point in the history
  • Loading branch information
CB9TOIIIA committed Sep 18, 2016
1 parent 22073d3 commit 748df72
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
<option value="yes">Да</option>
<option value="no">Нет</option>
</field>
<field
name="more100social"
type="radio"
label="Скрывать счетчики >100 на стр."
description=""
class="btn-group btn-group-yesno"
default="no">
<option value="yes">Да</option>
<option value="no">Нет</option>
</field>
<field
name="threshold"
type="text"
Expand Down
1 change: 1 addition & 0 deletions elements/paramsetc.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
$namecomponent = $mainframe->scope;
$params = json_decode($component->params);
$comcontent = $params->comcontent;
$more100social = $params->more100social;
$enablecommerce = $params->enablecommerce;
$csshack = $params->csshack;
$bd_nice = $params->bd_nice_number;
Expand Down
2 changes: 1 addition & 1 deletion myjbzoostat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<authorUrl>http://cb9t.ru</authorUrl>
<copyright></copyright>
<license></license>
<version>2.4</version>
<version>2.4.1</version>
<description>MyJBZooStat - это компонент статистики и менеджер системы комментирования Disqus.</description>
<creationDate>28 June 2016</creationDate>
<administration>
Expand Down
2 changes: 1 addition & 1 deletion views/auhorsprofile/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ function rdate($param, $time=0) {
echo "<td>".$alipublish_upformat."</td>";
echo "<td><a target='_blank' href='{$myurltosite}'>".$aliname."</a></td>";

if ($keymonthcountv > '100') {
if ($keymonthcountv > '100' && $more100social == 'yes') {
echo "<td>Счетчики отключены (>100)</td>";
}
else {
Expand Down

0 comments on commit 748df72

Please sign in to comment.