Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770
Форумы портала PHP.SU :: Версия для печати :: количество комментариев на disqus
Форумы портала PHP.SU » Разное » Прочее » количество комментариев на disqus

Страниц (1): [1]
 

1. foozzi - 02 Февраля, 2013 - 18:11:15 - перейти к сообщению
В общем поставил на самописный движок систему комментариев disqus, теперь требуется вывести кол. коммнтариев в нем, кто сталкивался? в плагинах wordpress и др. есть такая возможность, а как сделать у себя не знаю
(Добавление)
Трабл решен, кому надо:
CODE (javascript):
скопировать код в буфер обмена
  1.  
  2.         <script type="text/javascript">
  3.  /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  4.  var disqus_shortname = 'mydak'; // required: replace example with your forum shortname
  5.  
  6.  /* * * DON'T EDIT BELOW THIS LINE * * */
  7.  (function () {
  8.  var s = document.createElement('script'); s.async = true;
  9.  s.type = 'text/javascript';
  10.  s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
  11.  (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  12.  }());
  13.  </script>
  14.        
  15.         <div align="right">
  16.                      <a class="btn" href="index.php?id=<?=$grab1_mdk['id']?>#disqus_thread">
  17.         Комментировать
  18.       </a>
  19.       </div>
  20.  

 

Powered by ExBB FM 1.0 RC1