Giter Site home page Giter Site logo

globulopolis / counter Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 571 KB

Display Hits/Visits on image. Display Hits/Visits/from Countries stats as text via ajax requests.

Home Page: http://xn--80aeqbhthr9b.com/en/others/piwik/10-piwik-graphical-counter.html

PHP 50.55% CSS 4.89% Twig 44.56%
matomo matomo-plugin piwik counter

counter's People

Contributors

globulopolis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

arkoniak

counter's Issues

Add an option to get stats from today and yesterday

I couldn't find a proper way to do this.

Currently offered day option produces the same results as:

index.php?module=Counter&action=show&date=2014-10-05&id=1

(it is 2014-10-06 today)

Meaning that it combines stats from ysterday and today.

I want to be able to easily get the today's stats without having to manually specify date=2014-10-06 and also yesterday's (currently not even manually possible as far as I understand).

Установка стартового значения для счетчика PIWIK

А трудно вам было бы ввести такой параметр?
Вы же картинку формируете, ну и прибавили бы число )).
Это к "накрутке" счетчика никакого отношения не имеет - все равно, тот, кто захочет накрутить, возьмет счетчик с установкой начального числа, и никакой пивик ему не нужен.

Не одному мне, наверняка, нужно.

Удачи вам!

Issue with Counter 2.0.9

I am not receivingg this error when I try to go to the Piwik administrator settings:

Fatal error: Call to undefined method Piwik\Menu\MenuAdmin::addEntry() in /home/content/84/11506884/html/analytics/plugins/Counter/Counter.php on line 27

A fatal error occurred

The following error just broke Piwik (v2.12.0-rc2):
Call to undefined method Piwik\Menu\MenuAdmin::addEntry()
in /home/content/84/11506884/html/analytics/plugins/Counter/Counter.php line 27

Any idea how to fix this?

Call to undefined method Piwik\Plugin\Manager::returnLoadedPluginsInfo()

Hi

Counter 2.0.8 generates an error with Piwik 2.9.1

The following error just broke Piwik (v2.9.1): 

Call to undefined method Piwik\Plugin\Manager::returnLoadedPluginsInfo()

in

/usr/share/piwik/plugins/Counter/API.php line 39

Could you please have a look as to why this is happening ?

Thanks

Counter 2.0.3 not working with piwik 2.2.0

Hi
Counter 2.0.3 doesn't seem to work with Piwik 2.2.0 (release 24 hours ago).
Instead of the usual generated javascript, I get the following:

<div style='word-wrap: break-word; border: 3px solid red; padding:4px; width:70%; background-color:#FFFF96;'>
        <strong>There is an error. Please report the message (Piwik 2.2.0)
        and full backtrace in the <a href='?module=Proxy&action=redirect&url=http://forum.piwik.org' target='_blank'>Piwik forums</a> (please do a Search first as it might have been reported already!).<br /><br/>
        Notice:</strong> <em>Undefined index: tpl_by_countries</em> in <strong>/usr/share/piwik/plugins/Counter/API.php</strong> on line <strong>209</strong>
<br /><br />Backtrace --&gt;<div style="font-family:Courier;font-size:10pt"><br />
#0  Piwik\Error::errorHandler(...) called at [/usr/share/piwik/plugins/Counter/API.php:209]<br />
#1  Piwik\Plugins\Counter\API->getCountersData(...) called at [/usr/share/piwik/plugins/Counter/API.php:523]<br />
#2  Piwik\Plugins\Counter\API->getLiveVisitorsCount(...) called at [/usr/share/piwik/plugins/Counter/Controller.php:160]<br />
#3  Piwik\Plugins\Counter\Controller->live(...) called at [:]<br />
#4  call_user_func_array(...) called at [/usr/share/piwik/core/FrontController.php:505]<br />
#5  Piwik\FrontController->doDispatch(...) called at [/usr/share/piwik/core/FrontController.php:85]<br />
#6  Piwik\FrontController->dispatch(...) called at [/usr/share/piwik/core/dispatch.php:34]<br />
#7  require_once(...) called at [/usr/share/piwik/index.php:47]<br />
</div><br />
 </pre></div><br />
var elem = "nbvisit", url = "http://stats.hidden.fr/index.php?module=Counter&action=live&id=3"; function createXHR(){var a;if(window.ActiveXObject){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){document.getElementById(elem).innerHTML=b.message;a=null}}else{a=new XMLHttpRequest}return a}function sendRequest(){var a=createXHR();a.onreadystatechange=function(){if(a.readyState===4){document.getElementById(elem).innerHTML=a.responseText}};a.open("GET",url,true);a.send()}sendRequest();

Thanks

Note Force SSL

Note Force SSL

I run Matomo in Docker with Traefik as a proxy.
This means that Matomo runs even without SSL.

But Traefik translates this to https. It runs stably and without any problems.

Unfortunately, your plugin checks the server and so the JS is delivered with HTTP

What causes mixed content and the JS is not executed.

I am not a programmer and have simply changed the http to https in the API.php. So it works for me now.

I would think it would be a good idea if your plugin could be used in one of the next updates

[General]
force_ssl = 1

or reacts to the ForceSSL plugin and then only delivers https

Alternative due to more and more https pages just deliver HTTPS.

Thanks for the plugin and greetings

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.