Re: HitCount Plugin

Angryboy wrote:

As much as I love the analysis that this plugin provides, both it and its previous iterations have broken my site, and I don't know why.

Everything works for the first week or so, but then every page (except the admin back end) goes blank, and no-one can visit the site. It is only after I either disable or remove the plugin that things get working again. Am I doing something wrong?

For me on mvlcek.bplaced.net it works without problems so far (besides a timeout with the previous version analyzing too large logs).

The only reason for this problem that I see is the lock file (data/other/hitcount/lock.txt) to prevent simultaneous accesses. Maybe it stays locked when the PHP script crashes or is aborted?
Try deleting it and see if everything works afterwards. If you can't delete it, it's still locked - but by whom?
If you deleted it and still nothing works, try creating it again (empty text file). If creating the file doesn't work (on Linux), some process still holds the file.

According to the PHP documentation all locks will be released on termination of the script. Normally all PHP scripts are aborted after x seconds automatically. So I'm not sure what could cause this problem.

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Re: HitCount Plugin

Thanks for the many updates! A quick question... when I go to export as a CSV, I'm taken to a page that just says "Not logged in!" - I am logged in to the admin area, or else I couldn't start the process. Any ideas to what is causing this? Same with the export to Excel link.

Also - is there a way to easily reset the stats? I have the IP blocker in place going forward, but I'd like to reset everything to zero once I take a site from development to live.

Re: HitCount Plugin

patriotmedia wrote:

Thanks for the many updates! A quick question... when I go to export as a CSV, I'm taken to a page that just says "Not logged in!" - I am logged in to the admin area, or else I couldn't start the process. Any ideas to what is causing this? Same with the export to Excel link.

You need to enable site wide cookies in your gsconfig.php and - if you are not using I18N Gallery or I18N Custom Fields - you need to get the newest version 2.0.3, which implements a workaround of a GetSimple bug with site-wide cookies.

patriotmedia wrote:

Also - is there a way to easily reset the stats? I have the IP blocker in place going forward, but I'd like to reset everything to zero once I take a site from development to live.

Delete all files (with the exception of .htaccess) in /data/other/hitcount and re-index data (on bottom of hitcount page) or delete everything (with the exception of .htaccess) in /data/other/hitcount-index.
It seems that the reset function got lost in the redesign :-(

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Re: HitCount Plugin

Great... I didn't see that the lastest version was posted today. Everything's working... A question about the IP blacklst text file - can I include a wild card entry? For example...

75.127.157.*

So that everything in that range is included?

55 (edited by mvlcek 2011-11-01 03:14:56)

Re: HitCount Plugin

patriotmedia wrote:

Great... I didn't see that the lastest version was posted today. Everything's working...

I uploaded it after your post. I didn't think about the workaround before, because for me everything worked, as the workaround was already implemented in some of the other plugins.

patriotmedia wrote:

A question about the IP blacklst text file - can I include a wild card entry? For example...

75.127.157.*

So that everything in that range is included?

No that is not possible. But you could easily do this in the function hitcount_is_blacklisted, if you know php.

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Re: HitCount Plugin

Hi all,
         I'm having a weird problem with the latest version of the HitCount plugin. When I click the Hits & Visits tab, the screen displays the message 'Month 2011/09 indexed....' then the page refreshes itself constantly every second, with nothing happening. Can anyone help?

Re: HitCount Plugin

MickeyUK wrote:

Hi all,
         I'm having a weird problem with the latest version of the HitCount plugin. When I click the Hits & Visits tab, the screen displays the message 'Month 2011/09 indexed....' then the page refreshes itself constantly every second, with nothing happening. Can anyone help?

This is the expected behaviour - indexing month after month and preventing time outs by doing only one month per request, but it should do a different month for each request.
Please check, if you have a writable directory /data/other/hitcount_index and create it if necessary.

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Re: HitCount Plugin

I deleted the hitcount_index folder, created a new one and now it's working. Thanks for the help, it's a great plugin! :D

Re: HitCount Plugin

Hey, thx for this great plugin(your others do very well, too :D)
..but would it be possible to include front end visitor stats with an embed code or something.
For example: Total visitors and vistors today
Would be very nice...

Re: HitCount Plugin

Russian translation http://neowebtime.ru/ru.zip

Re: HitCount Plugin

m1k3y wrote:

Hey, thx for this great plugin(your others do very well, too :D)
..but would it be possible to include front end visitor stats with an embed code or something.
For example: Total visitors and vistors today
Would be very nice...

There are functions to show the hits for a page or the total number of visits (see beginning of plugin file for details).
(number of hit/visitors of today is not possible without severe performance penalty)

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Re: HitCount Plugin

mvlcek wrote:

Hitcount version 1.1:

  • supports counting hits on other websites, if you embed a link to Hitcount (@mikeh)

  • supports blacklisting IP addresses (@yojoe, @dey)

For more information see here.

.. Thanks man!! I really appreciate you adding this feature, it is going to be an imense benefit for all my clients.

Re: HitCount Plugin

mikeh wrote:

.. Thanks man!! I really appreciate you adding this feature, it is going to be an imense benefit for all my clients.

You are welcome.
Maybe I will get some donations... ;-)

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Re: HitCount Plugin

