Count per Day
"Count per Day" ist ein einfacher Besucherzähler.
Die Seitenaufrufe werden pro Artikel gespeichert. Dabei wird als "Reload-Sperre" nur ein Aufruf pro IP-Adresse und Tag berücksichtigt.
Beispiel: Wenn ein Leser 5 Artikel ansieht, sind alle "1 mal gelesen", aber der Gesamtzähler erkennt, dass es nur ein Besucher war.
Die Aufrufe können pro Artikel angezeigt werden. Im Admin-Bereich gibt es weitere Statistiken.
- Dashboard
- Widget
- Worldmap
- Visitors
- Notes
- Settings
Count per Day 2.12
Contributors: Tom BraiderTags: counter, count, posts, visits, reads, dashboard, widget
Requires at least: 2.7
Tested up to: 3.0.1
Stable tag: 2.12
License: Postcardware
Donate link: www.tomsdimension.de/postcards
Visit Counter, shows reads per page, visitors today, yesterday, last week, last months and other statistics.
Description
- count reads and visitors
- shows reads per page
- shows visitors today, yesterday, last week, last months and other statistics on dashboard
- shows country of your visitors
- you can show these statistics on frontend (e.g. on sidebar) too
- if you use Wordpress < 2.7 please use Count-per-Day v1.4
Languages, Translators
- Dansk - 100% - Jonas Thomsen - jonasthomsen.com
- Dansk 2* - 100% - Georg S. Adamsen - www.blogos.dk
- Dutch NL - 100% - Rene - wpwebshop.com
- France - 100% - Bjork - www.habbzone.fr
- German - 100% - Tom Braider, me ;) -
- Italian - 100% - Gianni Diurno - gidibao.net
- Russian - 100% - Ilya - iluhis.com/
- Swedish - 100% - Magnus Suther - www.magnussuther.se
- Polish - 90% - LeXuS - intrakardial.de
- Portuguese BR - 90% - Lucato - www.ilucato.com.br
- Uzbek - 60% - Alisher -
- Belarus - 40% - Marcis Gasuns - www.fatcow.com
Installation
- unzip plugin directory into the
/wp-content/plugins/directory - activate the plugin through the
Pluginsmenu in WordPress
First activation will create the 3 tables wp_cpd_counter, wp_cpd_counter_useronline and wp_cpd_notes.
Configuration
See the Options Page and check the default values. It's easy. :)
Install optional GeoIP database to show countries of your visitors.
If "Auto counter" is on reads on single-posts and pages will count without any changes on template.
Frequently Asked Questions
Screenshots
Arbitrary section
Shortcodes
These shortcodes you can use in the content while writing you posts.
[CPD_READS_THIS]
[CPD_READS_TOTAL]
[CPD_READS_TODAY]
[CPD_READS_YESTERDAY]
[CPD_READS_CHART]
[CPD_VISITORS_TOTAL]
[CPD_VISITORS_ONLINE]
[CPD_VISITORS_TODAY]
[CPD_VISITORS_YESTERDAY]
[CPD_VISITORS_LAST_WEEK]
[CPD_VISITORS_PER_DAY]
[CPD_VISITORS_PER_MONTH]
[CPD_VISITORS_PER_POST]
[CPD_VISITORS_CHART]
[CPD_FIRST_COUNT]
[CPD_MOST_VISITED_POSTS]
[CPD_CLIENTS]
[CPD_COUNTRIES]
Functions
You can place these functions in your template.
Place functions within post-loop (e.g. in single.php)
Use
<?php if(method_exists($count_per_day, "show")) $count_per_day->show(); ?> to check if plugin is activated.show( $before, $after, $show, $count )- $before = text before number e.g.
<p>(default "") - $after = text after number e.g.
reads</p>(default " reads") - $show = true/false, "echo" complete string or "return" number only (default true)
- $count = true/false, false will not count the reads (default true)
count()- only count reads, without any output
- cpdShow call it
getFirstCount( $frontend )- shows date of first count
- $frontend: 1 echo, 0 return output
getUserPerDay( $days, $frontend )- shows average number of visitors per day of the last $days days
- default on dashboard (see it with mouse over number) = "Latest Counts - Days" in options
- $frontend: 1 echo, 0 return output
getReadsAll( $frontend )- shows number of total reads
- $frontend: 1 echo, 0 return output
getReadsToday( $frontend )- shows number of reads today
- $frontend: 1 echo, 0 return output
getReadsYesterday( $frontend )- shows number of reads yesterday
- $frontend: 1 echo, 0 return output
getUserAll( $frontend )- shows number of total visitors
- $frontend: 1 echo, 0 return output
getUserOnline( $frontend )- shows number of visitors just online
- $frontend: 1 echo, 0 return output
getUserToday( $frontend )- shows number of visitors today
- $frontend: 1 echo, 0 return output
getUserYesterday( $frontend )- shows number of visitors yesterday
- $frontend: 1 echo, 0 return output
getUserLastWeek( $frontend )- shows number of visitors last week (7 days)
- $frontend: 1 echo, 0 return output
getUserPerMonth( $frontend )- lists number of visitors per month
- $frontend: 1 echo, 0 return output
getUserPerPost( $limit = 0, $frontend )- lists $limit number of posts, -1: all, 0: get option from DB, x: number
- $frontend: 1 echo, 0 return output
getMostVisitedPosts( $days, $limits, $frontend )- shows a list with the most visited posts in the last days
- $days = days to calc (last days), 0: get option from DB
- $limit = count of posts (last posts), 0: get option from DB
- $frontend: 1 echo, 0 return output
getClients( $frontend )- shows visits per client/browser in percent
- clients are hardcoded in function but easy to change ;)
- $frontend: 1 echo, 0 return output
- With the GeoIP addon you can associate your visitors to an country using the ip address.
- In the database a new column
countrywill be insert on plugin activation. - On options page you can update you current visits. This take a while! The Script checks 100 IP addresses at once an reload itself until less then 100 addresses left. Click the update button to check the rest.
- If the rest remains greater than 0 the IP address is not in GeoIP database (accuracy 99.5%).
- You can update the GeoIP database from time to time to get new IP data. This necessitates write rights to geoip directory (e.g. chmod 777).
- If the automatically update don't work download GeoIP.dat.gz and extract it to the "geoip" directory.
- More information about GeoIP on www.maxmind.com/app/geoip_country
Changelog
Development Version
- Bugfix: Thickbox only in backend needed, RTL on he_IL was broken
- Bugfix: startpage was not counted everywhere
2.12
- New: Flags images as sprite included
- New: improved "Browsers" management, set your own favorites
- New: improved "Mass Bots" management, more infos
- New: "Visitors per country" list
- New: "Visitors per day" list/chart
- New: works now in cached pages too (optional, BETA)
- New: easier switch to debug mode on settings
- Language update: Dansk, Dutch, France, German, Italian, Russian, Swedish
- Bugfix: CleanDB delete by IP function changed
- Bugfix: because windows symlink problem plugin dir is hardcoded as
count-per-daynow - Code updated (deprecated functions)
2.11
- Bugfix: GeoIP, update old data used wrong IP format
- Bugfix: CleanDB deletes to many entries (index, categories, tags)
- Bugfix: date/timezone problem
- New: anonymous IP addresses (last bit, optional)
- New: simple scroll function in charts
- New language: Polish, thanks to LeXuS
2.10.1
- New language: Dutch, thanks to Rene wpwebshop.com
2.10
- New language: French, thanks to Bjork www.habbzone.fr
- New: Worldmap to visualize visitors per country
- New: Shortcodes to add lists and charts to posts and pages, check counter.css too
- Bugfix: mysql_fetch_assoc() error, non existing options
- Post edit links in lists for editors only (user_level >= 7)
2.9
- New: little note system to mark special days
- New: functions to get reads/page views total, today and yesterday
- Language update: Italian, thanks to Gianni Diurno
- Language update: Portuguese (Brazil), thanks to Lucato
- Language update: Swedish, thanks to Magnus Suther
- Language update: Dansk, thanks to Jonas Thomsen
- Language update: German
2.8
- New: set user level until CpD will count loged users
- New: link to plugin page on Count per Day dashboard
- New: click on a bar in the charts reload the page with given date for
Visitors per daymetabox - New language: Swedish, thanks to Magnus
- New language: Dansk, thanks to GeorgeWP
2.7
- Bugfix: date/timezone problem
- New: change start date and start count on option page
- New: "edit post" links on lists
- New: new list shows visitors per post on user defined date
- New: link to plugin page
2.6
- languages files now compatible with Wordpress 2.9
- New: improved CSS support for RTL blogs (e.g. arabic)
2.5
- BACKUP YOUR COUNTER DATABASE BEFORE UPDATE!
- Change: some big changes on database and functions to speed up mysql queries. This will take a while on activation!
- New: "Mass Bot Detector" shows and deletes clients that view more than x pages per day
- New: see count and time of queries if CPD_DEBUG is true (on top of counter.php)
- Bugfix: cleanDB by IP now works
- Language update: Portuguese (Brazil), thanks to Beto Ribeiro
2.4.2
- Bugfix: mysql systax error
- Bugfix: no country data was stored (GeoIP), use "Update old counter data" on options page
2.4
- Bugfix: works with PHP 4.x again (error line 169)
- Change: some functions now faster
- New: GeoIP included. You have to load GeoIP.dat file on option page before you can use it.
- Language updates: Italian (Gianni Diurno) and German
2.3.1
- Bugfix: counter do not work without GeoIP Addon (nonexisting row
countryin table)
2.3
- New: chart "visitors per day"
- New: counts index pages: homepage, categories, tags (if autocount is on)
- New: visits per client/browser in percent
- New: added some parameters to functions to overwrite default values
- New language: Usbek, thanks to Alisher
2.2
- Change: USER_AGENT must have > 20 chars, otherwise we call it "bot"
- New: optional GeoIP addon to show page views per country - see Section "GeoIP addon"
2.1
- New: custom names on widget
- New: function "first count" on widget
- little changes on german translation
2.0
- New: sidebar widget
- New: reset button to set all counter to 0
- New: custom number of "reads per post" on dashboard page
- New: little chart of "reads per day" on dashboard page
- New: reads in post and page lists (optional)
- New: most visited posts in last days on dashboard page
- New: recognize bots by IP address
- New: movable metaboxes on dashboard page
- New: clean function now deletes counter of deleted pages too
- Bugfix: updates online counter on every load
- Bugfix: now empty user agents/clients will not be count
- change options to array
- create class, update/clean up/rename functions
1.5.1
- New language: Belorussian, thanks to Marcis Gasuns
1.5
- New: Dashboard Widget
- WP 2.7 optimized, for WP<2.7 please use CPD 1.4
1.4
- New: uninstall function of WP 2.7 implemented
- litle changes on layout to be suitable for WP 2.7
1.3
- New: you can delete old data if you add a new bot string
- Bugfix: Bot check was case-sensitive
- New language: Portuguese, thanks to Filipe
1.2.3
- Bugfix: autocount endless looping
1.2.2
- New language: Italian, thanks to Gianni Diurno
1.2.1
- Bugfix: Error 404 "Page not found" with "auto count"
1.2
- Bugfix: tables in DB were not be created every time (seen on mysql < 5)
- New: "auto count" can count visits without changes on template
1.1
- Languages: english, german
- HTTP_USER_AGENT will be saved, identification of new search bots
- Stylesheet in file counter.css
1.0
- first release
created by Readme Parser









