New freeware plugin - simpleCounter v0.1 for QC v4.x

treewood (OpenSolution)

Avatar: treewood

2011-02-16 09:10

We've created new freeware plugin to Quick.Cart v4.x. This plugin counts vistis per day and all time.

You should know HTML and PHP basics to install this plugin.

Check out this plugin here:
http://opensolution.org/download,en,18.html?sDir=Quick.Cart/plugins

Good luck!

euphoria-art

Avatar: euphoria-art

2011-02-16 12:44

plugin liczy wizyty dzienne i aktualnie przebywające osoby na stronie? nie wiem czy dobrze zrozumiałem. Czy można go zastosować do quick.cms 3.0?

treewood (OpenSolution)

Avatar: treewood

2011-02-16 14:06

nie plugin liczy wszystkie wizyty danego dnia i wszystkie wizyty z calego okresu od uruchomienia licznika.

na drugie pytanie:
http://opensolution.org/Quick.Cms/forum/?p=readTopic&nr=1701

euphoria-art

Avatar: euphoria-art

2011-02-16 17:38

Licznik jest ok tylko trzeba go lekko zmodernizować. Potrzebuje dodatkowo osoby online (przebywające aktualnie na stronie w czasie rzeczywistym), rozwiązanie poprosiłbym gotowe i sprawdzone zrobione przez fachowca, najlepiej wklejone pod moim postem. Sam tego nie zrobię gdyż nie mam obecnie zbytnio czasu, dlatego proszę o gotowca, na pewno wiele osób skorzysta. Dzięki!

treewood (OpenSolution)

Avatar: treewood

2011-02-17 08:43

euphoria-art - z calym szacunkiem, czy jeszcze ma Pan jakies zyczenia czy to wszystko?

cachousam

Avatar: cachousam

2011-02-20 10:35

Hi!
Thanks for this plugin.
He works fine but i have a little need help.
I try to place this counter in my admin page, but the text appears fine but not the number of visiteurs.however the number in the file compeur.php is independent of the part of admin or client.

Dominique in france

boboo

Avatar: boboo

2011-02-20 11:24

You have to read the output array in admin php.
In common-admin.php put a new function:

function adminReadCounter(){
if(is_file(DB_COUNTER)){
$aFile=file(DB_COUNTER);
if(isset($aFile[1])&&!empty($aFile[1])){
$aExp=explode('$',$aFile[1]);
$sDate=date('Y-m-d');
$aVisits[0]=$aExp[0];
$aVisits[1]=(!empty($aExp[2])&&$aExp[2]==$sDate)?$aExp[1]:0;
if( isset( $aVisits ) )
return $aVisits;
else
return Array( 1, 1 );
}
}
}

and call it in admin.php
$aVistisCounter=adminReadCounter();
over the line:
loginActions( $p, SESSION_KEY_NAME, 'container.tpl' );

After that put the variables $aVisitsCounter[0] and [1] into places in templates/admin/xxx.tpl you wish to see them.

http://it-service.kimla.de

cachousam

Avatar: cachousam

2011-02-20 11:53

Hi

Whouaou!
I'm still a little in PHP.
Thanks a lot.
I test it.
Dominique

cachousam

Avatar: cachousam

2011-02-20 13:47

Wonderfull!But...

when I manually change the number in the counter.php file, it works for Visits_all_time but not for Visits_today.
often a zero appears.

Back to top
about us | contact