Hi, What can I do to make me write down the Googlebot?

Re: HitCount Plugin

mvlcek wrote:

http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?from=subject

Hey, what do you mean by "Include Link" ?

Re: HitCount Plugin

mikeh wrote:
mvlcek wrote:

http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?from=subject

Hey, what do you mean by "Include Link" ?

<img src="http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?from=subject" alt=""/>

or

<link  href="http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?css&amp;from=subject" rel="stylesheet" type="text/css" >

or

<script type="text/javascript" src="http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?js&amp;from=subject"></script>
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Re: HitCount Plugin

mvlcek wrote:

<img src="http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?from=subject" alt=""/>

Hmm, I cannot get it to work at all

68 (edited by m1k3y 2011-12-10 17:04:20)

Re: HitCount Plugin

short question

I want to display all vistors using  {% visits %} (dynpages) to show the component "visits" which contains this function <?php return_hitcount_visits() ?>   

but it doesn't work...normal text is shown...how do i have to call the function, to show all visitors?

Re: HitCount Plugin

m1k3y wrote:

short question

I want to display all vistors using  {% visits %} (dynpages) to show the component "visits" which contains this function <?php return_hitcount_visits() ?>   

but it doesn't work...normal text is shown...how do i have to call the function, to show all visitors?

What do you mean with "normal text is shown"?
If you include the above component on a page, it should show nothing. If you want to show the number of visits, you need to output the number with echo:

<?php echo return_hitcount_visits() ?>
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

70 (edited by Oleg06 2011-12-11 03:56:35)

Re: HitCount Plugin

how to show the number of downloads a particular file?

Re: HitCount Plugin

Oleg06 wrote:

how to show the number of downloads a particular file?

Just pass the name of the file including directories within uploads to return_hitcount_hits(). E.g. if the file is .../data/uploads/zips/x.zip, use echo return_hitcount_hits("zips/x.zip");

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.

Re: HitCount Plugin

i forgot to use the echo..i'm a php newbie :D

with normal text is shown, i meant that normal htmltext in the component is shown by dynpages.....

73

Re: HitCount Plugin

Hi Martin,

it's me again.
I use the hitcount plugin as I didn't have statistics at bplaced. In the meantime with hostingsociety there's a statistic.
But what I really loved with hitcount 0.9.1. was that in referers you see the indivdual link instead of complete domains. Unfortunately you decided to remove it for a better layout and more summurised statistics.
So I felt back to 0.9.1
A small modification for comfort I did.
line 35 in referers.php

<tr><td><a href='<?php echo $re['name']; ?>'><?php echo $re['name']; ?></a></td>
<td style="width:10%;text-align:right">
<?php hitcount_show_amount($re['visitors'],$max); ?></td></tr>

Provides an executable link to see immediatly where the hit came from.

Just for info.

bydey

my getsimple page deynews.de

Re: HitCount Plugin

French translation here, UTF-8 encoding.
Last line has a translation for "Refresh" string. This goes with a minor change I made to backend.php file on line 115 :

<input type="submit" name="show" value="<?php i18n('hitcount/REFRESH'); ?>" style="float:right;"/>

This way the Refresh button gets translated too.
Cheers :)

Post's attachments

fr_FR.php.txt 1.87 kb, 2 downloads since 2012-02-12 

You don't have the permssions to download the attachments of this post.
...sur la rampe de lancement ::
       http://getsimple.fr
       :: on the launchpad...

Re: HitCount Plugin

calmos wrote:

French translation here, UTF-8 encoding.
Last line has a translation for "Refresh" string. This goes with a minor change I made to backend.php file on line 115 :

<input type="submit" name="show" value="<?php i18n('hitcount/REFRESH'); ?>" style="float:right;"/>

This way the Refresh button gets translated too.
Cheers :)

Thank you. I'll include it in the next release.

I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.