Seit dem Update werden die Brwoser nicht mehr angezeigt.
Bug?
Ich würde mich zudem freuen, wenn Referer und Suchbegriffe von Google etc. angezeigt werden könnten.
Deaktiviert/Aktiviert? Einstellungen überprüft? Du kannst nun selbst die Browser auswählen, die du sehen willst. Sollte "Firefox, MSIE, Chrome, AppleWebKit, Opera" drin stehen.
Am Referer bastle ich gerade. Aber Suchbegriffe? Da wüsste ich grad nicht mal wie ich da dran kommen soll.
i like the plug-in
I like the new release

but i've some problem with validation
it appears to be the thickbox css I copy the css validation result:
URI : http://www.istruzioneveneto.it/wpusr/wp-includes/js/thickbox/thickbox.css?ver=20090514
36 .TB_overlayBG La proprietà -ms-filter non esiste : "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)" "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)"
TB_overlayBG Parse Error opacity=75)
TB_overlayBG La proprietà -moz-opacity non esiste : 0.75 0.75
TB_overlayBG La proprietà opacity non esiste per CSS versione 2.1 ma esiste in : 0.75 0.75
html #TB_overlay Numero non valido : height Parse Error document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px')
#TB_window La proprietà -moz-box-shadow non esiste : rgba(0,0,0,1) 0 4px 30px rgba(0,0,0,1) 0 4px 30px
#TB_window La proprietà -webkit-box-shadow non esiste : rgba(0,0,0,1) 0 4px 30px rgba(0,0,0,1) 0 4px 30px
#TB_window La proprietà -khtml-box-shadow non esiste : rgba(0,0,0,1) 0 4px 30px rgba(0,0,0,1) 0 4px 30px
60 #TB_window La proprietà box-shadow non esiste per CSS versione 2.1 ma esiste in : rgba(0,0,0,1) 0 4px 30px rgba(0,0,0,1) 0 4px 30px
* html #TB_window Numero non valido : margin-top Parse Error - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px')
* html #TB_load Numero non valido : margin-top Parse Error - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px')
#TB_HideSelect Parse Error opacity=0)
#TB_HideSelect La proprietà -moz-opacity non esiste : 0 0
#TB_HideSelect La proprietà opacity non esiste per CSS versione 2.1 ma esiste in : 0 0
* html #TB_HideSelect Numero non valido : height Parse Error document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px')
#TB_iframeContent La proprietà _margin-bottom non esiste : 1px 1px
is it possible to fix it?
thanks in advance
(I had to disinstall and use the previous version..)
angela
I can't fix it, because it is a WordPress core file. The "problems" are browser "hacks" which are not css standards. But you can use it. The "Mediathek" uses the same thickbox.
You can patch it, to only load the thickbox in backend.
thanks a lot I'll patch it!
angela
i used this plug in for my wordpress, but i have problem in counting the visitor online. when in homepage, the counter will changes to zero. but when i go to another page the online visitor will appears again. can you help me with this problem? this a nice simple plug in , and i want to keep this one...
The online counter is only one function for all visits, posts and startpage. Works in my blogs.
i try to install a fresh wordpress in localhost and install the plugin. it's still the same problem. do i need to set something? and how to use codes in arbitrary section? thanx
You have only to activate the auto counter which calls the online counter.
The shortcodes you can place in the content while writing your posts.
The functions you can places in your theme files directly. But i thing the widget is the simplest way to show some numbers in your frontend.
auto counter checkbox already activated. but it's still not working. i haven't set anything in my wordpress. is anything wrong? when i go to another page "the currently visitor online" number will turn on, but when i go to homepage again it's back to zero
The online counter should 5 minutes (300 seconds, first option) show 1 if a visitor was counted. What is your homepage? Default, last x posts?
oww..i set the counter to 3 seconds..my homepage http://www.sahabatgloria.org/. "pengunjung online" "means current online". visitor". but i just set it to 300. i change the setting on localhost...
...
this is my setting in localhost
Online time: 300
Loged on Users: administrator
Auto counter: checked
Anonymous IP:checked
Show in lists: check.
the other option is default
...
it works! thanks a lot for your quick reply....
My counter for the "Reads Today and Yesterday" and "Visitors Today and Yesterday" is saying 0 and has done for some time. I didn't change anything and all of a sudden they all went to 0. Any suggestions?
Auto counter is on? Do you have counts in the charts?
De/reactivate the plugin.
And patch a bug with the index pages:
change in
counter.phpline 231$page = 0;to$p = 0;"the visitor currently online" stll not change when i first go to the homepage. when i go to another page it will count and back to homepage the counting will remain 1. can i make it counting when someone visited the homepage?
i wrote an email