Posts: 2,094
Threads: 54
Joined: Jan 2011
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.
Posts: 45
Threads: 5
Joined: Feb 2011
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.
Posts: 2,094
Threads: 54
Joined: Jan 2011
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 :-(
Posts: 45
Threads: 5
Joined: Feb 2011
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?
Posts: 2,094
Threads: 54
Joined: Jan 2011
2011-11-01, 16:36:33
(This post was last modified: 2011-11-01, 17:14:56 by nime.)
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.
Posts: 11
Threads: 3
Joined: Sep 2011
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?
Posts: 2,094
Threads: 54
Joined: Jan 2011
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.
Posts: 11
Threads: 3
Joined: Sep 2011
I deleted the hitcount_index folder, created a new one and now it's working. Thanks for the help, it's a great plugin!
Posts: 73
Threads: 7
Joined: Jul 2011
Hey, thx for this great plugin(your others do very well, too )
..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...
Posts: 1,928
Threads: 88
Joined: Apr 2010
Posts: 2,094
Threads: 54
Joined: Jan 2011
m1k3y Wrote:Hey, thx for this great plugin(your others do very well, too )
..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)
Posts: 661
Threads: 52
Joined: Feb 2011
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.
Posts: 2,094
Threads: 54
Joined: Jan 2011
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... ;-)
Posts: 3
Threads: 0
Joined: Feb 2011
Hi, What can I do to make me write down the Googlebot?
Posts: 661
Threads: 52
Joined: Feb 2011
mvlcek Wrote:http://your-path-to-getsimple/plugins/hitcount/ping/ping.php?from=subject Hey, what do you mean by "Include Link" ?
Posts: 2,094
Threads: 54
Joined: Jan 2011
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&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&from=subject"></script>
Posts: 661
Threads: 52
Joined: Feb 2011
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
Posts: 73
Threads: 7
Joined: Jul 2011
2011-12-11, 07:00:33
(This post was last modified: 2011-12-11, 07:04:20 by michael420.)
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?
Posts: 2,094
Threads: 54
Joined: Jan 2011
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() ?>
Posts: 1,928
Threads: 88
Joined: Apr 2010
2011-12-11, 17:55:29
(This post was last modified: 2011-12-11, 17:56:35 by jhondavis.)
how to show the number of downloads a particular file?
Posts: 2,094
Threads: 54
Joined: Jan 2011
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");
Posts: 73
Threads: 7
Joined: Jul 2011
i forgot to use the echo..i'm a php newbie
with normal text is shown, i meant that normal htmltext in the component is shown by dynpages.....
Posts: 29
Threads: 2
Joined: Jul 2011
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
Posts: 26
Threads: 1
Joined: May 2011
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
Posts: 2,094
Threads: 54
Joined: Jan 2011
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
Thank you. I'll include it in the next release.
|