Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HitCount Plugin
#51
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.
Reply
#52
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.
Reply
#53
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.
Reply
#54
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?
Reply
#55
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.
Reply
#56
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?
Reply
#57
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.
Reply
#58
I deleted the hitcount_index folder, created a new one and now it's working. Thanks for the help, it's a great plugin! Big Grin
Reply
#59
Hey, thx for this great plugin(your others do very well, too Big Grin)
..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...
Reply
#60
Russian translation http://neowebtime.ru/ru.zip
Reply
#61
m1k3y Wrote:Hey, thx for this great plugin(your others do very well, too Big Grin)
..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.
Reply
#62
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.
Reply
#63
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.
Reply
#64
Hi, What can I do to make me write down the Googlebot?
Reply
#65
mvlcek Wrote:http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?from=subject
Hey, what do you mean by "Include Link" ?
Reply
#66
mikeh Wrote:
mvlcek Wrote:http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?from=subject
Hey, what do you mean by "Include Link" ?

Code:
<img src="http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?from=subject" alt=""/>
or
Code:
<link  href="http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?css&amp;from=subject" rel="stylesheet" type="text/css" >
or
Code:
<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.
Reply
#67
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
Reply
#68
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?
Reply
#69
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:
Code:
<?php echo return_hitcount_visits() ?>
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#70
how to show the number of downloads a particular file?
Reply
#71
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.
Reply
#72
i forgot to use the echo..i'm a php newbie Big Grin

with normal text is shown, i meant that normal htmltext in the component is shown by dynpages.....
Reply
#73
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
Code:
<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
Reply
#74
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 :
Code:
<input type="submit" name="show" value="<?php i18n('hitcount/REFRESH'); ?>" style="float:right;"/>
This way the Refresh button gets translated too.
Cheers Smile
Reply
#75
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 :
Code:
<input type="submit" name="show" value="<?php i18n('hitcount/REFRESH'); ?>" style="float:right;"/>
This way the Refresh button gets translated too.
Cheers Smile

Thank you. I'll include it in the next release.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply




Users browsing this thread: 1 Guest(s)