Skip to content

Commit

Permalink
fix fb
Browse files Browse the repository at this point in the history
  • Loading branch information
CB9TOIIIA committed Oct 13, 2016
1 parent 5f34607 commit a38f60c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<field
name="fb_app_token"
type="text"
label="access token для счетчика FB"
label="Access token для счетчика FB"
description=""
default=""/>
</fieldset>
Expand Down
15 changes: 8 additions & 7 deletions elements/paramsetc.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,18 @@
$fillbad = $params->countpageviewyambad;
$fillgood = $params->countpageviewyamgood;
$fillnorm = $params->countpageviewyamnorm;
$vksocialname= $params->vksocialname;
$vk_ID_uids= $params->vk_ID_uids;
$fbsocialname= $params->fbsocialname;
$gplussocialname= $params->gplussocialname;
$oksocialname= $params->oksocialname;
$twittersocialname= $params->twittersocialname;
$youtubesocialname= $params->youtubesocialname;
$vksocialname = $params->vksocialname;
$vk_ID_uids = $params->vk_ID_uids;
$fbsocialname = $params->fbsocialname;
$gplussocialname = $params->gplussocialname;
$oksocialname = $params->oksocialname;
$twittersocialname = $params->twittersocialname;
$youtubesocialname = $params->youtubesocialname;

$httpClientj = JHttpFactory::getHttp();


if (empty($fb_app_token)) { $fb_app_token = ''; }
if (empty($fillbad)) { $fillbad = '100'; }
if (empty($fillgood)) { $fillgood = '200'; }
if (empty($fillnorm)) { $fillnorm = '300'; }
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.7</version>
<version>2.4.8</version>
<description>MyJBZooStat - это компонент статистики и менеджер системы комментирования Disqus.</description>
<creationDate>28 June 2016</creationDate>
<administration>
Expand Down
8 changes: 4 additions & 4 deletions views/auhorsprofile/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,23 +533,23 @@ function rdate($param, $time=0) {
echo '<img class=="fbimgmini" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAM1BMVEU7V5Y7V5g7WZc7WZg9WplOaaJnfq9sg7J1ird7j7qBlL2Wpsicq8udrMzAyt7P1ub///8xwDQLAAAAA3RSTlPGycoO3WmFAAAAR0lEQVQoz6XOORaAMAwDUYcYzCaY+5+WDuy0qPzFPNnUy5r1YR/4dioyXIASBAMcsHtuCDxFQzdIywsCgHWEuTbqsT/QKtgD7m8Fvl8KS70AAAAASUVORK5CYII="> ';
echo $myfbcount;
echo "</div>";
echo " <div class='ya-share2' data-services='vkontakte,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-size='m' data-counter=''></div>";
echo " <div class='ya-share2' data-services='vkontakte,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-access-token:facebook='{$fb_app_token}' data-size='m' data-counter=''></div>";

}
if (empty($myfbcount)) {
echo $myfbcount = "<div class='fbminidiv'><a href='http://graph.facebook.com/?id={$myurltosite}' target='_blank'> Нет данных - FB <em class='icon-out-2'></em> </a> </div> <div class='ya-share2' data-services='vkontakte,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-size='m' data-counter=''></div>";
echo $myfbcount = "<div class='fbminidiv'><a href='http://graph.facebook.com/?id={$myurltosite}' target='_blank'> Нет данных - FB <em class='icon-out-2'></em> </a> </div> <div class='ya-share2' data-services='vkontakte,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-access-token:facebook='{$fb_app_token}' data-size='m' data-counter=''></div>";
}
//usleep(10000); //need?
echo "</td>";
}


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

if ($fb_fgc != 'yes' && $more100social != 'yes') {
echo "<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-size='m' data-counter=''></div></td>";
echo "<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-access-token:facebook='{$fb_app_token}' data-size='m' data-counter=''></div></td>";
}


Expand Down
2 changes: 1 addition & 1 deletion views/disqus/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ function (isConfirm) {
<td><span class='disqus-comment-count' data-disqus-url='{$myurltosite}'></span></td>
<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-url='{$myurltosite}' data-size='m' data-counter=''></div></td></tr>";
<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-access-token:facebook='{$fb_app_token}' data-url='{$myurltosite}' data-size='m' data-counter=''></div></td></tr>";

}
} $datearraydatemonth = count($Disid);
Expand Down
2 changes: 1 addition & 1 deletion views/index/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -2925,7 +2925,7 @@ function nice_num($n) {

echo "<td><a target='_blank' href='{$popurl}'>{$popurl}</a></td>";

echo "<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-url='{$popurl}' data-size='m' data-counter=''></div></td>";
echo "<td><div class='ya-share2' data-services='vkontakte,facebook,odnoklassniki,moimir,gplus' data-url='{$popurl}' data-access-token:facebook='{$fb_app_token}' data-size='m' data-counter=''></div></td>";

echo "</tr>";

Expand Down

0 comments on commit a38f60c

Please sign in to comment.