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.13
Contributors: Tom BraiderTags: counter, count, posts, visits, reads, dashboard, widget
Requires at least: 2.7
Tested up to: 3.0.1
Stable tag: 2.13
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
- Plugin: www.tomsdimension.de/wp-plugins/count-per-day
- Donate: www.tomsdimension.de/postcards
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
- Portuguese BR - 100% - Beto Ribeiro - www.sevenarts.com.br
- Polish - 90% - LeXuS - intrakardial.de
- 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]
[CPD_REFERERS]
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
getReferers( $limit = 0, $frontend )- lists top $limit referers, 0: get option from DB, x: number
- $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
2.13
- New: Top referers
- Bugfix: Thickbox only in backend needed, RTL on he_IL was broken
- Bugfix: startpage was not counted everywhere
- Language update: Portuguese (Brazil)
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









Hallo!
Das scheint so ziemlich der Plugin zu sein, nachdem ich eigentlich suche. Nur kapier ich noch nicht ganz, was genau ich machen muss, damit er funktioniert. Ich möchte gerne wissen, wer auf welche posts und pages von meinem blog kommt, aber ich will eigentlich niemandem zeigen, wie viele Leute wo waren. Was für ein php-snippet muss ich denn dann wo einbauen? Oder am Ende gar keins und nur abwarten? Tut mir leid wenn das 'ne dumme Frage ist, aber mit php hab ich nicht so viel Erfahrung!
Hallo Juno,
ist keine dumme Frage. Ich habs einfach noch nicht richtig erklärt. Bin ja auch noch am üben.
Du kannst in der single.php von deinem Template irgendwo "im loop", also praktischerweise beim "content", folgenden Code eintippen:
< ?php if ( function_exists('cpdCount') ) cpdCount(); ?>
Dann wird der Zugriff gezählt, aber nichts auf der Seite angezeigt. Die Auswertung ist dann der erste Screenshot oben.
Super, danke!
hi. Thanks for plugin
perfect.
Regards
Hmmm... tut nicht.
Im readme steht, dass zwei Tabellen in der Datenbank angelegt werden. Nö. Tut er nicht.
Nachdem ich keine Besucher gezählt bekam und am Ende eine Beschwerde des Plugins wg. Division durch null da stand, hab' ich 'mal per phpmyadmin nachgeschaut.
Woran mag's liegen? An WP 2.5.1?
Grüsse
om.
Achso... und den Monat schnallt er irgendwie auch nicht. Da steht dann "gezählt ab 29. 2008"
om.
Also 2.5.1 geht, hab ich hier auch. Müsste alles mit den nicht vorhandenen Tabellen zusammenhängen. Ohne die hat er auch kein Datum. Die sollten beim aktivieren auf der Plugin-Seite erstellt werden. Aber die Funktion wird bei jedem Zählversuch aufgerufen, falls die Tabellen noch nicht da sind. Stimmen die Rechte zum erstellen?
Sollten eigentlich stimmen, schliesslich ist die WP-Installation ja auch per script gelaufen...
Kann ich die von Hand erstellen und wenn ja, mit welchen Werten? Vielleicht hilft ja ein wenig Anschubsen.
om.
Ich hab mal gemailt. Plugin nochmal deaktivieren/aktivieren?
Hab's bekommen, danke.
Aktivieren/Deaktivieren schon probiert, offensichtlich ist die SQL-Syntax nicht OK für den sämlichen Strato-Server mit MySQL 4.0.27...
Und ich hab' soooowas von keine Ahnung von so Zeugs.
om.
Nun wissen wir ja wo wir suchen müssen. Wird sofort (heut abend) bereinigt.
Vielen Dank für die schnelle Hilfe!
om.
Hello Tom,
Ich glaube dass deine Plugin genau was ich brauche sein koennte. Aber ich kann nicht deine Gebrauchanweisung zo leicht folgen. Deutsch ist nicht mein Sprache und mein PHP ist auch nict so gut.
So... fuer jeden Page die ich eine Zahl haben will, muss "" darin geschrieben, oder? Dann die Stats werden in mein WP Dashboard erscheinen. Hmmmm - fuer mich, geht das nicht. Ich bekomme ein Fehler "divide by zero", mit keiner count update troztdem weiss ich das einige Leute die Site besucht hast... Hast du eine Ahnung warum?
Wenn du mich in English antworten kann, wurde ich dankbar sein!
Alan
Hello Alan,
my English is worse than your German!
You can try the update version 1.2. It changes the createTable function that made problems. And no changes in the template are needed anymore.
Also bei mir klappt es mit der Version 1.2 nicht. Es scheint mir ein Bug drin zu sein.
Wenn ich den AutoCounter aktivieren, kann ich keine Seite und keine Artikel mehr öffnen/lesen.
Nur die Startseite klappt noch.
Im Dashboard zählt der Counter aber korrekt.
Gruß Henninf
In der Tat lag als Version 1.2 kurzzeitig eine falsche Datei zum Download.
OK, 1 Stunde kann auch schon zu lang sein. In der counter.php muss in Zeile 55 "break;" stehen. Wenn nicht, lade bitte das Plugin nochmal oder füge diese Zeile ein. Dann sollte es laufen wie auf dieser Seite.
Hallo Tom,
leider muss ich dir sagen, dass es das "break" Problem nicht war.
Ich habe mir die neue 1.2 runtergeladen, die alte deinstalliert und die neue aufgespielt.
Das Problem bleibt. Sobald ich den AutoCounter aktiviere kann ich, außer auf der Startseite, keine Artikel mehr lesen.
Es erscheint immer die Meldung "Leider nicht gefunden".
Gruß Henning
Gruß Henning
Ohne "break;" entsteht bei mir manchmal eine Endlosschleife, so dass der Inhalt der Seite x-mal angezeigt wird. Das kann ich so leider gar nicht nachvollziehen.
Version 1.2.1 steht als Bugfix bereit. Den 404-Error sollte es nicht mehr geben.
Just one question: it's possible to ad a"start counter from" option.? Because I have a number of visitors allready counted and if I instal your plugin it'll show only from now
Hello Razvan,
my counter uses it own tables. The start date is the first record in the table. If you can load your old data into these tables (in right format and only one IP per day per page) the counter would use the old visits too. I think so.
[...] Count Per Day : WP엔 기본 카운터가 없다. 아쉬움! -아직 미설정. [...]
Hallo!
Wie kann ich denn die Sprache auf Deutsch umstellen?
Gruss,
Bernd
Es stehen Sprachdateien für deutsch 'de' und italienisch 'it' zur Verfügung. Die Sprache wird von WordPress in der wp-config.php bestimmt. Dort muss für deutsch 'de_DE' drin stehen. Dann ist auch das Plugin auf deutsch.
Ah, bei mir stand 'de'. Alles klar, jetzt isses deutsch!
Bernd
Please,continue
salut,
j'ai télécharger le pling "count-per-day" je l'est installé mais il ne fonctionne pas encore malgré qu'il est activé et même temps j'ai ajouté l'instruction () dans le single.php de mon thème
est ce que je devais créer les 2 tables manuellement ou ils seront générés automatiquement.
Hi Mohammed,
can you tell me the problem in german or english? i hope google have understand you correct.
The 2 tables will create automatically when you activate the plugin. if you only want to count an view the status in the admin area no changes on single.php needed.
Hello Tom,
Is this compatible with 2.6.1? I installed it, but there are no hits recorded yet. Maybe it takes a little while to start collecting? Thank you for the counter!
-Alicia
Hello Alicia,
it's not testet with 2.6.1, but I thing it's work.
Can you find the 2 new tables "cpd..." in the DB? Do you have activated "Autocount"? If not you must edit single.php in your theme to count the visits manually.
Hi Tom,
I made a translation to brazilian portuguese. E-mail me and I'll send you.
(Alicia, it works on 2.6.1)
Hallo Tom,
ich habe dein Plugin genommen und akitviert. Leider verstehe ich nicht, wo ich gucken muss, damit ich weiß wie viele Besucher ich habe? Kannst du mir helfen, bin am verzweifeln. Ach übrigens, bei mir gibt es keine single.php also kann ich auch diesen Code nicht eingeben.
Hallo Michael, mal sehen ob ich dein Kopfschmerzen lindern kann.
Wenn da Plugin aktiviert ist, sollte auf dem Dashboard-Untermenü die Seite "Count per Day" auszuwählen sein. Ist oben der erste Screenshot. Wenn noch nichts gezählt wurde, sind die 3 Spalten halt leer bzw. zeigen komische Sachen (falsches Datum) an.
Die single.php müsste in deinem Theme-Verzeichnis liegen. Wenn du nur zählen und die Auswertung auf der Dashboard-Seite sehen willst, aktiviere einfach den Auto-Counter in den Einstellungen. Dann brauchst du keinen Code zu ändern da automatisch gezählt wird.
Danke Tom,
hat geklappt. Ich habe aber noch eine Frage. Bei "Besucher gesamt" steht immer die gleiche Zahl und bei "Besucher momentan online" auch. Das kann doch nicht sein, dass immer die gleichen Zahlen da stehen, oder? Bei "Besucher heute" steh 0. Kannst du mir vielleicht helfen?
Ich glaub, ich muss die Anleitung genauer schreiben.
"Besucher gesamt" sind alle Besucher seit dem Start. Das Datum steht ja auch da. Normalerweise werden aber angemeldete Benutzer nicht gezählt. Du musst also zum Testen deine Seiten mal besuchen, ohne dich vorher anzumelden oder bei den Einstellungen angeben, dass alle Besuche gezählt werden sollen. Für "Besucher heute" gilt das gleiche.
Hallo Tom,
wenn ich einfach nur die gesamt Besucher (des Blogs, keiner einzelnen Page) in einem beliebigen Tag einzeigen lassen will, welchen PHP Code muss ich denn einfügen? Für solche Leute wie mich wären ein paar komplette Beispiele in der Readme.txt sehr vorteilhaft!
Vielen Dank
Hallo Pauli,
so eine Funktion gibts (noch) nicht. Momentan kannst du im Dashboard nur heute und gestern sehen. Wäre eine Überlegung wert.
In der Readme sind die Funktionen durchaus kurz beschrieben. Bau sie in dein Template ein und du siehst, was sie machen. Ein lebendes Beispiel sozusagen.
Tom, wenn jemand über eine Suchmaschine auf meine HP kommt, wird das dann mitgezählt?
Ja, ist schließlich der einzige Zweck dieses Plugins.
Die Suchmaschinen selbst, die du bei den Bots eintragen kannst, werden nicht gezählt.
Ähm...was genau sind Bots?
Wenn eine Suchmaschine deine Seite besucht um sie in ihren Index aufzunehmen, nutzt sie automatische Programme (robots, bots). Das sind keine echten Besuche von echten Menschen. Ordentliche Suchmaschinen erkennt man am Client. Da steht dann eben nicht "Firefox" drin sondern "search", "spider" oder sonstwas. Diese Wörter kannst du angeben und das Plugin ignoriert diese Besuche.
Achso. Danke dir.
P.S. Super Plugin hast du!
Hello, Tom, and thank you very much for a great plugin that does not use many resources. Excellent!
I have read your documentation but I am not a PHP coder.
I would love a plugin or a widget that would display . Our blog contains seasonal topics that are popular at different times of the year. I am sure that other boggers would enjoy this feature also.
With best wishes,
Danny
Tom,
My last comment lost the meaning.
I would love a plugin or a widget that would display:
. the 20 most popular posts in the past 7 days
I could place that in a page or in the sidebar.
It would be wonderful!
Thanks,
Danny
Hello Danny,
thanks for the idea. I will think about it. At the time is non function for this in the plaugin. But give me a few days...
Hallo Tom,
bei ist es irgendwie eigenartig. Ich hab google adsense und wenn ich mich da einlogge, kann ich sehen wie viele Besucher auf meiner Hp waren. Heute steht bei google, dass ich 0 Besucher habe und bei deinem Plugin, dass ich 10 Besucher habe. Kannst du mir vielleicht sagen wo das Problem liegt? Ich hab noch eine andere Frage und zwar, wenn jemand mit einer IP-Adresse z. B. 10x auf meine Seite kommt, wird das nur 1x mitgezählt? Ich hoffe du verstehst was ich meine.
Vielen Dank.
Hallo Michael,
ganz klar, Google hat sich verzählt.
Das Zählen ist leider nicht ganz einfach. Daher zeigen sicher alle Counter unterschiedliche Sachen an. Ist immer die Frage, was gezählt wird. In meinem Plugin kannst du ja zb. bestimmte Clients/Bots ignorieren. Aber leider geben sich auch Bots manchmal als IE 6.0 oder sowas aus. Ich hatte hier grad 20 Zugriffe, fast gleichzeitig. Das war eine Firma in USA die nach illegalen/geschützten Inhalten sucht. Diese Zugriffe zählt mein Plugin mit. Google hat da evtl. bessere Möglichkeiten und kann vielleicht die IP mit einbeziehen.
Ansonsten zähle ich auch 50 Zugriffe von 1 IP an einem Tag nur als 1 Besuch, der sich halt 50 Seiten angesehen hat.
Great plugin Tom - thanks! The only problem I'm having is when I add new bots to the list and then try and clean the database I get the following error each time
Fatal error: Maximum execution time of 20 seconds exceeded in /home/rileycat/public_html/blogs/wp-content/plugins/count-per-day/counter.php on line 96
I had hoped to change that time but when checking lines 92- 96 I see only
Any suggestions?
Hello Doug,
i think "Maximum execution time of 20 seconds" is an PHP error. 20 sec to execute the script and show the page. Is it shown 20 sec after click the button? I have never seen this error.
Hi Tom.
I have activated the great login and everything is working perfectly. I have also placed the "" in my Index, so views per post is shown at frontend... No worries - working perfectly.
BUT - I cannot change the style (font, color etc). I have placed some text in the code as well ("number" of viewers have seen this post"). I have tried to change everything is the counter.css, but nothing happens
. What am I doing wrong? Looking forward for your answer.
Kind regards,
Charlotte
Hi Charlotte,
don't worry.
If you want add css to the output of
cpdShow()set the function inspan class="counter"or another class. These class you can "style" in your themestyle.css.... I meant the great plugin - not login, ofcourse :o)
BR,
Charlotte
Hi Tom,
thanks for your quick reply... Well, Im kind of a newbie - so Im not quite sure how to do this.
In index.php I have the cpdShow. Should I place (span class="counter") below the line in index? Or do I write:
And would this create some extra lines in style.css, where I can change info regarding counter?
Sorry for being aboslutely at zero
Kind regards,
Charlotte
Hi Tom,
Thank you for the great plugin. I'm happy to use it.
I had some problems with the online users. it didn't seems to be cleared.
I think that you may have a bug in cpdCount(). the online users counter (DB) is cleared only if the user is counted, so in a low traffic blog, (where mostly the blogger visits) the online counter will remain for very long time.
I moved the DELETE query (and the $timeout definition) out of the if(count... section and it seems to solve the issue.
Cheers,
Raz
Thank Raz for your reply. I will take a look.
Hi!
I'm using your plugin for 2 weeks now.
How can I add some statistics in the sidebar in order to show the most visited posts?
How can I reset the counter? Just uninstall and reinstall?
I have a contest and the users must revisit their own galleries. Is there any way they can cheat the system using some websites to change their IP and vote over and over again?
Thanks!
Hello Catalin,
currently is there no reset function. you can uninstall/reinstall or empty the tables. I will think about an update.
Sidebar: no widget but you can use the functions directly to show the numbers like
echo cpdGetUserAll().' visitors'in php tag.Cheat: I count 1 view per 1 IP per 1 day. The user can visit the site at work and at home = 2 views. Many PCs in one LAN = 1 IP in Internet = 1 view.
Hello,
Wher we can find the Count-per-Day v1.4.
Thanks
I updated the post.
1A-Plugin so wenig wie möglich, so viel wie nötig!
Ein kleinerer Schönheitsfehler ist mir aufgefallen, ein Besucher wird erst dann als Besucher erkannt, wenn er explizit einen Artikel aufgerufen hat, nicht aber beim Betrachten der Übersicht auf der Hauptseite (index.php). Damit meine ich nicht "Besucher pro Artikel", sondern "Besucher gesamt:" oder "Besucher online:" usw.. Mich würde es nämlich sehr interessieren, wieviele Leute überhaupt mein Seite besucht haben und nur die aktuellen Artikel auf der Hauptseite gelesen haben.
Notfall kann ich hierfür auf die Serverstatistik zurückgreifen, also nicht so schlimm.
Gruß und Dank für das Plugin -- mik
Das soll so!
Die Counter werden ja direkt mit den Artikel-IDs verbunden. Nen allgemeinen Counter kann ich mir ja mal überlegen. Kann aber etwas dauern. Die Zeit...
Thanks, for the 1.4 version.Only one question, how offen the review of the reads updates, for ex. I read a post but the result in the statistics did not change,it is still zero...
Do you have checked "Loged on Users"? Otherwise you will not be count if you loged on an visit a post.
Well, I thought that would be the solution, but it's not. I have the "count logged in users" box unchecked, but it's still counting me, even though I start from the log-in page and only access the site via the dashboard and preview. I see that someone else is having the same issue.
OK, i will check the code these days.
Great Plugin.
One more issue, the plugin do not consider the blog timezone.
Here in New Zealand the 'reads today' counter reset in the middle of the day.
Cheers.
It's a middle european plugin!
OK, i will check who cpd get the time.
Probably a dumb question, but is it counting ME? There always seems to be one visitor online the same time I am...
I thought because I was logged in as admin, I wouldn't be counted? Was this an incorrect assumption?
Do you have checked "Loged on Users"? Then you also will be count if you are loged on.
Yeah...apparently I had.
Is there a way to show to count per post in the post list?
A new column could be added just after tags - comments - date
not yet, i will think about.
I just installed your plugin. However, I don't have the 'Count logged in' checkbox marked, and it's counting them. WP Version: 2.7.1
That's all
--dez
Thanks for your plugin.
Questions: The week starts on Sundays or Mondays?
Regarding Reads per Post
I wasn't seeing low count posts and realized that you put a hardwired count of 50 posts. May I suggest that you make it an option?
Francisco
"week" = last 7 days
And yes, the 50 is hardcoded. I work on a solution to show the counter in the post list. But you can change or delete the "limit 50".
I've been using Count Per Day since my site opened and I am a huge fan of it! I'm a little worried though since I updated with a new template, the Reads per post data is gone. In Dashboard, it shows an empty column. Is there a way to reset the counter and regain the counting on my posts? Thanks so much!
Hello Olivia,
first check your database. Do the counter table are empty? Then the data lost and i hope you have an backup of this table.
Do you have uninstall the plugin on the options page?
If you only change the template the plugin should work. A template isn't change the backend.
Hi:
Thank you for the plugin. Until a few hours ago it worked perfectly. Today I look at the dashboard and all I see is a blank page. The configuration page is OK. I tried disabling and re-enabling. I tried re-installing the files again. Still blank dashboard page.I am using version 1.51.
Any idea of what the problem may be?
Francisco
Sorry, no idea
Do you only see a blank page? No Header or something?
Do you have installed another plugin or change anything?
I looked with phpmyadmin and the counter is working
Francisco
I finally "solved" it.
I disabled all plugins and started to reenable them again. I found a plugin that didn't allow Count per day to appear in Dashboard.
As I said, it worked. But that plugin can't be the culprit because I been using it before I installed Count per Day. And i didn't change anything last night, and I have the same combination in another blog and it's doing ok.
I suspect it's either related to the fact that my blog is having a lot of traffic in the last few days and/or coincidentally something broke in the WP files.
If I find anything I will write to you.
Francisco
Hello. Tom..
Thanks a lot for this plugin...
I have taken your plugin and added a functionality to count-show hits per post/ total hits. I also added functionality to show these stats in the control panel...
If you want to see it or even implemented in your original plugin, please contact me....
Where is count-per-day 2.0?
2.0 is the development edition (see other Versions). You can test it. Remember to deactivate /activate the plugin to update the settings.
2.0 is out now.
hi, after the upgrade to the 2.0 version, when i access the admin area i have this parsing error Parse error: syntax error, unexpected '}' in /home/xxx/Xxx/wp-content/plugins/count-per-day/counter.php on line 955
im using WP 2.8
my bad, i forgot to disable/reactivate, i resolved deleting and reuploading the plugin. thumbs up for this great plugin, my blog cant live without it
Hi, I updated the plugin - counts-per-day but theres an error message that I didnt get before. Warning: Division by zero in E:\domains\i\inspiringyoungpeople.co.uk\user\htdocs\wp-content\plugins\count-per-day\counter.php on line 947
Thanks.
Do you have deactivated and reactivated the plugin?
Can you change the number of columns you see on the CpD dashboard? Default should be 4 but in your case its 0.
Can you please help me?
I used the following code in my theme:
http://pastebin.com/m507feb39 (sidebar.php)
Now what must I do that my counter works again?
Wenigstens die Deutschen könnten deutsch mit mir reden.

Welche Version benutzt du? In der 2.0 haben sich die Funktionen geändert und liegen in einer Klasse. Also musst du sie so
$count_per_day->show();aufrufen.count()müsste aber auf jeden Fall zum Artikel rüber, damit die postID erkannt wird. Oder AutoCount einschalten.Wieso benutzt du nicht der Widget? Würde die Sache einfacher machen.
Mal ein Beispiel: http://pastebin.com/m8b28dae Ist ja eine interessante Seite.
Dankesehr für die schnelle Antwort.
Die Seite find ich ganz praktisch, wenn man schnell Code tauschen möchte.
AutoCount ist an. Da ich aber nur die gesamte Statistik benötige kann ich count() ganz weglassen oder?
Das Widget ist mir leider noch etwas zu wenig konfigurierbar
Möchte gerne die Anzeigenamen selber vergeben. Außerdem fehlt mir da die Option GetFirstCount().
Zum Umbenennen könntest du die Sprachdatei ändern. Geht ganz einfach mit Codestyling Localization direkt im Blog. Ich hab absichtlich die gleichen Bezeichnungen wie im Dashboard genommen damit niemand verwirrt ist.
Und
getFirstCount()hielt ich nicht für so wichtig. Aber die könnte ich noch nachrüsten.Wenn ich var_dump($count_per_day); in der sidebar.php ausführe ist das Ergebnis immer NULL.
Wenn ich dasselbe nun in der index.php vor oder nach get_sidebar(); ausführe klappts wunderbar. Was könnte das für ein Problem sein?
Habs nicht getestet aber versuch mal global
$count_per_day;ganz oben in sidebar.php um die Variable bekannt zu geben.Herzlichen Dank, so klappts
Ich stell mir jetzt aber die Frage warum es in der vorigen Version ohne global funktioniert hat? global ist ja nicht gerade "schön".
Ganz einfach, vorher waren die Funktionen ganz "global". Nun liegen sie in einer Klasse, die als $count_per_day instanziert wird. Ist vielleicht erstmal etwas komplizierter aber sauberer.
Aber ich entschuldige mich auch für die Unannehmlichkeiten. Ist natürlich dumm, wenn nach einen Update etwas nicht mehr geht.
Entschuldigen musst du dich aber wirklich nicht
Erstens hast du mir ja sehr schnell geholfen und zweitens ist eine Weiterentwicklung des Plugins immer super
Also wenn du mutig genug bist, kannst du mal die Development Version testen. Hab das Widget nach deinen Wünschen erweitert.
hehe danke
Da ich immer das automatische Update benutze warte ich aber lieber noch ein wenig.
Feigling!
Das Update kommt dann in den nächsten Tagen, ich muss erst noch mit Fransisco die englischen Begriffe klären.
I got the divide by zero error, but it disappeared with the first count. Another error was the initial date: it appeared as "day.year" (missing month). Also disappeared with the first count.
Criticism:
There is a lot of white space between "reads per month" and "reads per post".
Another "error": the "last reads" appears to the left and just after "reads per post" instead of just after the Read per day chart.
Suggestions:
Something else. You use (in the English version) the word "Reads". I believe it would be more appropriate the following (please take into account that my native language is Spanish):
Reads at all->Total visitors
Reads today->Visitors today
Reads yesterday->Visitors yesterday
Reads last week-> Visitors last 7 days (last week, as I understand it, means the period from the previous Sunday to Saturday, and you mean the immediate seven days including the present day)
Ø Reads per day->Visitors per day
Counter starts at-> Counter starts on
Reads per month->Visitors per month
Reads per post -> Post count
Last Reads-> Latest counts
Finally: thanks again for your plugin!
Francisco
Do you try to move the metaboxes on dashboard? So you can "delete" the white spaces.
"Reads": I'm a german and asked a friend in england. He says "reads". I could start a poll.
No, I didn't! http://www.tomsdimension.de/wp/wp-includes/images/smilies/icon_redface.gif Now I have, and no more white space.
Regarding reads and visitors, and counts:
In the two metaboxes, Last reads and Reads per post, they are the result of visitors that have read many posts each (hopefully!). Their total sum is not equal to the visitors of the site. Read is appropriate, though I prefer count.
But the Reads at all (bad English), Reads per month and Reads per day, all refer to visitors counted only once per day, so Read is inappropriate. Count may be used but Visitor would be clearer.
Francisco
OK, you are right. In my german translation i call it "Besucher" = Visitors.
[...] direkt auf der Autoren-Seite wo man auch Hilfe bei Problemen bekommt. [...]
Hi:
Something strange. Looking at reads per post:
.....
# 54 Salta: Elecciones provinciales el 06-09-2009
# 5151 Misiones: elecciones el 28-06-2009
# 45 Jujuy: elecciones 28-06-2009
# 40 ¿Figura mal en el Padrón Electoral?
....
Searching with php I saw that the 5151 is really 51.
Doing a copy of the section it gave me as if there where a line with no post that had 51 reads.
I then began changing the Last Reads-days option to see when that happened.
Even stranger. Now the line that was 5151 is ok and another has "changed"
#
# 51 Misiones: elecciones el 28-06-2009
# 50 Salta: Elecciones provinciales el 06-09-2009
# 45 Jujuy: elecciones 28-06-2009
# 3940 ¿Figura mal en el Padrón Electoral?
# 37 ¿Votar cada cuatro años?
# 33 Mendoza: elecciones el 28-06-2009
Francisco
Oh Francisco, should i establish a hotline for you?
The problem with non exist posts i had too. I think the "double numbers" comes with the new floating css style.
You can delete these "no post counter" by clean the database on options page.
This happens in one of my sites which is dedicated to the argentine elections on Sunday. I have had days with more than 5000 visitors, which is a lot in my case. In fact, when I wrote on the first days of June it apparently was too many visitors, the MySql server crashed a lot til I installed a cache and disabled several plugins because my host was threatening to kick me out. I suspect that the Count per day 1.5.1 tables became corrupted and I had to first disable it and then drop them (the tables).
I don't understand the clean database option. Does it zero the table (no reads) as if I install Count per day for the first time?
Francisco
"Clean the Database" don't empty or drop the table. It deletes counts of defined spam bot if you add a new one to the list. And it deletes counts of non exists pages. In case of delete a page or post after several days or month you don't need the count data.
"Reset Counter" ist empty the table and deletes all data like a fresh install.
Hi Tom,
Thank you very much for v2 of Count per Day. I will enjoy using the feature that you implemented (comment #9 above).
Just one problem: when the count of visits reaches approximately 100,000 then Cout per Day just dies. It displays nothing on the dashboard. I have to clear down the tables and restart the count from zero. Any ideas?
With best wishes,
Danny
Hi Danny,
sorry, no idea. Where are 100,000? Total visitors? Visitors per day? There are no restrictions.
Tom, we get approximately 100,000 unique visits each month and Count per Day always stops working after roughly 1 month. I did save logs for you the last time it happened but a disk crash and data loss means that they are lost.
We are more interested in the most popular articles in the last xx days, so this is not a problem because will run a cron job to delete records that are older than xx days. If we reach 100,000 visits every 14 days I will be very happy
OK, but nontheless i have filled my table and test the plugin. Lo and behold i have seen your error.
If wordpress gets too many rows by an sql request it need a lot of memory to create the array. I have 32 MB PHP memory-limit and the error cropped up by 40000 total visitor. Now i use a direct database connection without the wordpress functions. I hope it works without empty the table every 14 days.
Try the Development Edition.
Hi und zwar versuche ich auf meiner sidebar.php den counter anzeigen zu lassen.
Leider bekomme ich ne fehlermeldung. Hier mal mein code.
http://pastebin.com/m28779d21
Kenn mich mit php nicht so aus, bin noch am einarbeiten.
Fehlt vll zuvor ein code schnipsel.
danke schon mal
Hi Steffen,
schau mal Manus Kommentar an, scheint bei dir das selbe zu sein. Schreib mal oben drüber:
<?php global $count_per_day; ?>.das wars danke
hab ich überlesen
Thank you for testing a high row count, Tom. Your solution makes sense.
I will install it now and let it run for several weeks to prove your solution.
Hallo!!
Ich habe mal eine Frage zu dem Besucherzähler. Bei mir klappt alles wunderbar...jetzt wollte ich ma fragen was ich machen muss, damit auf meiner homepage die gesamtbesucherzahl angezeigt wird. Habe leider keine Ahnung von diesem ganzen php usw., bekommt man das auch mit einfachen mitteln hin??
Mfg
ofkoors
Am einfachsten wäre das Widget in den Sidebar zu legen und dort ggf. nur den Gesamtzähler anzuzeigen.
Alles klar danke schön!!! Dann noch eine kleine frage, muss ich bei den einstellungen unter
"Zählt automatisch Besuche auf Single-Posts und Seiten ohne Änderungen am Template"
nen haken rein machen??? Versteh net ganz was das bedeutet??
mfg
Damit überhaupt etwas gezählt wird, muss ein Funktion aufgerufen werden. Wenn du den Haken machst, wird sie automatisch auf Einzelseiten aufgerufen. Ohne Haken, musste du sie in die single.php (und/oder page.php) selbst einbauen. Ich hab den Haken drin.
Klasse Plugin! Danke.
Noch eine Frage: Ich erstelle für einen Kunden eine neue Webseite, er möchte aber das die Besucherzahl der alten Seite in den Zähler integriert wird. Kann ich irgendwo die Gesamtbesucherzahl vorgeben. Das die Statistik dann futsch ist, ist mir klar.
Danke
Rein rechnerisch ist da nichts vorgesehen. Eben weil dann Sachen wie "pro Monat" und "pro Artikel" nicht mehr funktionieren. Darüber dachte ich nämlich auch schon nach um alte Daten loszuwerden und nur die Zusammenfassung zu behalten. Du könntest höchstens direkt bei der Anzeige was dazu addieren.
Hallo!!
Kurze Frage wieder, wenn ich mir die "Besucher pro Tag" Grafik anschaue steht ja oben links beispielsweise "Max: 15" und die gleiche Anzahl zum Datum von heute.
Zeigt das also die maximalen Aufrufe der Seite an einem bestimmten Tag an oder wie muss ich das verstehen?? Wenn ich dass mit der aktuellen Besucherzahl von heute vergleiche stimmt das nur leider net überein...
Mfg
ofkoors
Genau DAS ist mir auch vor 2 Tagen aufgefallen und ich war verwirrt.
In der Zusammenfassung werden Besucher angezeigt. Egal wie viele Seiten sie aufgerufen haben.
Im Diagramm werden Seitenaufrufe angezeigt. Dort ist die Zahl also immer gleich oder größer, wenn ein Besucher mehrere Seiten anklickt. Ich hatte es falsch betitelt. Ist in der Dev. berichtigt. Das Max zeigt den Wert des höchsten Balkens an, damit man die anderen ein wenig einschätzen kann. Für genaue tägliche Werte kannst du mit der Maus drüber gehen.
Hi:
Having read the comment by danny and his 100.000 counts, I now see that the same happened to me (with the previous version of Count per Day).
A suggestion regarding the Ø per day count. It seems to me that you divide the total count by the number of days elapsed since the start day. That isn't a very useful number as it averages to much. I suggest you change it to either the seven-day-count/7 or the Latest Count/Latest Counts - Days.
It would be more related to what really happens.
For example one of my blogs had an average of 3000 daily visits for the last few weeks. But for the next 6 months it will go down to about 300 daily visits. A weekly average would be more meaningful.
Hi Francisco,
you have today, yesterday and last week as current values. Sure, i should calc any more with the collected data, but i think the important numbers are given.
Wäre es dann vielleicht nicht sinvoller, in der Besucher pro Tag Grafik die Balken auf die wahre Besucherzahl zu beziehen, um zu sehen, wann man am meisten Besucher hatte??
mfg
Kommt drauf an, was man sehen will.
Aber es wäre logischer, da die anderen Zahlen ja auch Besucher anzeigen. Ich will beide Möglichkeiten geben, wenn ich effizientere Abfragen gefunden habe.
Hi guys. I'm getting an error on COUNT PER DAY DASHBOARD
Warning: Division by zero in /home6/temptat3/public_html/cancun/wp-content/plugins/count-per-day/counter.php on line 311
How can i fix it?
Please help! Thanks in advance!
Hello Lazanno,
it looks you haven't any count. So the "days" are 0.
Check "logged user too" on options page and see a post.
I think that should work.
Hallo Leutz,
habe mir die Version 2.1 geladen und installiert. Alles auch gut gelaufen.
Nur 1. er zählt nicht und 2. ich erhalte bei den Einstellungen die Fehlermeldung:
Warning: Division by zero in /homepages/44/d163134788/htdocs/tanzen/wp-content/plugins/count-per-day/counter.php on line 307
Max: 0
Außerdem ist jetzt das Widget aktiv. Ein Bekannter vonb mir meinte er sehe nichts. Hmmm.
Hoffe, Ihr könnt mir helfen!
Es ist ein sehr schönes Tool und würde mich freuen, wenn es funzt,.
Ganz liebe Grüße aus Kiel
Hallo Kisp,
ich denke, der Fehler kommt daher, dass noch keine Daten da sind, weil er eben noch nichts gezählt hat. Gleiches Problem wie Lozanno gleich über dir.
Zum zählen musste du entweder count() oder show() in dein Theme einbauen, oder den Haken beim Autocounter setzen. Dann werden alle Artikel und Seiten automatisch gezählt.
Das Widget kannst ja noch solange auslassen bis was drin steht.
Hallo Kisp,
ich denke, der Fehler kommt daher, dass noch keine Daten da sind, weil er eben noch nichts gezählt hat. Gleiches Problem wie Lozanno gleich über dir.
Zum zählen musst du entweder count() oder show() in dein Theme einbauen, oder den Haken beim Autocounter setzen. Dann werden alle Artikel und Seiten automatisch gezählt.
Das Widget kannst ja noch solange auslassen bis was drin steht.
Könntest Du so nett sein und mir sagen um welche datei es sich handeklt und was ich zeilenmäßig genau hineinschreiben muß? habe davon echt wenig ahnung.
Danke für Deine Hilfe und Mühe
Gruß
Ich zitiere mich mal selbst:
Ist die einfachste Lösung.
Ansonsten müsstest du die single.php in deinem Templateverzeichnis ändern. Dort dann in den Bereich wo Titel, Autor und sowas stehen folgendes eintragen und hoffen, dass es klappt.
Hallo zusammen,
ich hab mir nun eine Blog eingerichtet und wollte den counter per day installieren. Allerdings bekomme ich folgenden Fehlermeldung, wenn ich das Plugin aktivieren möchte:
Error 500 - Internal server error,
Ein interner Fehler ist aufgetreten!
Bitte versuchen Sie es zu einem späteren Zeitpunkt.
Es werden auch die beiden Tabellen wp _ cpd _ counter und wp _ cpd _ counter _ useronline nicht angelegt. Woran kann das liegen? Ich habe eine MySQL4.0 Datenbank bei 1und1. Schon einmal vielen Dank.
Viele Grüße sendet der Photoangel
Hallo Photoangel,
Error 500 kann eigentlich nicht vom Plugin kommen, sondern direkt vom Server. Ich krieg sowas zb. wenn falsche Sachen in der .htaccess drin stehen. Läufts denn mit deaktiviertem Plugin? Evtl. zu wenig PHP-Memory-Limit? Gab da ja bei einigen mit WP2.8 Probleme, da sie ans Limit gekommen sind.
Nur Probleme mit der neuen Version, warum gehen denn die alten Templatecodes nicht mehr?
User sind gerade onlineOder
Heute: <b></b>Kann mir da wer weiterhelfen ? Ich blick mit dem neuen krams net durch, vielleicht les ich auch nur falsch..
Zwinkt dich keiner die neue Version zu nutzen. Ist die die readme.txt aufgefallen? Schon mal reingekuckt? Oder die Kommentare hier gelesen? Steht alles da. ZB. schon 3 über deinem.
Hi again Tom,
We have used your Count Per Day stats and plugin functions to display a front end page of "Popular Articles". We hope that this will provide our vistors with a better experience when they visit our site. Thank you once again for an excellent plugin!
We used a really good company on eLance.com called EyeForWeb, who did a great and fast job. I hope you do not object if I mention them. Good providers deserve promotion, I think.
See it in action here:
http://www.cottagesmallholder.com
Click on the Menu tab: Popular Articles
Many thanks,
Danny
Hi Danny,
nice use of an "widget"!
Hi Tom,
I am investigating slow DB queries on our server that are contributing to Out Of Memory problems. This is one query that often takes a lot of time because some of these fields (or all of them, perhaps) are not indexed. Also, I do not understand why this query is required:
# Query_time: 116 Lock_time: 0 Rows_sent: 2 Rows_examined: 94053
SELECT * FROM wp_cpd_counter WHERE ip='199.99.99.99' AND date='090714' AND page='620';
I have obscured the real ip address in the query.
What is the purpose of the query?
Many thanks,
Danny
Hi Danny,
it's the counter that calls every page load. It checks whether the current visitor is already counted on the current page. If not he will. But this table is indexed.
I figured out the purpose of that DB query, Tom. You are checking for unique visits today, yes?
So I added new indexes to the table for ip (first 3 chars only), date and page. This should make a significant improvement on SELECT statements and I think the overhead of maintaining the indexes will be insignificant.
CREATE TABLE `wp_cpd_counter` (
`id` int(10) NOT NULL auto_increment,
`ip` varchar(15) NOT NULL,
`client` varchar(100) NOT NULL,
`date` char(6) NOT NULL,
`page` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `idx_ip` (`ip`(3)),
KEY `idx_date` (`date`),
KEY `idx_page` (`page`)
)
Best wishes,
Danny
Thank for this hint! I will test it.
Hello Tom!
I want to know if the visitors who visit ONLY the index.php are also counted, since the total number of visitors is equal to the individual post visitors' sum. If yes, where do I see this statistic?
Thanks in advance.
Bernardo
Hi Bernado,
this is currently not supported. Only single pages and posts are counted. Perhaps in next update...
I need help with "count per day" on my wordpress blog. It still stands on "0" even if my friends have been visiting my blog. It doesent count my visitors.... what to do?
Can someone please help me get it work?
Hope you understand my bad english.
Sophie
Hi Sophie,
do you have checked the "AutoCounter" in the options? Otherwise you have to add the functions in your theme template.
Thanks! But i cant make it work. :( I have Counterize II Status installed also and on that one i can see 159 unique visitors today, but count per day still stands on 8. :S Is there someone i can email who can log in on my blog and help me with the problems?
One more thing is that i cant add an image to a post... "HTTP error." every time i try.
You have a mail.
hi... same problem here. "8", "30" but not matching the daily visits...
Hi val,
8? 30? More infos?
just a second after posting, in the count per day widget; I get strange numbers like 250... example: http://valeriovega.com/?p=1269 and must of the times I get "8", "30" and well, numbers that not match the count displayed in the admin(posts> edit> column of count per day). the example shows 23 visits in the admin area; but in the widget (in the acual post) shows 253. that's it. glad you answered so quickly.
ok, it's strange. admin area and widget uses the same functions. can you give me an account per contact form above. i will take a look what's wrong.
danke für den guten counter.
wozu sind im wp-widget eigentlich die felder "label:" da?
was kann oder sollte man dort eintragen?
mit bloggigen grüßen
jwqlb
Du hast in den Code geguckt?!
Die sind nicht im Widget sondern in dessen Einstellungen. Du kannst ja wählen, was du anzeigen lassen willst.
Q tom:
verstehe ich nicht.
bitte erklärs mir.
mfg
jwqlb
Ganz einfach. Widget zur Sidebar hinzufügen. Dann kannst du es dort "aufklappen" und Einstellungen vornehmen, wie bei vielen anderen Widgets auch.
Hi Tom!
Endlich ist das Widget da, auf welches ich schon lange gewartet habe
. Super Sache, doch leider funktioniert die Formatierung bei mir nicht richtig... Die Zahlen sind um eine Zeile nach unten verschoben. Mein Fehler?!
.
Kannst du mir weiterhelfen?
Grüße Tobi
Hi Tobi!
Hast es ja schon allein hingekriegt wie ich auf deiner Seite sehen kann. Das passiert, wenn die Zahlen und Texte nicht in eine Zeile passen. Entweder dann die Sidebar verbreitern oder die Texte kürzen.
Danke für deine Antwort!
komische Sache... im Firefox funktioniert es nicht, im Google Chrome ohne Probleme!? Im Firefox sind die Zeilen verschoben, obwohl ich die Texte verkürzt habe!
noch ne Idee?
Ich hab Firefox und sehe immer 2-3 cm Platz zwischen Text und Zahl auf deiner Seite. Alles besten. Ich mach nen Screenshot wenn du mir nicht glaubst.
ich glaub dir das gerne, da es bei mir im Chrome auch funktioniert, ich kann dir aber auch gerne von mir einen Screenshot schicken
. wie kann ich denn den Abstand zwischen "Text:" und Zahl verringern?
Da ist genug Platz. Bei mir siehts ja auch im Firefox gut aus. Ich finde da keinen Fehler.
Hi Tom:
I just installed CPD 2.2 wih geoip. I get the following errors:
I am using another plugin that uses geoip data:
comment info detector (http://hieudt.info/wp-plugins/comment-info-detector),
without any problem. It may be because that plugin has included the ip table with the plugin.
Regards,
Francisco
Hello Francisco,
i think you don't have enabled php
fopenfunction inphp.ini. I only checkgzopenan show an error. The plugin works without this extension. Only the installation of a new GeoIP.dat file on options page need it. You can download an install the file. The version in addon download is of 08/2009.Tom:
Unfortunately I'm not in control of the server, so either I forgo the use of GeoIP or you change it to use the base locally (as in the above plugin)
More seriously, wouldn't it be better if the geoip base was local, instead of distant?
I hope you take up my suggestion.
Francisco
The addon download includes the database GeoIP.dat. So it works locally. I have disabled "allow_url_fopen" in php.ini and see the errors you wrote if i try to update the GeoIP.dat file. But the addon works fine, it get the country data and updates the CpD table.
So addon works, update don't without fopen.
If you want update the file, download and install it per ftp on you server. Once a month or fewer.
Download the Development Version and post the "DEBUG" infos from options page. So we will see which functions are on/off.
The comment-info-detector also used a binary file and fopen like my addon.
Getting odd numbers: Visitors today on the graph is listed as 70, but Visitors today above is listed at 17. Which is correct?
Both
The graph shows reads/page views and the "Today" number shows visitors. It's a bit confusingly? I want to create a visitors graph too... soon.
Thank you. You're very generous to offer this at no charge.
M. (I've even learned a few German words in the process!)
Hallo Tom, ich möchte die Anzeige der Funktion
getMostVisitedPosts()gern in meiner Sidebar haben. Leider kommt es beim Eintrag in die sidebar.php nicht zur Anzeige, sonder nur wenn ich den Code in single.php oder aber in index.php einsetze, da nur dort die post-loop ist. Wie kann ohne widget-Nutzung die Anzeige dennoch in der Sidebar unterbringen?Vielen Dank.
Hallo Mandy,
gute Frage. Mit der aktuellen Funktion dürfte es nicht gehen, da ich
$this->optionsbenutze undthisin der Sidebar ja nicht existiert.Probier mal folgendes:
Hallo,
irgendwie zaehlt der Counter per Day bei mir nicht. Kann dies irgendwie daran liegen, dass ich Teile des Designs auskommentiert habe die ich nicht sehen will. Ich habe leider absolut keine Ahnung war es nicht geht. Es ist alles auf dem neuesten Stand, WordPress und der Counter von dir. Hoffe du kannst mir helfen oder einen Tip geben was ich testen soll.
Danke
Hallo chris,
Autocounter eingeschaltet? Ggf. auch angemeldete Besucher? Ist bei Installation erstmal aus. Ansonsten musste eine Funktion in die single.php einbauen.
Ups, habe vergessen zu Speichern nachdem ich den Autocounter aktiviert hatte. Jetzt ist er an und es geht auch alles. Danke für die schnelle Antwort und dein super gutes Plugin!
Hi there, thank you for a great plugin.
1) I'ld like to use the '
getMostVisitedPosts()' function in my template, but it seems only to get to work with$cpdneu = new CountPerDay(); $cpdneu->getMostVisitedPosts();. Which is not so bad after all2) I would like to limit the amount of displayed results of this function up to maximum 5 results; where can I change this?
--> Maybe I didn't explain myself totally clear: can I provide a different amount of numbers to be displayed on the frontend (5) and keep the amount of 20 post in the dashboard (backend)?
Hello Zebra,
currently there is no way to set the number in frontend. But i will see to make an update next few days.
Hallo Tom,
ich hab grade dein Plugin entdeckt und es installiert. Leider zählt er bei mir nicht...Autocounter und angemeldete benutzer sind eingeschalten. Benutze den Atahualpa theme aber es will einfach nicht! (Leider)
Siehe auf meiner Seite rechts is die Statistik...leider immer alles 0...
Hab was gelesen von integrieren in single.php
Wo und wie wäre das?
Hoffe du kannst helfen!
greetz
MaNIaC
Hallo Nochmal Tom,
grade selber gefunden wo ich den Befehl einfügen muss (mein Theme hat keine single.php, dort heisst sie einfach index.php).
Andere frage:
Ist es so gedacht das der Zähler nur zählt wenn ein einzelner Artikel aufgerufen wird und nicht wenn jmd. z.B. nur die Hauptseite aufruft? Gibt es die möglichkeit die möglichkeit einzubauen?
greetz
MaNIaC
Hallo Maniac,
ja, nur einzelne Artikelaufrufe werden gezählt. Aber da schon öfter Anfragen danach kamen, muss ich es mir wohl wieder mal ansehen. Hatte da Probleme, das richtig zu filtern. Die Indexseiten wurden zu oft gezählt. Aber schaun wir mal.
Eine single.php gehört laut WP-Codex eigentlich in jedes Theme. Aber man kann natürlich alle Seite über die index.php laufen lassen und dort filtern. Weniger Template-dateien, dafür unübersichtlicher im Inhalt.
Hallo Simo,
CpD zählt momentan NUR einzelne Artikel, keine Indexseiten. Vielleicht zukünftig, wenn ich eine Lösung finde. Dazu musst du nichts einfügen, sondern nur den Autocounter aktivieren.
Good day!
I translated "Count per day" into the uzbek language.
Could you give me the e-mail where to send its .po files?
Thanks.
Hallo, gibt's schon einen Fortschritt bezüglich des Zählens der Indexseite?
Das wäre echt nicht schlecht.
danke.
Geduld ist eine Tugend. Hab grad keine Zeit zum basteln.
So, kannst die 2.3 mal testen. Sie zählt nun auch die Startseite, Kategorie- und Tagseiten. Diese haben ja eigene IDs, die ich auswerten kann.
how to show pageviews count on the sidebar widget?
Add the widget to a sidebar and activate the data/fields you wish to see. All on Design -> Widgets.
Please tell me how to change font color on sidebar widget ??
Thanks
Best regards
Use your style.css. The widget has id "count-per-day" and class "widgetCpd" and the The list
<ul>has class "cpd". All Numbers located in<span>. So you can use e.g..widgetCpd span { color: red }in your style.css to change the color of the numbers.thanks alot sir... i love it
Hello Tom, I am testing your plugin and widget and just after the upgrade, I start to get this error at the top of the page in FF WinXPP, FF FreeBSD, Avant WinXPP, IE WinXPP.
WordPress database error: [Unknown column 'country' in 'field list']
INSERT INTO wp_cpd_counter (page, ip, client, date, country) VALUES ('0', '11.22.33.44', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser; Alexa Toolbar)', '091018', '')
11.22.33.44 is a dummy number to replace the IP I am opening the page from
the issue, I think, is due to the last parameter, the query is expecting the value of the country between single quotes (' ') but being empty, it gives out an error
the test has been done from 2 locations, the issue persists
thanks in advance
Have not expected the issue but I have seen this GeoIP is optional.
Disabled old plugin and reinstalled, downloaded the country list and reactivated.
Sorry for setting up a file for nothing!
Cheers
zizzibaddi.com admin
No problem.
Nach dem Update auf 2.3 zählt er in der Artikelübersicht die Klicks auf die einzelnen Artikel nicht mehr, woran liegt das ?
Thx für das tolle Plugin
LG mexi
So, was Manu geholfen hat, hilft dir hoffentlich auch.
Tausch mal deine counter.php gegen diese Datei aus. Update kommt sonst heute Abend.
Selbst nach Austauschen der Datei klappts nicht, ich hoffe das das Update die Lösung bringt.
Danke dir für deine Hilfe
Berichtigung, er zählt wieder
Na hoffentlich, viel mehr macht das Update nämlich auch nicht.
Danke für das Update!
Leider habe ich auch dieses Mal wieder Probleme damit.
Seit dem Update hat der Counter nichts mehr gezählt. Gibt aber auch keine Fehlermeldung oder sonstiges. An was könnte das liegen?
Gleiches Problem wie mexi über dir? Autocounter an oder aus? Ich hab den in meinem Blogs immer an und keine Probleme. Wäre mein erster Gedanke.
Gleiches Problem, sogar etwas erweitert. Bei mir zählt er gar keine Besucher mehr. Auch nicht die Gesamtbesucherzahl für den heutigen Tag.
Die Gesamtzahl ist ja nur die Summe. Wenn er nichts zählt ist die natürlich auch 0. Ich wiederhole mich gern: Haste den Autocounter an?
Ja ist an
Mist
GeoIP Addon? Schau mal hier. Vielleicht wird die Meldung bei dir nicht angezeigt, aber es wird halt auch nichts gespeichert. Grundsätzlich musst du das Plugin de- und wieder aktiviere nachdem das Addon hochgeladen wurde, damit ggf. die Spalte angelegt wird.
GeoIP Addon nutze ich nicht. Das deaktivieren und erneute aktivieren hat auch nicht geholfen.
Ich habe herausgefunden dass die User die online sind in wp_cpd_counter_useronline stehen, aber in wp_cpd_counter steht seit dem Update nichts neues mehr drin.
Oh man, dann hast du keine Spalte 'country' in deiner Tabelle, oder?
Tausche mal deine counter.php mit dieser Datei aus.
Die setze ich grad voraus.
Danke jetzt zählt er wieder
Country Spalte ist nicht vorhanden. Lag das Problem an mir?
Ja, du hast mein tolles Addon nicht installiert!
Nein, natürlich nicht. Ich wollte nur die Spalte 'country' immer mit füllen, was nicht ging, da sie ja nicht da ist. Wenn man nicht an alles denkt. Danke für deine Mitarbeit!
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/mss/public_html/wp-content/plugins/count-per-day/counter.php on line 169
Any idea what's wrong?
Which WP version? The plugin checks the category or tag in this line. See my comment to Rand below.
2.3 and 2.3.1… in 2.2 everything is ok… :(
oh sorry WordPressa 2.8.4
Danke ebenfalls für deine schnelle Hilfe!
Hello!
I have been using this plugin for months and love it. Yesterday, when trying to update it didn't work anymore. It's bringing this error.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /hsphere/local/home/bezaleel/randrambles.com/wp-content/plugins/count-per-day/counter.php on line 169
Same as ms above... I can't see this error. Which versions do you have? WordPress, PHP? PHP 4.x?
Try:
Change from line 167
to
Hey Tom, amazing plugin, thanks for sharing it.
I'd like to leave a suggestion for future updates for Count per day:
Maybe you would add in the Count per day - Statistics page the options "Visitor per post TODAY" and Visitor per post YESTERDAY", so it would work as "Visitor per post" bust just showing today numbers and the other yesterday numbers.
Cheers.
Hey, I tried your fix and now i'm getting a different error
After replacing the codes like you said, i got the following error "...public_html/blog/wp-content/plugins/count-per-day/counter.php on line 170"
Thanks
Hi i just upgrade my plugin, and now is giving me the following error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /hermes/bosweb/web274/b2747/sl.herval/public_html/wp-content/plugins/count-per-day/counter.php on line 169
I just love your work, and feel lost without your plugin, can you help me!!!
Thanks
@ every one with error in line 169/170:
Which PHP version? I think it's a problem with PHP 4.x.
Try the patch in my comment or use CpD 2.2 until i fix the issue. I have to test with PHP 4.x which is realy old!
PHP Version 4.4.9
Version 3.05
I was getting the error 169 and after using the patch in you comment, i got "error 170"
PHP 3??? We have 2009 not 1997!
error line 169/170
change
to
works with PHP 4.4.9 for me
I am testing your plugin which seems very nice and useful.
However, I got the following fatal error: Warning: Division by zero in C:\wamp\www\wp28test\wp-content\plugins\count-per-day\counter.php on line 683
It disappeared after the first visit, but perhaps you want to fix it anyway?
There is no post counted at time. Click some posts.
Hi Tom,
zuerst einmal vielen Dank für mein neues Lieblingsplugin
Die Browserübersicht finde ich sehr informativ. Allerdings frage ich mich, ob die bei mir unter "sonstige Browser" aufgeführten 18 % (Firefox 35 %) echte Leser sind oder nicht erfaßte Spambots o.ä.
Hallo Feli,
bitte.
Das mit den Browsern ist mehr ein Spaß. Ich speichere nur 100 Zeichen des "Clients". Um die DB nicht noch mehr aufzublähen. So steht z.B. "Safari" erst später drin und ich kann es nicht extra auswerten. Ist jetzt alles beim Apple Webkit dabei. 18% finde ich aber etwas viel für "sonstiges". Schau mal in deine DB, was da so als "client" drin steht. Du kannst die Liste dann auch direkt im Plugin erweitern, wenn dich z.B. Browser wie Lynx besuchen.
In meiner DB tummelten sich Bloggsi.com und yandex. Nachdem ich die Liste um die beiden erweitert hatte, gibt es überhaupt keine "sonstigen" mehr.
Schön, daß ich nun weiß, wie unkompliziert die DB des Plugins eingesehen und verändert werden kann.
THX
Die habe ich in der Bot-Liste, sind ja Suchmaschinen, und interessieren mich daher nicht.
Ich meinte mit Liste auch die Bot-Liste.
Hi i just upgraded from version 2.2 > version 2.3.1 aand received this error
-----------------------------
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/sites/thecarpcatcher.co.uk/public_html/wp-content/plugins/count-per-day/counter.php on line 169
Hello Steve
read before write.
Or update to PHP 5.x.
Oh, and send me a carp on New Year's Eve.
hi thx i did read and there is no mention of php 5 anywhere in the plugin auto update or faq or docs which is why i reported the issue.
I did not think to search your comment pages since i assumed an error such as this would have been fixed before release.
Hi Steve, was a joke!

This error (line 169) was "born" in this release not fixed.
I have update the file in 2.3.1 after i have installed PHP 4.4. So you can redownload it or use the fix in the linked comment.
wp 2.8.5 not working
works for me! which error?
I'm running wp 2.8.5 also and its not showing any traffic or any errors.
Suggestions?
Perhaps low PHP memory-limit? More details please.
I have the same problem. My WP is up to date (2.8.5) and I just upgraded to you CPD 2.4. No matter what I do I can't get any counter > 0.
I notice that "Counter starts on: 1.1970"
I'm reasonably certain it not a memory problem. In any case it's a "brand new" blog with only a single post...
Thanks.
Your "problem" is no error. You haven't count any post, so the counter DB is empty. "1.1970" = no data. Just count a post.
Thanks for the reply: I have clicked on the blog from lots of different browsers, (both logged-in and -out), PCs, etc. Also repeatedly disabled/enabled/reinstalled, etc. But see my other post for possible MySQL error (apologies if I missed a README about MySQL version!)
I found an error on the weblog:
I have mysql
mysql Ver 14.12 Distrib 5.0.22, for pc-linux-gnu (x86_64) using readline 5.1Thank for this messages!
For MySQL ' is not `. Try the 2.4.2.
Yes, that works now. Great - thanks.
Counter Start on: 31. 1969. My blog is brand new also w/ 12 posts. Sorry but let me know what else you need to know about it as its my 1st blog
1969? I have never seen this, but 1.1970 if CpD was fresh installed and no post was count. To get some count data activate "auto counter" (and count "loged in user" for tests) and click some post.
Thx bro
I turned on Auto Counter and its keeping track now. Now says 24. October 2009.
Thanks!
Hello Tom, congratulations for the wonderful plugin.
I am using CPD and I am very satisfied with them functionality provided, however the images in the visitors' graph are not being exhibited, as well as the icon of the plugin.
I already reinstalled the plugin several times trying to solve that, but I didn't obtain success. On that moment I am using WordPress 2.8, but that problem also happened in the 2.7 version.
You can see an screenshot of what is happening in that address: http://www.josimarbianchi.com/extras/cpd.jpg
Thanks!
Hi Beto,
i know this issue. If you empty the browser cache and reload the page (Ctrl + F5) you should see the pics.
Tom, I Already empty the the browser cache and also of the DNS resolver cache, but nothing works. I am using the navigators IE8 and Chrome 3.
Should those images be in the plugin folder? When I unzip the plugin folder
and upload the files to the server, I perceive that in the plugin folder just some exist screenshots.
The Images will create by the Script. There are no files. Link e.g.
[your blog]/?resource=cpd_menu.gif. Try to call. Reload without cache realy works for me every time.Tom,
I really appreciate your attention. Did I make the test that you suggested and the results show a empty little frame where should appear the image
(See yourself: http://www.josimarbianchi.com/?resource=cpd_menu.gif).
Anyway, I thank once again your attention, but I won't more occupy your time with that. I will continue using the plugin because, the exception of the images, all of the rest is working satisfactorily.
Thx!
Wait, come back, we are not finished!
Try this patch. Unzip in CpD directory, overwrite counter.php and use real images. Does it work?
Tom, you're the man!
Now is working! Thank you one more time!
If you need some help with translations to brazilian portuguese, e-mail-me ok?
My best regards!
You will receive a mail in few days.
Getting error: Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in /home7/ebitchbo/public_html/eBB/wp-content/plugins/wp-visitors/geo_ip/geoip.inc:207) in /home7/ebitchbo/public_html/eBB/wp-content/plugins/count-per-day/geoip/geoip.inc on line 223
OK, your plugin "wp-visitors" already declared the GeoIP class/functions. Deactivate it or change the code in CpD file
count-per-day/geoip/geoip.php.Change
include_once('geoip.inc');to
if (!class_exists('GeoIp')) include_once('geoip.inc');Thanks, I fixed by just removing the line include_once('geoip.inc');
When I added your if, a blank page was returned.
You also can delete the directory 'geoip' but then you don't have GeoIP support in CpD. I will test CpD with wp-visitors.
The problem: WP loads wp-visitors after CpD. So my fix have to include into wp-visitors too. Both plugins use the same GeoIP class but it may be load once only.
Hallo!
Hab zwar schon gesehen, dass jemand das selbe Problem wie ich habe, da ich aber mein Englisch nicht soweit reicht, stelle ich die Frage nochmal auf Deutsch
Mein Counter steht auch auf dem 1. Januar 1970.
Besucher pro Tag hatte ich max. 1 am 3. November 1969.
Es werden auch keine Besucher gezählt.
Ich habe die aktuellste WP und CountPerDay Version.
Wie kann ich das Problem beheben?
Hallo Manu,
deutsch ist ja auch viel einfacher.
Mach mal den Haken beim Auto Counter, ggf. auch bei "angemeldete Benutzer auch zählen". Dann sollte der Zähler auch zählen wie es sich gehört.
Hey, super. Es funktioniert
Danke!
LG, Manu
Natürlich funktioniert es!
Was hast du erwartet?!
It doesent work for me.. I have installed it and all and i can se it on the dashboard. But the thing is that i have another counter that tells me that i´ve had visitors but still this counter stands on zero. Any ideas?
Autocounter is activated? Otherwise you have to change the template.
Is written in readme.txt.
Just installed your plugin. Looks good.
However, I have a large hit count from a previous iteration of this site, and I'd like to have the visitors to this new version increment up that number of people. Is there a way to insert a "start counter at what number" line in the options pannel of the plugin?
You can change the code.
Look for function getUserAll(). Change line
echo mysql_num_rows($res);to
echo mysql_num_rows($res) + [your_number];*nods* That did it. Thank you very much.
I cannot get the counter widget to work. what am i doing wrong?
Activate the Widget and select the data you want to see. Default: nothing is selected. Also you can change the Labels.
i selected the ones i want to see, but no numbers show up . check it out http://www.dauub.com
Where is the widget? I think you don't use widgets but normal
sidebar.phptemplate. You should have code like this in the template.<?php dynamic_sidebar(1) ?>.I took it off let me re add it so you can look at it. ok check it now http://www.dauub.com and let me check the sidebar.php
Check your page footer. All widgets will show there. CpD with numbers.
You can send me the sidebar.php code per contact form. There is something wrong.
i sent it in contact form. also posted here if shows up
Thats the code except i dont have that extra
<?php dynamic_sidebar(1) ?>.at the bottom that was a mistakeFirst change your sidebar.
Then add to your style.css under
.sidebar ul li ul liwidth:200px;and you will see the numbers. Theulsimply is smaller than theli. Check your style sheet.Or try another unaltered theme.
This is my sidebar coding. I have no idea how to edit it.
[code deleted] sorry, but this is not an wordpress forum! read my mail.
I don't have an email from you
Is your email here correct? I resend the mail.
Hallo,
sieht super aus. Allerdings habe ich gestern erst mit WordPress begonnen und bin wohl noch auf dem falschen Weg.
Was muss ich denn einstellen, dass er auch wirklich zählt?
Habe das PlugIn installiert und in meine Sidebar integriert. Egal was ich tue, es steht immer 0 dort. Bei gezählt ab steht "1. 1970". Wo änder ich denn dort das Datum um.
Vielleicht liegt da direkt das Problem. Denn die Statistik zeigt mir 60 Tage und zwar in den 70ern
Danke für die Antwort und geduld mit dem WP-Neuling
Aaaaahhhhhhh, RTFM!

OK, weil du neu bist und viele alte auch nicht lesen können/wollen.
Schalte mal den Autocounter bei den Einstellungen ein. Ggf. auch, dass angemeldete Besucher, praktisch du, mitgezählt werden sollen.
Ab der nächsten Version ist der Autocounter standardmäßig an.
Hi,
I updated to the latest version of CPD. I did not backup the database before the backup
The counter still works...but the IP numbers in the database are no longer in the "normal" format. Example:
what was 84.246.16.45 is now 1425412141
How to fix?
Thanks in advance.
Kind regards,
Robbert
That's ok.
IPs will stored as integer now. Saves DB memory and speeds up search. To show real IP uses php function long2ip() or mysql function INET_NTOA().
OK, thanks! Danke!
I like the plugin.
pretty nice one mate. well done...
if you want i can translate this into Arabic, what do you think? huh
I would be happy.
for me activating cpd kills the blog completely,
using FF (for example) I get waiting for example.org, then done and a blank browser tab window.
the only way to get going again is to use the old ftp
knifeaxe and delete the plugin,then it instantly works again.
How many records do you have in counter database or was it a new installation of CpD? With a "great" DB the activation takes a while because the changes on counter db columns. So the page load take longer. You can write more details via contact form.
I installed this pluugin but Counter does not work. always stands at: 0
Autocounter on?
Yes it is.
Then wait for visitors.
Or logout and click some pages.
Any error message?
Hi, is it possible to populate count-per-day from a specific date?
This site opened Oct. 4, 2009. I'd like to see the count-per-day data from that date to today.
Thank you in advance and for this great plugin.
The date is the first counted day in database. You can insert a dummy record with date "2009-10-02".
Hi, i found a bug in CPD v.2.5 - it doesn't count reads at all if GeoIP is off and it also skips read from ip addresses, which aren't listed in GeoIP.dat. the problem is in the database table dst_cpd_counter, the column 'country' - it is set to 'not null' and without a default value, while the sql tries to insert a row without setting it (when GeoIP is off).
also, the length of the 'client' field seems not to be long enough - my browser's client text (firefox 3.5.5) is 109 chars long, while the field takes only 100...
Thanks for your info.
OK, i will set default values, while create the tables.
The client field i have set to 100 to limit the db size. It's the biggest factor and not sooo important. Change it.
Hey, I love your plugin, but I'm having a minor situation I was wondering you could help me with...Just like Daven already stated, I too have a previous hit counter that I want to add to the "total visitors" of this counter...I tried what you had told him
but it gives me an error. Is there any way to change the number manually in phpmyadmin?
Thanks ^^
Hi Chrissy,
what error? Any message?
[your_number]is you start value without [ and ].You can also try this one (not tested):
"Total visitors" is only a sum of records, so you can't change the value manually.
I think i will add a "start value" to the options in next update.
Thanks so much. It worked :D I made a stupid mistake haha
tom, i've a problem with the cpd plugin. I can add it to the sidebar, but i was wondering if It can only be placed in the sidebar, cause i tried to put it in footer.php and it doesn't work ( i think i'm doing something wrong,but don't know what ) Apart from that, i can't see the stadistics graphs although i received some visits today and in the home page i can see the counter working.
thanks!!!
Hi Maria,
i think you have to add widget support to yout footer.
Place somethink like
within your footer. Then you should have 2 sidebars on widget page. I havn't test it.
Graphs: If the window is empty, perhaps a reload (CTRL + F5) can help to load the red bars (image). Do you get a hint by "mouseover" where the bars should be?
tom,
The problem of the graphs is that I was not finding where they were (dashboard/count per day), pardon!
The other question is if cpd, can only be put in widgets or if I can put it directly in the theme,i don´t want to add a sidebar there ...
thank you very much!!!
Page: Dashboard-> Count per Day. You have some metaboxes wich you can display in 1 to 4 columns. See top right the "options" and check all boxes. Perhaps the graphs not checked or display at the bottom of this page? Simly move it.
Currently only a widget is available. But i think a dynamic-sidebar in footer should work.
[...] 5. Count Per Day “Counter, shows reads per page; today, yesterday, last week, last months … on dashboard and widget.” 말그대로 카운터입니다. 블로그에 찾아오는 손님이 얼마나 있는지와, 포스트별로 카운터내역 등을 보여주는 가벼운 통계 프로그램이죠. 다만 전문적인 통계프로그램보다 미약한 감이 있어서 액티브는 해두었지만 자주 들여다 보지는 않습니다. Tom Braider | Visit plugin site [...]
Kann man irgendwie die Schriftgröße und Zeichense3tzung des Widgets ändern? Wäre toll!
Geht alles mit der normalen style.css wie bei den anderen Widgets auch. Die Liste hat außerdem auch die class="cpd" um extra Änderungen vornehmen zu können.
Und welchen Code nehm ich da?
Na das hängt nun davon ab, was du wie ändern willst.
Um dich in CSS "einzuarbeiten" ist http://www.css4you.de ein guter Anfang.
Ich möchte nur die Schrift im Widget von deinem Plug-in verkleinern, das muss doch gehen?
P.s.: Das geht nicht im Style.css
Ich müsste wissen mit welchem Code ich das Widget ansprechen kann. Allgemein lässt sich das nicht verändern.
Geht natürlich alles. Das Widget sieht zB. so aus.
Dann kannst du in der style.css folgendes eintragen um die Schrift auf 8px zu setzen und rot zu machen:
.cpd li {font-size: 8px; color: red;}Für blaue Zahlen wäre es:
.cpd li span {font-size: 8px; color: blue;}Ggf. vor der } noch
!important.CSS ist halt auch ein bisschen basteln.
Okay, I'm live with my site now and I love this counter.
I am hoping, however, that you come up with an AJAX wrapper for the widget so that it can update dynamically without the user having to refresh.
Oh, and for the sidebar that needed to be added, I had to do just that to use the widget at the top of my page, right near the header. Take a look.... (click the URL to get to my site)
No, non AJAX. Then you have to check the DB e.g. every 10 sec to update the counter? Not usefull.
Oh, and not to seem greedy, but how would one go about rearranging the order in which the various counts would be displayed?
I'd like to display them in this order:
TITLE
Counting since:
Total Count:
Today's Visits:
Online now:
This post:
The order is hardcoded. Look for
widgetCpdControl()and change the order of array$funcs.Okay, did that:
It still shows the default array order. Whe did I do wrong?
Save the widget options to apply the new order.
Perfect! Thank you so much.
HI I have a problem with geoip.
mysql ver. - 4.1.22
In reads per country i have this error:
When i try to update old counter data i get this :
Table "country" exist, and new data is added, i see "country codes" us,pl,de e.c.
Try to change the lines to
while ( $r = mysql_fetch_array($res) !== false ). Any change?Still as it was.
Hi,
I use wp 2.8.6 and I can't activate the plugin after uploading it. When I click on activate i get 403 error page.
Never seen. Which file is forbitten?
Try to chmod geoip/geoip.dat to 777.
Or download and install the plugin per backend to set other rights.
I changed permissions to 777 but its same as before. It just shows me 403 error page from my hosting service. It's not showing which file is forbidden.
How do you mean? Can you explain? It can be activated in other way?
403 only show if CpD directory exists?
OK, delete CpD on plugins page or per FTP.
Go to plugins - install and search for "count-per-day". Should be the first entry in the following list. Install it.
hello I used this plugin in an arabic blog but it switched the dashboard menus from right to left
it is supposed to be to right because it is arabic
so how can I solve this problem
changing code or I should translate the whole plugin to have the menus back to write ?
Best regards ..
I haven't set LTR or RTL anywhere. CpD should use the blog option. I only add some links to the menu.
Is the menu left on CpD dashboard only or on any dashboard page if CpD is activated?
the menu is right at any page but when I activate the plugin the font of the menu change and it like u put a mirror on the menu - the whole wp-admin is inverted
Is the menu english or arabic? Can you make a screenshot?
I don't change fonts or languages or positions. If a translation found for your blog language i use it. Otherwise the plugin is english.
OK, i just installed arabic language file and see what you mean. I will check it.
Oki here you are the requested screenshots ..
This is the dashboard when activating the plugin ..
http://i50.tinypic.com/2q89esg.jpg
This is the dashboard when dis-activating the plugin (How it should be when the plugin is active)
http://i46.tinypic.com/2cyhe8w.jpg
I also translated the plugin po file but I dunno how to show the new language I renamed the files to cpd-ar.po and cpd-ar.mo but the language didnt appear
ps1: in arabic we dont need to mention the country in the file name, or should I mention the country name in the file name in this plugin ?
ps2: there are 22 countries talks arabic thats why it doesnt matter to mention the country ..
Short workaround: comment out or delete
counter.phpline 84 "wp_enqueue_style..." I don't know why, but include a CSS file this way seams not work with a RTL blog.cpd_ar.mo should work because "ar" is given in wp-config.php. You have to change the po file an to compile it to an mo file. The mo file used by WordPress. With codestyling-localization you can translate and compile in wordpress backend.
woooooow it worked like a charm and the dashboard came back to normal Thanks alot Tom
but the language didnt work I dunno why even it has the correct name :(
Hi Ahmed,
try the patch to correct include the CSS in arabic/RTL blogs too.
Hi Tom, Ahmed,
Thank you for fixing this problem in version 2.6
I had the same problem with "Count Per Day" for a very long time (Hebrew this time) and i had to manually fix it with every update.
Raz
Why you don't say "Tom! Do something!"?
English: How can i set the Option that only ADMIN can see this PLUGIN?
German/deutsch: Wie stell ich das Teil ein, so das nur Admins die Statistiken sehen können?
Gar nicht. Wer ins Backend kann, sieht auch die Statistiken.
2 Errors "Erstinstalltion von CountPerDay"
Error#1 kommt bei Besucher pro Tag
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in .../htdocs/"blogdir"/wp-content/plugins/count-per-day/counter.php on line 412
Error#2Seitenaufrufe pro Land
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ../htdocs/"blogdir"/wp-content/plugins/count-per-day/counter.php on line 1114
PS: Hab das Blogdir und den rest davor "anomysiert" aus "sicherheotsgründen"
Das Problem hat Kula auf Seite 15 schon mal angesprochen. Ich kann es leider nicht nachvollziehen. Welche PHP/MySql Version?
Hey Tom, amazing plug-in. Thanks for sharing!
I'd like to leave some suggestions here. So, at the main cont per day statistics page, it would:
1) Recently counts and Visits per post, it would have a new column on the left with a "paper" icon folded on the corner and when we click on it would send us to edit the article in the back-end and not only send us to the front-end when we click on the text link;
2) It's named "Counts per day", but it doesn't show "Visits per post TODAY". So, it would have it separated from recent visits;
3) It would have "Visits per post YESTERDAY" separated too;
4) Have a link to your home page/this page. ;0)
Well, just suggestions. ;0) Amazing plug-in anyway!
Hi Lucato,
thanks for your suggestions. Some good ideas. Especially No. 4.
Hi,
I installed this plugin. On admin side it works perfect for now.
Is there a way to show counter on pages? Maybe in footer?
I tried code snippets from this page but nothing works. That part is not documented well.
tried
<?php echo cpdGetUserAll(); ?>also tried
Nothing works.
What am I doing wrong?
Regards
Predrag
Simply use the widget?
Otherwise should also work:
Ah.... that's it... stupid me...
Too tired... forgot to set "global"
Thanks...
does this work with wordpress 2.9 version ??
the plugin works. but some translations (eg. german) dosn't work. you have to recompile the mo files with poedit or use default englisch.
i updated to 2.6.
u mean this works with wordpress 2.9 ?? iam using english. so i guess i wont have to do any other changes right ?? and i hope i wont lose the stats i have so far ?? am I right ??
CpD 2.6 works for me with WordPress 2.9 here. I updated the translations too.
Hi Guys
It does not work properly with 2.9
I get a page error when trying to change the settings.
Had to uninstall the script
Hi Rian,
works for me. Which error?
@admin
I didn't managed to activate plugin(my comment from previous page). And activation per back end isn't possible on my hosting account because of some php restriction.
Your link was wrong.
Do you can delete "geoip" directory and activate the plugin?
It was link to my hosting error page (error 403). I deleted GEOIP and it's same, nothing changed. I guess it has something to do with my php restrictions although I have 18 more wordpress plugins that work normal(and i tried lot of them), I never got this error except with Count per day...
No idea. Without GeoIP file access is not necessary.
Error occures when you activate the plugin or when you go to CpD dashboard or an post page?
When I press activate.
Hi Tom
Great plugin and the dashboard is very useful whilst logged in to wp-admin. However, like Predrag I wish to use a very simple counter at the footer of a template and not as a widget and I'm afraid I am somehow missing something.
If I use the following:
It returns as Show Before # Show After (where # equals a numeric value)
However if I apply the same logic to the following code:
All I see is the numeric value for getUserOnline and not the text before and after as defined.
Have I totally mis-understood the functions in a template
I would appreciate your time and effort to resolve this mis-understanding.
Hi LostOracle,
only show function have befor and after values. All other functions are return the number only. So use this:
Tom
Thankyou for clarifying the functions, when somebody explains it to me I realise how obvious it is
I believe many others will find the code snippet extremely useful. Big Thanks
Upgraded version of Count Per Day does not have a day of the week option and it's resetting the days at around 7-8pm EST. Do I need to uninstall?
"day of the week option"? I don't understand.
"last week"/"last 7 days" works for me. do you have deactivate and reactivate the plugin?
Hi, Tom -
Yea that was pretty vague, I apologize. I thought, when I first installed, the plugin, I had the option to choose which day of the week (Sun-Friday) I could start the counter. That option is no longer a part of the plugin. Also, my daily counter is starting over around 7pm EST instead of around midnight. These things weren't happening prior to my downloading the counter.
No, I hadn't uninstalled and reinstalled but I will do that now.
The first function was never part of CpD. Do you confound something?
CpD starts with the first count. This date will show on CpD dashboard.
The time problem - i will check. Perhaps a problem with time zones and CpD only gets GMT.
Merry Christmas! I guess you're right. Thanks.
Hi Tom,
Thanks for sharing this plugin! It's working just fine. I'm converting my old website into wordpress, and since the old site gained 15,000 hits, I would very much like your counter to start at the same value. Is this durable? Thanks for your time.
//Best regards Steffen
Hi Steffen,
see this comments. I think it will help you too.
In next update i will insert an option to set a different start value.
Hi Tom, thanks a million - it worked perfectly. Sorry I missed the previous post with you already explaining it
Hallo Tom,
vorab danke für das tolle Plugin.
Seit dem ich wieder mal geupdated habe, stimmt was mit der Uhrzeit nicht. Die heutigen Besucher werden immer von 1Uhr bis 1Uhr gezählt. Habe auch schon unter den WP Einstellungen geschaut, da ist alles wie beim alten.
WP Version 2.9 und CountPerDay 2.6
Ist das Problem irgendwie bekannt?
Lg
Hallo Andre,
Das Problem haben hier schon andere angesprochen. Ich muss mir das mal ansehen. Denke es hat was mit den Zeitzonen zu tun. War es denn vorher anders? Hab daran eigentlich nichts gemacht. Aber es sind ja immer noch 24 Stunden.
irgendwie bekannt schon.
Nachtrag: Hab mal getestet. Die Zeitzone per PHP Funktion nicht ausgewertet, ist 0. WP hat da irgendetwas eigenes. Also füge mal
get_option('gmt_offset');in die counter.php Zeile 43 oder so ein. Keine Ahnung warum, aber dann hab ich plötzlich die richtige lokale Zeit, nicht mehr die UTC. Werde es so im nächsten Update einbauen.THANK YOU SO MUCH FOR THE RECENT UPGRADE TO CPD, TOM!!!
I was a little sad when I had to erase my previous count, as well as, the date!
It's an little Christmas gift.
Hey Tom!
Thanks a lot for adding some suggestions I've requested. I really appreciated that. Really cool the balloon for editing and the input field for entering the wanted day!!! Great additions! Congratulations!
Just some comments:
1) Really cool the balloon icon, but IMHO to don't look a mess and more organized, I suggest you to place all them on the very left side. So, on the beginning of the texts instead of on the end as it is now a days. Well just an opinion. ;0)
2) At "Visits per day (average)", now a days it shows the articles that where visited as well the tags, but it would show separated the articles list from the tags list. I meam, they can show on the same tab, but it would show first all articles and below a divisor all tags.
3) The same "Support" tab at "Count per day" settings page, should be also at at "Count per day" statistics page. I mean, your link at both pages. ;0)
Well Tom, once again, THANK YOU SO MUCH FOR THE UPDATE!
Taking advantage of the message, I wish you and your family a stunning 2010 full of health, peace, love and all dreams accomplished. A lot of success in your life.
Cheers.
Hello Lucato,
thanks for your new comments.
1. The design for the "Edit link" is not ready. The "comments" icon will be replaced too.
2. The lists are ordered by count. So this is the easiest way.
3. I simply forgot it.
And your greetings i rejoin readily!
You're welcome.
I see. Let's see they ready in the next future. ;0)
Thanks.
Hey Tom, a new suggestion for the next update on 2010. Who knows. ;0)
At the "new list shows visitors per post on user defined date ", it would have a NOTE input field where I would get to add notes for each dates and when we mouseover on a red bar/day on the "Visits per day (average)" graphic, it would show a tooltip with the NOTE I've written for the specific date.
Why? Well, if I had taken some action, like sending a mailing, published some campaign, and so on, I would add this note on the specific day, and in the future by mousing over the red bar that has stand out, I would check what I’ve done in that day and would figure better why I had that visit improvement that day. ;0)
Besides that we would have a new tab separated to show a list with some columns like that:
Date | Views of the day | Notes “actions taken”|.
Well, just a suggestion. IMHO it would be very useful.
Cheers again. ;0)
Interesting idea. I write it to my todo list.
Until i include this function take pen and paper to remenber the important days.
So we both are needing the pen and paper, one for todo list and other for important days. Heheh. Just kidding.
See you next year. ;0)
Ok, now it is the next year. It's time for a new suggestion. :0)
I'm not sure if it is possible Tom, but it would be cool, if we would click once on the red bar on the "Visits per day (Average)" graphic and when clicking on it, it would reload the page changing the new feature (New: new list shows visitors per post on user defined date) to the date we have clicked on the red bar. So, If I click on red bar that represents 01/03/2010, it would reload the page and update the new list that shows visitors per post on user defined date, with the date I had clicked that was 01/03/2010. ;0)
I think it's possible.
I added your Count per Day.
But I can't use it very well. =(
I saw below message on Admin dashboard.
How can I do it?
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/hosting_users/rixk/www/wordpress/wp-content/plugins/count-per-day/counter.php on line 417
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/hosting_users/rixk/www/wordpress/wp-content/plugins/count-per-day/counter-options.php on line 296
Count some post. I think there are non records in database.
sirs,
in my site i used your plugin,works ok,but,conflikt with google sitemap plugin.any idea?
danko from serbia
any error? i don't use google sitemap.
I have updated Danish language files for your plugin. They are available from http://wordpress.blogos.dk/s%C3%B8g-efter-downloads/?did=214
Best regards,
GeorgWP
[...] Count per day (WordPress plugin) [...]
g day at all
thanks for this usefull an insipensable plugin
i'd ask you just a simple effort to implement the conter in the single post
yes i know your tutorial above it's really clear ... may be i'm doing somethig wrong
so pratically i've to add this line in my single.php page where i'd see the page counter and we aggre to call it reads n°X time
show(); ?>
to suite this i've used this variation
so.. show( $before "this page has been reads", $after "times", $show "echo", $count "true" ); ?>
but i get a error
what's i'm doig wrong?
reagrds
You mixed names with values. Use
show( "this page has been reads ", " times", true, true );.ok!
thank you a lot
:D
it reply with this error and no content appear on the page .
just a withe page with that error on th top
Parse error: syntax error, unexpected T_STRING in /web/htdocs/xxxxxxxxxxxxxxxxxxxx/themes/my_theme/single.php on line 67whats wrong now
<?php if(method _ exists($count _ per _ day, "show")) $count _ per _ day->show( "reads ", " times", true, true ); ?>Place no spaces before an after "_". Its only for layout. Otherwise "_" makes italic text.
<?php if(method_exists($count_per_day, "show")) $count_per_day->show( "reads ", " times", true, true ); ?>thank you again
but really i've not uderstand why ... i've just copy your code from the last reply and it work
Learn a little PHP. I simlpy wrote the right code.
The code in readme shows e.g.
$count _ per _ daybut you have to use$count_per_day. Without spaces those inserted only for the readme parser. You are not allowed to uses spaces in names of variables or function in PHP.How to insert the plugin manually in the theme ..
am trying to insert the code which shows online visitors, visitors per days and all visitors but I keep failing I dunno why :(
Can you help me please ?
Try this code. Maybe (in functions) you have to "global" $count_per_day.
Thanks alot but it didnt show more than the text
Sure. It's just an example.
should show online, all and per day visitors (average last 7 day).
hallo.
neuerdings habe ich kurz nach dem posten extrem hohe (irreale) clicks bei "this post" (im widget) (s. zB. http://www.oliverw-photography.com/site/blog/?p=716)
wo kann der fehler liegen?
gruß
Schau mal in den Einstellungen ob dort Massen-Bots aufgelistet sind. Also IP-Adressen, die sich "zuviele" Seiten ansehen. Sind für mich Spammer, vielleicht direkt durchs Veröffnetlichen über den Feed "angelockt".
aha, ok, die bots, die drin waren sind halt immernoch drin:
bot spider search crawler ask.com validator snoopy suchen.de
suchbaer.de shelob semager xenu such_de ia_archiver
Microsoft URL Control netluchs
Wo drin? In der Liste? Die werden ja schon gefiltert. Wenn du in der Datenbank (per phpmyadmin oder so) neue/anderen findest, musst du die zur Liste hinzufügen. Danach kannst du auch die DB aufräumen, und so die neuen Filter drüberlaufen lassen.
Hallo Tom, wie kann ich in der Funktion "getMostVisitedPosts();" die Startseite beim Zählen ausschließen? Danke!!!
Hallo Mandy,
aktuell gar nicht. Warum? Stört sie? Ist doch nur eine Zeile.
nein, es stört eigentlich nicht, aber bei mir wird dummerweise folgendes angezeigt " 276 - Auf der Startseite wird angezeigt: - " und ich hab noch nicht gefunden, wo ich das abändern könnte bspw. in " Startseite " ???
Hab den "Fehler" gefunden. Bei mir wird "- Startseite -" angezeigt. Du hast anscheinend eine andere/aktuellere WordPress-Sprachdatei, die
'Front page displays'nicht nur mit "Startseite" übersetzt sondern eben korrekt.Du kannst vorläufig Zeile 787 von
echo '">- '.__('Front page displays').' -';auf
echo '">- Startseite -';ändern.
Hi,
prima Plugin!
Ich hätte da noch eine Anregung: Es wäre schön, wenn Aufrufe, die oberhalb eines bestimmten Userlevels liegen nicht mitgezählt würden. Ich habe das mal bei mir eingebaut (s.u.). Es wäre natürlich super, wenn das in den Standard käme. Ein Einstellungsparameter bei den Parametern wäre natürlich auch gut.
Hallo Arne,
es gibt ja die Möglichkeit, keinen angemeldeten Benutzer zu zählen. Du willst jetzt aber auch angemeldete "nur Leser" Level 0 mitzählen, richtig?
Klingt irgendwie logisch, zumindest in Blogs, die den Lesern ermöglichen sich anzumelden.
Genau, ich möchte vermeiden, dass Autoren/Administratoren-Zugriffe mitgezählt werden, da diese meistens nur dazu dienen, das Design/Layout zu testen.
Wo ich gerade dabei bin: Ich habe da noch die Idee, die Zähler, die bei den Tag-Aufrufen anfallen dazu zu nutzen eine Art 2-dimensionale Tag-Cloud darzustellen. Ich stelle mir dabei vor, dass die Größe des Tags weiterhin die Anzahl der getaggten Post darstellt, aber die Farbe abhängig von den Clicks auf das Tag dargestellt würde.
Was hältst Du davon?
Ui, das wird denke ich den Rahmen des Plugins sprengen. Soll ja vornehmlich ein Zähler sein. Aber ich kann mal sehen ob es einen einfachen Weg gibt. Wäre dann wohl ein eigenes Tag-Cloud-Widget.
Noch was (sorry, wenn ich Dir jetzt die Kommentarseite 'vollmülle'): Es gibt bei der Auswertung der GeoIP den Fall, dass kein Land zugeordnet werden kann. Daher erscheint bei mir in der Auswertung eine Zeile mit einem broken Link (Ich glaube er sucht in der Zielseite nach einem File '.../.gif' anstelle von z.B. .../DE.gif). Könntest Du nicht für so einen Fall ein Standard-Icon einbauen (z.B. Flagge mit Fragezeichen)?
OK, das ist natürlich ein Fehler, der ausgemerzt gehört. Meine Besucher kommen alle aus bekannten Ländern, da fiel mir das noch nicht auf.
Hi Tom,
gibt es eigentlich die Möglichkeit die Sortierung im Post-Loop nach der Anzahl der Counts durchzuführen?
Meinst du im Frontend, die Posts, die nach Datum sortiert sind?
Wozu könnte man das brauchen?
Du kannst dir ja eigene Querys für den Post-loop basteln und dort dann eben die Counter-Daten mit einfließen lassen. Aber ich denke, das wird sich je nach Anzahl der Besucher stark auf die Performance auswirken.
Ich habe mir eine tabellarische Übersicht gebastelt, wo ich z.B. auch nach den Ratings (GD Star Rating) sortiere (Siehe hier ). Da fände ich es schon auch charmant, nach der Anzahl der Reads suchen zu können...
Das mit den eigenen Queries habe ich glaube ich noch nicht probiert - bei GD Star Rating gab es da eben schon was...)
Kannst du dann nicht
$count_per_day->getUserPerPost(-1);benutzen. Wäre dann die "Besucher pro Artikel" Liste mit Titel und Anzahl, sortiert nach Anzahl. Anstatt -1 für alle, kannst du auch nur die 20 am meisten besuchten Seiten anzeigen lassen. Sollte auch im Frontend funktionieren. Ggf.global $count_per_day;davor setzen.Danke für das tolle Plugin! Ich hätte noch einen Verbesserungsvorschlag: Wäre es möglich, das Plugin auch so zu programmieren, dass es mit Hyper Cache oder Super Cache funktioniert?
Möglich vielleicht, aber Counter und gecachte Seiten mögen sich ja nicht unbedingt. Ich selbst benutze solche Plugins nicht, weiß daher auch nicht wie genau sie funktionieren. Vielleicht irgendwann mal.
Any idea why the Count per Day number on my blog is different from my Google Analytics numbers?
Use 10 counter and you will see 10 different numbers.
The counter have different filter. Count per Day counts only 1 visitor per page per day not every pageload.
In the plugin, the day starts in the afternoon, my time (I'm in California), I need to make it start at midnight my time, is there a way to do this? I can't get an accurate daily read that way.
Oh, it is not fixed? I changed the time functions in version 2.7. OK, i will check it again.
I have a problem with browser statistics. I get 102% if summarize all percent. What is the problem?
(MSIE 46%, Firefox 34%, Chrome 4%, Opera 14%, AppleWebKit 4% = 102%)
It's OK. All numbers are rounded. So e.g. 45.6 + 33.6 = 79.2 but shows 80 in summary.
Thanks, but if not rounded (decimal switch 0 to 2), and summarize, then get more than 100% too. I look into your code, but not found where is problem...
There are clients with two names in user-agent e.g.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195those count twice. AppleWebKit is "Safari" too, but i save only 100 chars (to save space). You can change the database to 255 chars and the code "AppleWebKit" to "Safari".Ok, this works, and now get 100% if summarize all percent! Thanks for help!
Hi Tom
I am getting an error in post view count in the sidebar widget. For all posts it reads 117. However the Count per Day - Statistics page apears to be fine.
Thanks
Steve
Hi Tom
Sorry but i think it is another widget interfering with yours as your widget is fine when placed at the top of the sidebar, indicating a problem further down.
However this might be useful info for future bug reports of a similar nature.
If the fix i find is relevant to your widget i will post again.
Thanks for your time and Widget
Steve
OK, it's strange. Perhaps it helps to activate debug mode (
define('CPD_DEBUG', true);at top of the code. It shows the sql querys at the bottom of your pages.Which plugins you use before CpD?
Its a piece of code i wrote for a widget.
Just me being untidy and it seems to be affecting the counter.
Could be a global var thats doing it, possibly $post.
CpD is a class, so all vars/functions are internal like $count_per_day->getUserAll();. Only $count_per_day is global.
Can you send me the code piece via contact form?
OK, try to rename your global var
$postto$mypostor whatelse. Perhaps you overwrite the default var and CpD cannot find the ID.Hello
I've just updated to CountPerDay 2.7, but now I see that I lost some previous data (today's visitors, yesterday's, last week's, visitors per day) and the counter date is resetted. Is this normal?
Thanks
Solved by downgrading to CountPerDay 2.4 (not linked anymore on WordPress plugins page, but yet present: http://downloads.wordpress.org/plugin/count-per-day.2.4.zip)
The strange thing is that versions 2.7, 2.6 and 2.5 doesn't work well on my blog. Thanks
From 2.4 to 2.5 i made some big changes on the database, see readme above. To update, you have to deactivate the plugin, install new files and activate it. On activation the changes will take a while.
Otherwise uninstall (bottom on optionpage) your version to clear the database and install 2.7. Here you can set startdate an startcounter (summary) on optionpage.
PS: Older plugin versions you will find under the right link "Other Versions >" on the wordpress plugin page.
Can I send you a screen capture of a massive peak in traffic today which seems anomalous? I mean I am showing over 5000 visits where I am averaging around 700 per day. Does not coincide with Google Analytics at all.
See your database ...cpd_counter to check the clients. I think you will find some spam/bots.
Add the strings to the blacklist and clean the database on options page to delete this entries. It's my way in this case.
hello! i have just upgraded to Version 2.8 but there is a problem....it is showing '10---------' above my website's header (http://zjtechlive.com)...please help me with this as soon as possible ..thanks
Sorry, this was a little mistake. Download the "new" Version 2.8. Or delete the line (near 200) with the code in
counter.php.Sorry Tom but i was not able to do it...can you please tell me exactly what i have to delete from counter.php....thnx
Delete line near 202:
echo intval($userdata->user_level).'---------';See trac.
Success.......great plugin by the way...thnx
Hey Tom, thanks for the update as suggested. ;0) Nice job. The icons are really cool now on the left to edit and now its easier to reach your site from there. :0)
Now, let's hope you get to implement that some time. ;0)
All the best.
Still on the todo list but not so easy as i hoped.
Especially for you Lucato
: You can test the notes in the Development Version. You have to deactivate/activate the plugin to create the new table.
Wow, I'll check it out buddy. Thanks a lot. I'll post a feedback soon. Let me download and install it now. ;0)
See ya.
Hey Tom, if you have some e-mail to talk about it directly, send me it to my e-mail. Well, when clicking on the Pop-up I got an error. It was:
Warning: Cannot modify header information - headers already sent by (output started at mypath/wp-content/plugins/count-per-day/notes.php:9) in mypath/wp-content/plugins/xlanguage/xlanguage.php on line 243
I use the plug-in xLanguage for my two language site and can't dective it.
You've got mail.
You too.
Hallo an alle! Mein Name Bäume, fragte ich mich, wenn es möglich war, in das externe Modul einschließlich der Gesamtzahl der Seitenzugriffe angezeigt. E 'möglich, die insgesamt Seiten von Benutzern eingesehen sehen? Sind unpraktisch, PHP, ich hoffe, ich kann in dieser Hinsicht helfen. Thanks for the nice work.
-------------------------
Salve a tutti! Mi chiamo alber, mi chiedevo se fosse possibile far visualizzare nel modulo esterno anche il totale di pagine visualizzate. E' possibile far visualizzare il totale di pagine viste dagli utenti? Sono poco pratiche del PhP, spero mi possiate aiutare in questo senso. Grazie per il bel lavoro svolto.
Hi alber, i can add this function to the widget in next update.
I hope i understand the "google german" correct.
@ Tom:
Hi alber, i can add this function to the widget in next update.
I hope i understand the “google german” correct.
@alber:
Große Tom, ich kann nicht warten, freuen. Ich muss sagen, ich bin begeistert von der Einfachheit der Nutzung Ihrer super Plugin überrascht.
Google hat perfekt übersetzt, wie ich hoffe, das Gleiche mit meinen Kommentaren zu tun:).
Guten Tag an alle!
---------------------------------------
Grande Tom, non vedo l'ora, aspetto con impazienza. Devo dire che sono meravigliato per la semplicità di utilizzo del tuo super plugin.
. Buona giornata a tutti!
Google ha tradotto perfettamente, spero faccia altrettanto nei miei commenti
Hi there! I've been using your plugin for some time on a lesser-updated website and my counter seems to have stopped counting at June of 09. I upgraded everything and everything's still on 0, even though I see in my awstats that I've had visitors. I'm sort of a newbie at PHP so you might have to use laymen's terms with me. Sorry for the trouble.
Hi Rachel,
check your "spam bot list". Maybe there is an string which sets all clients to bot and don't count them. Or uninstall/reinstall the plugin completely new. Us the uninstall button on options page. Sorry i don't know this issue.
Did a clean install and so far, it seems to be fixed. Thanks!
Tom, I usually get about 50,000 pageviews per day. But sometimes I get 250,000. Once the traffic got heavy (~100,000 visitors) and the script overloaded a powerful server with 8 CPU's. We had to disable database access and then ftp in to remove the CPD plugin.
Ever since then I have been worried about using it because I have no way to set a minimum time for queries. If traffic gets high the script runs so fast that the server can't keep up. It's a good server too. $150/month at Rackspace.
Hi Austin, deactivate the widget to save query time. Without widget CpD have to count only, not to get summaries too. To check query times (show at bottom of every page) you can activate the debug mode in counter.php (one of the first lines). Maybe you can send me this data to take a look.
Ich erkenne das, was ich ersuche ich Sie um weit mehr, aber ich frage mich, ob Sie die Anzahl der Besuche manipulieren können und versuchen zu erklären.
Ich habe eine Dienstleistung für die Benutzer der Menge der Besuche, die Anzahl der angezeigten Seiten. Meine Frage lautet:
Ich kann die Anzahl der Anfragen gesetzt wurde vor der Installation Ihres Plugin?
Nachdem der Dienst: 182.540 Seiten, 37.387 Besuche. Das Plugin berechnet deutlich die Anzahl der Besuche, die durch die Installation.
Sie sagen, Sie anpassen können? Danke!
---------------------------------
Riconosco che quanto sto per chiedere va ben oltre, ma mi chiedevo se si può manipolare il numero delle visite e cercherò di spiegarmi.
Usavo un servizio per contare le visite utenti, numero di pagine visualizzate. La mia domanda è:
Posso impostare il numero di visite ricevute prima dell'installazione del tuo plugin?
Avendo dal servizio: Pagine 182.540, Visite 37.387. Il plugin calcola chiaramente il numero di visite dalla sua installazione.
Dici che si può regolare? Grazie!
You can set visitors "Visite 37.387" and "start date" on options page.
Pages "Pagine 182.540" i will add in next update too.
Thanks Tom for your help. Ich versuchte die Installation Giono, funktioniert aber nicht.
Ich legte das Datum als Service: Startdatum: 2009-02-02 Start und zählen: 38.388
Genau so, ich gespeichert und wieder geladen werden auf der Hauptseite sel Website. Ändert sich nichts außer der Tatsache, dass Erhöhungen des Benutzerkontos von einigen der Besuche, aber nicht zu überschreiten oder erreichen die tatsächliche Anzahl von 38.388 Besuche. Ich verstehe nicht, wo Fehler gemacht.
------------------------------------
Grazie Tom per il tuo aiuto. Ho provato dal giono dell'installazione ma non funziona.
Ho inserito la data come dal servizio: Start date: 2009-02-02 e in Start count: 38.388
Esattamente così, ho salvato e ricaricato la pagina principale sel sito. Non cambia nulla se non per il fatto che aumenta di qualche utenza il conto delle visite ma senza superare o raggiungere il numero effettivo di 38.388 visite. Non capisco dove sbaglio.
Ich habe, tut mir leid für die Unannehmlichkeiten, Tom!
Kurz gesagt: Ich hatte die Zahl ohne die Nummer zu schreiben: Ich habe 38.388, während in Wirklichkeit musste ich 38388. schreiben.
Vielen Dank für das, was Sie tun und geben uns, dass. Eine Umarmung. ALBERCLAUS
--------------------------------------------
Ci sono riuscito, scusa per il disturbo Tom!
In poche parole dovevo scrivere il numero senza il punto: io scrivevo 38.388, mentre in realtà dovevo scrivere 38388.
Grazie molte per quello che fai e che ci doni. Un abbraccio. ALBERCLAUS
Brilliant Plug-in.
Now I can easily see how many unique visitors I have and what they are looking at.
Tom, I've tried to send you an e-mail with the .po files, but it is returning as Mail Delivery System - Undelivered Mail and the problem as "blacklisted". I'm not sure if you got the files. I tried to send also in a zip file, but it returned too. I'm not sure if it is a temporally issue over there/here. I'll try tomorrow again if I don't forget.
Hi Tom!
Erstmal vielen Dank für das tolle Plugin!
Hätte hier einen Vorschlag für eine Erweiterung: Ich hatte vor deinem "Couter per Day" Plugin bereits einen anderen Counter. Wenn ich nun deinen Aktiviere, sind die alten Zählerstände natürlich nicht mehr auf dem gewünschten Stand. Daher wäre es super wenn man hier irgendwo einstellen kann, dass nicht von 0 an gezählt wird. Im Moment helfe ich mir damit, dass ich einfach im Code hier bei der entsprechenden Funktion einfach meinen alten Zählerstand dazu addiere, aber leider ist das nicht so super um Updates zu installieren... Für meine Zewcke hilft das jedoch.
Viele Grüße
Frank
Hallo Frank,
in der aktuellen Version kannst du Startdatum und Startzählerstand angeben. Den Wunsch hatten schon andere. Musst mal wieder in die Einstellungen schauen.
Hi Tom,
danke für den Einbau des Userlevels in die neue Version!
Ich beschäftige mich gerade mit diese leidigen Datenschutzrichtlinie (TMG). Es scheint ja wohl so zu sein, dass man in Deutschland keine IP-Adressen speichern darf. Hast Du schonmal darüber nachgedacht, einen Schalter einzubauen, der steuert, ob IP-Adressen gespeichert werden, oder nicht? Das Feld in der Datenbank müsste dann halt leer sein.
Grüße,
Arne
Wer darf keine IP-Adressen speichern? Das macht doch jeder Server von ganz allein. Jeder Counter sowieso, denn wie soll man sonst die Besucher unterscheiden? Ohne IP würde mein Counter nicht mehr richtig funktionieren. Übrigens hinterlässt auch jeder Kommentator seine IP.
Außerdem speichere ist ja nur eine Zahl und keine IP.
Hallo liebe Tom! Ich habe dein Plugin aktualisiert und ich hoffe, nicht zu verwechseln, wie es scheint, dass Sie Ihr Wort gehalten haben und das ist es, dass Sie das Plugin, um die Nummer an und aktualisiert hätte insgesamt Seitenaufrufe heute. E "oder so war ich falsch? Wenn ja, wie ich die Anzahl? Jetzt versuche ich es eingerichtet werden, aber ich muss sagen, du bist eine Bombe. Ein Genie macht Sie zu einem Schnurrbart, du bist auch zu gut!
Ich fragte mich, ob ich ein Plugin html könnte ein phpbb3 Forum machen, aber vielleicht frage ich zu viel und ich bin froh das gleiche wie Ihr fantastisches Plugin. Great Tom!
-----------------------------------------------------
Ciao carissimo Tom! Ho aggiornato il tuo plugin e spero di non far confusione, mi sembra che tu abbia mantenuto quello che hai detto e cioè che avresti aggiornato il plugin per visualizzare il numero di pagine viste odierne e totali. E' così o mi sono sbagliato? Se così, come faccio a modificare il numero? Ora stò provando a impostarlo, ma devo proprio dirlo, sei una bomba. Un genio ti fa un baffo, sei troppo troppo bravo!!
Mi domandavo se riuscissi fare un plugin html per un forum phpbb3, ma forse chiedo troppo e mi accontento lo stesso del tuo formidabile plugin. Grande Tom!!
Ich tat es, I die Nummer des Zählers, das ich benutzt habe und auch später hinzugefügt diese Besuche. Sie sind schrecklich und sage nicht, so zu sprechen. Vielen Dank, Tom, danke danke danke
--------------------------------------------------------------------
Ci sono riuscito, ho inserito il numero del contatore che usavo e ha anche aggiunto quelli delle visite in seguito. Sei formidabile e non lo dico tanto per dire. Grazie mille, grazie grazie grazie Tom
Lieber Tom, registrierte ich nur WordPress-Plugin für Ihre Stimme. Ich habe zu rappen, deine Hände, sollten Sie einen Link in den Code hinzuzufügen, muss ein Benutzer selbst Förderung, Sie verdienen es. Bald!
----------------------------------------------------------------------
Caro Tom, mi sono registrato su WordPress solo per votare il tuo plugin. Devo bacchettarti le mani, dovresti inserire un link nel codice conta utenti per farti pubblicità, te lo meriti. A presto!
Caro Alber, grazie mille!
but i think i understand you correct. Thanks to write italian too. 
The Google translations are wonderful.
"Sei formidabile" > "Sie sind schrecklich" > "Sei terribile"
Your comments are praise enough. But if you want, you can give me all your money.
Hey Tom, thanks for the update and for implementing my other suggestions like the notes feature, different color bar for notes, retrieve the actual date on note, and so on. Thanks also for the new features added and stats info. Really cool and very useful. Congratulations and keep the amazing work!
HI,
Right to left problem
Thank you for great counter
in WordPress!
I am using WP 2.9 and have just upgraded the counter plugin but now have the following warning in both the counts per day and reads per day
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/michae78/public_html/greenlifestyleideas.com/wp-content/plugins/count-per-day/counter.php on line 443
Can you help?
Best
michael
It looks this queries don't return an correct result. You can set
define('CPD_DEBUG', false);to true at top of counter.php and see the queries at bottom of every page. Copy and paste to phpMyAdmin.Or deactivate/activate the plugin. Perhaps the table structur is not up to date. I have changed the columns in version 2.5.
Thanks Tom, deactivating and re-activating the plugin did the trick.
This is a fantastic plugin with a whole range of features and useful information, many many thanks and congrats to the authors
tom, für dieses plugin bin ich dir unendlich dankbar. endlich konnte ich von dem be*sc*is*en*m goog*e anal*tics weg, und hatte alles unter einem hut auf meiner website. mal ganz abgesehen davon das anal*tics immermal (und als immer öfter xD
) mist gebaut hat (im sinne von "tag 1 200 besucher, tag 2 0 besucher...
) und ich einfach was neues brauchte:
SUUUUUPER PLUGIIIN!
DAAANKE!
[...] plug in หลายตัว เลยเลือกมาตัวนึงชื่อ Count per Day วิธีติดตั้ง plug in ใน WordPress [...]
Hi, Tom... just wondering if you will be able to fix the time that the day starts. As I mentioned before, my day starts at some point during my afternoon and I can't get a good count of visitors per day.
I'm in Pacific Standard Time. Right now it's 4:42 PM, and the new count for the day started a few minutes ago.
Hi Rebeca, i can't reproduce this issue. All my test have the right time. OK, i will test again. Strange.
Hello, here comes the french translation of Count Per Day
Thank you for the plugin !!
http://www.megaupload.com/?d=DRVEY2EF
http://www.mediafire.com/?uc3nlqddzzy
http://www.sendspace.com/file/q6e5hg
Bye
Hallo Tom, ich bin ein armer Mann, sondern dazu beitragen, Ihre super Plugin, machte ich eine Seite, um die besten Plugins im Einsatz gewidmet auf meiner Website. Wie konnte ich nicht setzen verkaufen?
Ich hoffe, dir bei deiner Aufgabe helfen, und trotzdem auf diese Weise nützlich sein. Anfang 1000 und noch einmal danke!
--------------------------------------------------
Ciao Tom, sono un poveretto, ma per contribuire al tuo super plugin, ho fatto una pagina dedicata ai plugin migliori in utilizzo sul mio sito. Come potevo non mettere il tuo?
Spero di aiutarti nel tuo compito e di essere comunque utile in questo modo. A presto e ancora 1000 grazie!
ALT + F4
Hi Tom,
Danke fuer das klasse Plugin.
Nach dem letzten WP Update und dem Plugin Update sind allerdings meine Länder-IPs verschwunden, satt dessen bekomme ich die Fehlermeldung:
DEBUG: dir=*** file=- fopen=true gzopen=true allow_url_fopen=false . . .
php ist jetzt nicht ganz meine Welt, aber irgendetwas ist da nicht richtig, oder?
Gruß,
Moghedien
Nach jedem Update musst du dir GeoIP-Datei neu runterladen. Die packe ich wegen ihrer Größe nicht mit ins Update. Geht per Klick in den Einstellungen direkt über der Zeile die du gepostet hast. Ist übrigens keine Fehlermeldung sondern steht als Hilfe bei Fehlern immer da.
Hi
Hope you can help, 'cause it won't work at my site :(
I've installed the plugin, activated, and went through the configuration. Everything seems to be ok, but the number of visitors don't get counted!?
If i look at the admin page, i see one user online right now (me), but number of visitors is 0 - Even though i know there has been visitors at the page.
Thanks!
Hi,
do you have installed cache plugins?
Nope ... was i supposed to do that??
I'm pretty new at this.
All i have is WP version 2.9.2, a theme, a deaktivated guestbook plugin, deaktivated Akismet plugin, and this counter.
"Loged Users" is checked? Set Userlevel to 0. This counts every visitor, loged on or not.
Otherwise try to uninstall on the CpD options page (bottom). This deletes all options and tables. Then reinstall. Maybe the database structur is not up to date.
I have now reinstalled (deleted the tables at conf page, and reactivated the plugin) and checked "Loged users", with the level set at userlevel 0 (admin).
Now the number of online users is also 0, but maybie i have to wait a while ...
userlevel 0, not 10!
Yeah ... my mistake. The userlevel is set at 0 (not sure what the english word is) NOT userlevel 10 (admin)...
I again now have one user online (myself i guess) but 0 visitors :(
My failure. 10 is right and counts all users.
Hallo Tom,
habe in WP 2.9.2 von 2.8 auf 2.9 updated un erhalte diese Fehlermeldung:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /html/wordpress/wp-content/plugins/count-per-day/counter.php on line 855
Standard-Einstellungen sind leer und werden wohl nicht gespeichert, da die bei nochmaligem Aufruf wieder verschwinden, de- und aktivieren hat nichts gebracht, import der Datenbanken aus anderer installation auch nicht.
Hmm? Kannst du helfen?
Wenn die Einstellungen leer sind, können die mysql-Queries nicht richtig erstellt werden, das würde den Fehler erklären.
Lösche mal per phpmyadmin in der Tabelle
wp_optionsden Eintrag mit option_name = 'count_per_day' und speichere dann die Einstellungen nochmal. Vielleicht stimmt da was nicht. Ich hab sonst nichts geändert.du hast recht, da stimmt was nicht: Der Eintrag ist nicht vorhanden. Habe den Eintrag manuell angelegt mit der Option ID=2516 (aus der anderen Installation abgeguckt). Nach erneutem speichern der Standardeinstellungen, verschwinden diese wieder, der Eintrag unter wp_options bleibt, aber mit option ID=0.
Komisch oder?
Sorry Tom, habe es jetzt doch hingekriegt mit dem Anlegen des wp_options Eintrages, allerdings mit der Version 2.8., die ich bis zum nächsten Versuch erstmal mal laufen lasse. Danke für deine Hilfe.
I just installed Count Per Day plugin v. 2.9 on my WordPress v. 2.9.2. and I got the following error code before leaving the settings page.
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in .../wp-content/plugins/count-per-day/counter-options.php on line 313This refers to the bots section. I have tried editing the bots, even removing all bots but the error persists.
Any ideas?
I only get the error if i set "mass bots" to 0. Default on page load is 25. I have to fix it.
You can delete lines 831 and 832 in counter.php.
hey, i just installed the latest update, and i get an error now on the dashboard....
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/**********/wp-content/plugins/count-per-day/counter.php on line 443i checked the line:
any ideas how to fix this?
regards
Just count a visitor. Your Database is empty. I will catch this error in next update.
Hi Tom,
My blog have been blacked out because of a conflict between your "Count per day" and another plugin that uses geoip class as well.
All of my blog was showing blank pages, till i figured out that the error was caused by your plugin trying to redeclare some of the geoip functions, which i overcame by modifying line 37 as follows :
Before:
if ( file_exists($cpd_path.'/geoip/geoip.php') )After:
if ( !function_exists("geoip_country_code_by_name") && file_exists($cpd_path.'/geoip/geoip.php') )This solved the problem for me and couple of friends as well!
Thanks.
Shady
This works if CpD loads after the ohter plugin. If CpD loads before the function don't exist and the file will include. So the other plugin have to include this too.
I will do this. Thanks!
I have a proble with the newest version of Count Per Day.,.,
PHP Error Message
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a7695811/public_html/wp-content/plugins/count-per-day/counter.php on line 443
Free Web Hosting
Same issue as joe above. I think your Database is empty after a fresh install. Just count some visitors.
Hi Tom,
ist es möglich den "Visitors per Post" Zähler direkt in den entsprechenden Post einzubauen? Wenn ja, wie?
Danke und Gruß,
Frank
Hallo Frank,
es ist möglich und wie es geht steht oben in der readme.
Zum Beispiel:
Vielen Dank Tom!
Das die Antwort im Readme steht hab ich wohl übersehen
Hey, Tom
Thanks for this great plugin. I just installed and activated it (on a brand new wordpress instalation) and voila. It just does the work as advertised.
Great job. Just great.
Thanks for the cool plugin, but i get a problem, the database of this plugin is big, can i disable some details in order to make it smaller?
Thanks!
How big?
Short answer: No.
Longer: You can empty the column
client. It takes most space. Or delete data older than 6 month or something else you don't need anymore.Hi Tom,
First - I love your plugin, I've been using it on nearly all of my sites for a the past few months. This morning, however, for some reason it caused _all_ of my websites to 'freeze' - white screen, can't load admin, can't load any pages.
I disabled CPD and it fixed instantly. This worked across a number of different servers (the problem was not local to one site). It was the same on low and high traffic sites. Any idea as to the reason? Maybe I'm alone in having this problem, but I wouldn't mind knowing as it's an awesome plugin.
OD
What says the php error log? A white page seems to be an php error which are not show in wordpress normally.
Maybe a
define('WP_DEBUG', true)in yourconfig.phpcan help.Have you installed an another plugin that isn't compatilbe with CpD?
Hey OD,
you might wanna try my solution above, as you seem to have the same problem i had before..
Cheers!
The "Reads per day" graph on the "Count per day" page is giving me this return:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/davensjo/public_html/wp-content/plugins/count-per-day/counter.php on line 443
I figure it's a bug and you need to know about it so you can correct it.
Same error as jow and Aveef above? Database empty?
I never saw this error. I think our PHP and MySQL version makes some differences.
And yes, i have to know every bug.
Issues with Visitors per day graph not showing with Version 2.9. Graph error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /wp-content/plugins/count-per-day/counter.php on line 443
You are No. 4 with this issue. Read the comments above. Empty Database?
Not an empty database, the error just showed up one day
Warning: mysql_num_rows(): ... on line 443
Yes, the first time you install the plugin with no CpD data in DB.
I logged on today and the two functions of "Who's Online" and "Who's Been Online" are gone. I can't access them from anywhere, not in the main menu or at the bottom of the dashboard page. Please help!
I don't understand. These functions are not exists in Count per day. "Visitors today" in your sidebar shows currently 2.
Hey there,
Not a big problem, but just update to the latest version and the bars in the "reads per day" and "visitors per day" show for the days (you know, when you go over them with your mouse) "donderdag donderdag -date." The problem is not the dat part; thats just me being lazy. The problem is the donderdag donderdag. It's just double. "Donderdag" being thursday in dutch. So if you could look into that??
Hi Erwin,
Donderdag is an nice word for me. Much better than the german Donnerstag. Donderdag, Donderdag. Where is your problem.
You have set your blog data format with the dayname an i add it the name too.
Change line 506:
$date_str = mysql2date('l', $day['date']).' '.mysql2date(get_option('date_format'), $day['date']);to
$date_str = mysql2date(get_option('date_format'), $day['date']);Thanks Tom. And yep, you're right, donderdag is nice
Hi,
Eine Frage. Kann man die Statistiken die im Admin Panel zu sehen sind auch irgendwie für die normalen User freischalten?
Also ich mein z.B. Seitenaufrufe pro Land" oder so.^^
mfg
Hi,
ich denke schon. Habs noch nicht probiert. Du müsstest die Funktionen in ein entsprechendes Seiten-Template eingeben und dieses dann für eine Statistikseite benutzen. Oder ein Plugin benutzen, das die Codeausführung im Post-Content erlaubt. Dann kannst du die Funktionen auch dort reinschreiben. Halte ich aber für unsicherer und komplizierter als ein eigenes Template.
Sorry ich werd daraus nicht schlau :D sorry:o
Was muss ich genau machen damit ich das für normale Leser anzeigen lassen kann?
Also das ich was rauskopieren muss weiß ich, aber was?
Ich hoffe du kannst mir helfen.
Danke schionmal
mfg
Naja, das war jetzt auch keine detaillierte Anleitung sondern eher eine Richtungsweisung, wie es gehen könnte.
Neues Seiten-Template anlegen und dort die Funktionen einbauen. Die Namen findest du am einfachsten in der Funktion onLoadPage() (counter.php ab Zeile 1213). Beispiel "dashboardChart":
Das sollte ein Diagramm anzeigen.
Dann eine Seite anlegen, die dieses Template benutzt. Hab aber wie gesagt nichts getestet.
Okay, das habe ich soweit kapiert - Dankeschoen.
Nun habe ich noch eine letze Frage. :D
Wie erstelle ich eine neue Seiten Template?
mfg und Danke im Vorraus.
OK, die eine Antwort gebe ich dir dann auch noch.
In einem Theme-Verzeichnis sollte eine page.php oder so liegen, das Template für Seiten. Kann allerdings auch anders heißen.
Diese Datei speicherst du unter einem anderen Namen counter.php oder so. Am Beginn der Seite muss du den Namen des Templates eintragen.
Dieser Name erscheint dann in der Auswahlliste rechts im Seiteneditor.
Im Template kannst du den Loop (have_posts()...) auch weglassen, wenn du nur die festen Funktionen nutzen willst.
Hey Tom,
Habe das jetzt auch hinbekommen.
Habe auch die Länderbesuche anzeigen können :D
Nur bekomme ich das nicht so hin wie ich das möchte.
Möchte gerne die "Besucher Gesamt" Box, "Seitenaufrufe pro Land", "Browser" angezeigt haben.
Aber ich schaffs einfach nicht.
Kannst du mir bitte sagen was ich dafür in die Seiten Template einfügen muss?
Vielen, Vielen dank im Vorraus.
mfg
Probier mal sowas in der Art:
Die divs und deren Inhalt musste noch per CSS anpassen. Evtl. hilft auch einfach
Ist dann aber nicht mehr valide. Musst mal sehen.
Danke, habs aber jetzt anders lösen können :D
Hab mir einfach die Funktionen aus der Counter.php genommen und hab sie verdoppelt und bearbeitet.
http://kingstyler001.madahost.de/?page_id=180
So siehts jetzt aus.
mfg
[...] Count per Day [...]
[...] Download [...]
hi tom!
Danke für das Plugin, funktioniert bestens!
ABER
eine Frage habe ich an dich: Unterstützt das Plugin auch die IP anzeige auf dem Dashboard bzw. die GeoIP anzeige? Ich hab innerhalb der Einstellungen die Möglichkeit gefunden die IP's der Besucher anzuzeigen, doch nicht am Dashboard
Es scheint alles darauf hinzuweisen, das es diese Funktion gibt, doch ich finde und finde sie nicht
.
Danke, im Voraus!
MEiK
Hallo MEiK,
da muss ich dich enttäuschen. Die IP wird zwar mit gespeichert, aber eine Funktion "Besucher pro IP" gibt es noch nicht. Kann ich aber mit einbauen. Musst dich halt bis zum nächsten Update gedulden.
is there a way to show view count of each post along with the title in a bracket ??
in the web page i mean..not in the admin panel...
Try this code in a template.
does this show view count in my web page or in my dashboard ??
and please give exact template to copy. i dont know these things. sorry...
Save this code as c
ounter.phpin your theme directory.It works with my theme but yours can be different. Compare the file with your
page.php.Add a new page and select the template "Counter".
Add
to your
style.cssto hide the post edit link.Hi Tom,
habe nach einem Plugin gesucht das Visits zählt - hab dann count per day gefunden, welches meine erwartungen übertroffen hat. hab es auf meinem selbstgehosteten wordpress blog installiert - aber hab leider nur leere statistiken
Im Dashoard steht bei allen Werten "0", aber keine Fehlermeldung oder etwas anderes sonderbares. Habe gedacht ich warte einen Tag und lasse verschiedene leute auf meinen blog zugreifen, in der hoffnung count per day würde doch noch anspringen. aber leider nur Nullen. Überall.
Habe bis jetzt noch keine codes in irgendwelche dateien geschrieben, da ich nur die Daten für das Dashboard haben will und gelesen habe, dass das dafür nicht notwendig sei.
Hast du mir vielleicht einen Vorschlag oder gar eine Lösung?
Wäre dir so dankbar!
Phil
qoob.log
Hi Phil,
anfangs gibt es noch keine Werte, da sind Nullen normal. Sollte sich allerdings schnell ändern. Hast du die Einstellung zum Zählen der angemeldeten Benutzer gecheckt? Normalerweise werden diese, also auch du als Admin nicht gezählt. Dort den Haken setzen und das Level auf Administrator (10) stellen. Dann wirst auch du gezählt. Nur zum Testen. Wenn nur registrierte Leser gezählt werden sollen, falls du das erlaubst, das Level auf Abonnent (0) stellen.
Wenn kein Fehler vorliegt, kann es eigentlich nur daran liegen. Evtl. nicht die Liste mit den Spam-Bots checken.
i found this error =
# Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/blog/public_html/blog/wp-content/plugins/count-per-day/counter.php on line 556
0Total reads:
#
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/blog/public_html/blog/wp-content/plugins/count-per-day/counter.php on line 567
Visitors today:
# 0.00Visitors per day:
how to fix it?
anyone that gets this error: Warning: mysql_num_rows(): … on line 443.
All you have to do to fix this is to deactivate the plugin and then reactivate it. It works!
I think you have to wait for visitors to count and fill the database too. Never seen this error.
Reactivation? Maybe you have uploaded an update per FTP and not deactivated the plugin. The activation after an update is important while i change the datatbase on this point (sometimes).
After a update of wordpress (2.9.2) and count-per-day (2.9) a strange error ocours:
PHP Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in...\wp-content\plugins\count-per-day\counter.php on line 857
I deactivated and reactivated the plugin, update again de WP and nothing.
What I´m doing wrong?
thanks
Empty counter database? Which PHP and MySQL version?
No. I was using count per day an older version correctly.
php: 5.2.12 mysql: API client version: 5.0.51a
only de table wp_cpd_notes is empty.
Yes, I´m doing something wrong! But, what?
I think it is important: this error occurs only when I click over count per day icon in administration panel.
Thanks
Change in top of counter.php
define('CPD_DEBUG', false);totrue. You will see all queries at the bottom of the page. Look forgetVisitedPostsOnDayorgetMostVisitedPostsand check this queries in phpmyadmin. Error? Empty result? Maybe the table structur is wrong/old. Try to rename table "..._counter". De/Reactivate teh plugin shoul create a new empty table. Compare the strutures in phpmyadmin.user is always user...
tables was ok. In the configuration of count per day there was not configured a value for fields ( visit per post, recent counts - posts/day) and this probably caused the error.
The SQL for getMostVisitedPosts function don´t had a LIMIT value.
I configured these fields and all works fine.
Thanks a lot and sorry...
OK, I have to check the default values by activation. Thanks for this message!
Ich versuche den Counter als Widgets in die Sidebar einzubauen - einfach durch reinziehen. Leider klappt der Zeilenumbruch nicht. Passt der Themes nicht zum Counte oder muss ich irgendwo noch dran drehen?
Ich würde mich über einen Tipp freuen.
Liegt an deinem Theme. in dem die Listen li inline formatiert sind.
Schreib mal in deine style.css
.cpd li { display:block; }oder ändere#l_sidebar ul likomplett ab.Hallo, danke. Hat geklappt durch den Wechsel von inline auf block.
Danke für die schnelle Reaktion.
hello,
Woudl you tell me how i can fix my error ?
This is image in admin-site
http://images38.fotosik.pl/280/e83205b127874609.png
Thanks
Pawel
Check (delete wrong content of input field if needed) and save the options. There are new values.
hey folks
do you know if somebody is working in a spanish translation? We can help with it
All known translation are included. I send you my email contact.
hallo,
also erstmal: großes Lob, das Plugin zeigt echt eine Menge an. Leider scheint es da ein paar Fehler bei den Berechnungen zu geben:
63 Besuche Seit diesem Mittwoch ergeben bei dem Plugin 6 am Tag.
63/5= 12,6.
Total reads: 98
Reads today: 30
Reads yesterday: 6
Total visitors: 63
Visitors currently online: 0
Visitors today: 24
Visitors yesterday: 5
Visitors last week: 55
Visitors per day: 6
Counter starts on: April 14, 2010
Gruß Lennart
seit 0 Uhr hat sich das korrigiert, ich beobachte es weiter.
"Visitors per Day" rechnet ohne Heute, also nur vollständige Tage. Und auch nur die letzten 7 oder was du in den Optionen eingegeben hast. Der Wert steht auch im "Tooltip" der Zahl. In deinem Beispiel wird also nur der 14.-17. berücksichtigt.
der Zähler funktioniert unter

http://www.ruedigerprehn.de/matti ausgezeichnet. Das ist eine Testseite.
Auf meiner Seite http://www.ruedigerprehn.de bekomme ich im Dashboard folgende Fehlermeldungen:
: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /var/www/web15/html/wordpress_rp/wp-content/plugins/count-per-day/counter.php on line 556
0Seitenaufrufe gesamt
Woran könnte das liegen?
Danke für die Unterstützung
Check mal die Einstellungen. In der aktuellen Version sind neue Optionen hinzugekommen, die momentan "undefiniert" sind. Trag mal sinnvolle Werte ein oder leere die Eingabefelder.
Hi you all , for all the ones that where having trouble with this error:
I just figure it out, Line 443 looks like this
if ( mysql_num_rows($res) == 0)So all you have to do is put 0 between ' ' like this
if ( mysql_num_rows($res) == '0')This is located at the counter.php file, you can edit this from the Plugin Edit Options from the WordPress Admin.
I just changed 443 line with the fix above in 4 of my websites, and the graphs started showing up again and everything is working great. So try it out... hope it helps
Thanks for the hint! But why 0 should not be '0'?
I used
mysql_errno()in my tests. If it not 0 the result is empty.Hallo,
ich bekomme das plugin nicht zum Laufen. (siehe 21.04.2010). Könnte es daran liegen, dass ich in einer Datenbank 2 WordPress mit unterschiedlichen Tabellenprefixen laufen lasse?
Gruß
Rüdiger
Hallo Rüdiger,
am Präfix kann es eigentlich nicht liegen, das wird ja durch die jeweilige Installation gesetzt. Hast du die 2.10 installiert, de- und reaktiviert? Zumindest eine mögliche Ursache deines Problems habe ich da beseitigt.
Die Einstellungen sind alle OK? Keine unsinnigen Texte in einigen Feldern?
Hallo Tom,
2.10 ist installiert, keine unsinnigen Texte in den Einstellungen, counter.php verglichen mit der bei http://www.ruedigerprehn.de/matti (hier funktionierts, hat aber auch eine eigene Datenbank).
installiert, aktiviert, deaktiviert, deinstalliert, neu installiert - und Null Ahnung von PHP
Öffne mal die counter.php im Plugin-Editor und ändere oben das
define('CPD_DEBUG', false);indefine('CPD_DEBUG', true);. Dann werden unten auf den Seiten die SQL-Queries angezeigt. Such da malcount checkund poste die Anfrage. Die scheint keine richtiges Ergebnis zu liefern.Ich habe die Änderungen vorgenommen, unten auf den Seiten steht auch viel, aber count check habe ich nirgends gefunden.
Lenke bitte mal meine Augen auf die richtige Stelle.
So nebenbei, in deinem Blog ist es 7:16 statt 9:16. Stimmt die Zeitzone?
Hallo Tom,
Punkt 3. ? Als SQL-Abfrage?
ich glaub, ich bin überfordert.
Welchen Code?
SQL-Version ist 5.0.32. Daran kann es nicht liegen, denn ruedigerprehn.de/matti liegt auf dem gleichen Webspace.
Mir ist aufgefallen, dass in der Datenbank keine _cpd_ Tabellen ist. Zeit habe ich umgestellt. Sollte die falsche Zeit das Erstellen der Tabellen verhindert haben?
wp_eis_cpd_counter gibt es gar nicht? Also ohne Tabellen geht's natürlich nicht.
Deinstalliere es mal auf der Einstellungsseite ganz unten. Dann werden die Optionen und Tabellen gelöscht. Dann wieder aktivieren, wobei alle neu angelegt werden sollte.
Die Zeit hat damit nichts zu tun, fiel mir nur auf. Die ist nur wichtig, wenn es darum geht, für welchen Tag der Besuch gezählt wird.
Hallo Tom,
mach ich - aber später. Muss erstmal was für die Arbeit machen.
Danke und Gruß
Rüdiger
[...] Site do Plugin: http://www.tomsdimension.de/wp-plugins/count-per-day [...]
[...] رابط الإضافه: http://www.tomsdimension.de/wp-plugins/count-per-day [...]
Hello. I am using WordPress 2.8.4 on my server. I downloaded "count per day" yesterday, and had some friends visit my blog.
All of my count numbers are "0". The only number that changes from 0 is "visitors on-line". Any ideas as to why the counter is not incrementing?
Hi Melinda,
"auto counter" is on/checked?
Do you count "loged on users", if your friends have an accunt?
Check the "userlevel".
Any error messages, PHP or MySQL?
Hey Tom, the same way we have in your plug-in the graphic bars for "Reads per day", it would be cool if you would add the "Visits per day" graphic bars to work with notes and so on equally as the "Reads per day".
Besides that, it would be cool to see a previous/next range in the graphic bars. I mean, if I set for 30 days, I would click on previous and it would read/show all 30 days from the previous month stats.
Have a nice weekend.
Hi Lucato,
The notes are saved by date. You can open the window/thickbox in both charts and in the list "Visitors per Day".
i don't realy understand.
Hey Tom, thanks a lot for adding the 30 days scroll and other fixes. That was great! ;0)
Regarding your doubt, yup, it was my fault, it has already the "Visitor per Day". Maybe it was hidden and I was tired when I wrote that. :0) I'm sorry about that.
Have a nice Sunday.
Yes, most infos are in the readme.txt only. I have to update this page.
A new suggestion. :0)
At the great new addition "Reads per country", maybe you would add a dropdown list to slect between "Reads per country" or "Visitors per country". So we would set one of them for showing as default.
Another suggestion would be to make easier the visualization in every box data, you would make the lines with alternated colors/strips. I mean, one line would be white background and other light gray alternately. Or have a very thin line between the lines.
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/.../public_html/wp-content/plugins/count-per-day/counter.php on line 160
please help..
Thanks,
Ben
Hi Ben,
i never seen this error but other usere. Please check:
- table "..._cpd_counter" exists
- you have some records
Maybe de-/reactivate the plugin or reinstall it after uninstall on the options page to delete the tables.
Great plugin - thank you.
The one feature I'm truly missing is list of external referrers. This will allow me to get a clue of where my visitors are coming from.
Thanks,
Raz
Hi Raz, i see the referrers in my awstats.
But i think i think about it.
Helo,
Wery nice plugin.
I have problem with uptade database geiip.
I click "update old counter data", he working.... wroking.... working...., but no data is saved to the database.
I working with version plugin 2.10.1, and 2.5.
Hi Radek,
this function can take some minutes. Every 100 records you should see an updated message on top of the page. No?
What is version 2.5? WordPress? CpD 2.10 needs >= 2.7.
I have this message:
"Countries updated. 1917 entries in wp_felgicpd_counter without country left "
After meybe 2 seconds, this page automatically is reloaded, and shown for infinity.
He working 1-5second, and message is shown again, and again.
I have three www pages, most updated is:
WordPress 2.9.2.
CountPerDay 2.10.1
Opera browser 10.53
First succes...
Geoip working with data for visitors who are today on my page.
Not working with older visitors.
My date format in SQL are "2010-05-12".
GeoIP don't know all IPs. I think you have 1917 records with an IP which isn't in the GeoIP database eg. local IP like 192.168... or 127.0.0.1. Or realy unknow IP ranges.
Btw. the IPs in CpD table should be an integer only. If you see normal IPs in phpMyAdmin you database is not uptodate. de/reactivate or re/install the plugin complete per link on options page to delete the tables too. make a backup.
My database looks like this:
1915 1393930164 Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.... 2010-05-12 2
1916 1393930164 Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.... 2010-05-12 6
1917 1392885708 Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;... 2010-05-12 2
All new records in database has recognizing country.
But, if I get again "update old counter data", one of them is marked from 'pl', to '' (nothing).
This is not a problem witch easyWhois.com, I check this IP, they are recognizing good as 'pl'.
New data is correct, that is the best.
If you have ide what is wrong with old data, i will check this for us.
Thanks
Helo,
I found what is hapend. You have little bug in code.
Now is:
function updateDB():
{...
$c = strtolower(geoip_country_code_by_addr($gi, $r['ip']));
...
}
Should be:
function updateDB():
{...
$new_ip= long2ip($r['ip']);
$c = strtolower(geoip_country_code_by_addr($gi, $new_ip));
...
}
Becouse, geoip_country_code_by_addr use adress as x.x.x.x, not as long integer, who is in your database.
Now I have all data recognizing.
Thanks, for great plugin.
Is that possible, to add more details inside country using easygeoip?
Thanks for your code, here it's running well !
Thanks Radek!

I haven't change this function because it was OK. But than i changed the DB fields without a look on it.
More details than Country?
Hi Tom,
zuerst ein Danke für dein Plugin und ein dickes Lob. Gute Arbeit.
Ich würde gerne, falls erwünscht, die Übersetzung in eine neue Sprache erledigen. Bitte um Erlaubnis und eventuelle weitere Infos.
Grüße
LeXuS
Hi LeXuS,
Lässt sich übrigens ganz einfach mit Codestyling Localization direkt im Backend machen.
brauchst doch keine Erlaubnis. Leg los.
Danke, auch für den Tipp
Melde mich, sobald ich fertig bin.
[...] Author page http://www.tomsdimension.de/wp-plugins/count-per-day [...]
Counter sind sowieso schon lange out - Google Analytics oder div. andere Statistik-Instrumente sind zur Zeit in
Viel Spaß damit!
Hallo Tom, erstmal danke für das tolle Plugin.
Die Installation klappt super aber sobald ich den Besucherzähler aktiviert habe, zeigen weder Firefox noch Opera meinen Blog an. Chrome dagegen schon. IE hab ich jetzt nicht getestet.
Woran kann das liegen? Ich nutze WordPress 2.9.2. und die aktuelle Version 2.10.1 des Besucherzählers.
Hoffe du kannst weiter helfen.
Schöne Pfingsten.
Hallo Sugar,
ich würde dir gern helfen, aber so ganz ohne nähere Infos? Irgendwelche Fehlermeldungen? Kein Blog deutet eigentlich auf einen PHP-Fehler hin, die Seite wird gar nicht erst erstellt. Das müsste dann aber in allen Browsern der Falls ein. Opera hab ich nicht, aber im Firefox läuft es. Ist mein Standardbrowser. Vielleicht mal die Addons deaktivieren und testen. Hab das Problem auch noch nie gehabt. Läuft ja eigentlich alles serverseitig ab.
Hallo Tom,
also Fehlermeldungen gibt es keine. Das würde mir die Sache vielleicht auch etwas erleichtern. Die Seite bleibt einfach weiß, wenn ich dein Plugin aktiviere. Ist es deaktviert ist mein Blog wieder da. Laut Firebug zerschießt es scheinbar den gesamten Style. Firebug zeigt nur noch folgendes bei HTML an:
< *html*>
< *head*>< */head*>
< *body*>< */body*>
< */html*>
(ohne die Sternchen, sind nur zur Sicherheit
)
und im Feld Style steht: Dieses Element enthält keine Style-Regeln.
Mehr kann ich an Infos leider auch nicht liefern.
Wenn ich Zeit habe, könnte ich noch testen, ob es sich mit einem der Plugins nicht verträgt aber bis ich das alles durchgetestet hätte, würde es eine Weile dauern, da mir dafür die Zeit fehlt, bei all den Kombinationsmöglichkeiten.
Eine Unverträglichkeit mit einem anderen Plugin ist dir aber nicht bekannt oder?
Liebe Grüße
Sugar
Firebug hilft hier nicht viel weiter.
Wenn du deinen Firefox nicht ändern willst, kannst du dir auch ne portable Version laden und darin testen. Die hat ja am Anfang keine Addons.
Die GeoIP-Funktion von CpD könnte mit anderen Plugins kollidieren, die die selben Funktion nutzen. Falls du welche hast, die Flaggen bei den Kommentaren anzeigen oder sowas. Benenn mal zum Testen das Verzeichnis "geoip" um.
Aber das sind Sachen, die in allen Browsern gleich wären, da sie auf dem Server passieren.
Ok also das mit Firefox ändern hab ich jetzt nicht verstanden. Aber es spielt auch keine Rolle mehr. Die GeoIP-Funktion ist der Übeltäter, wie du richtig erkannt hast. Benenne ich den Ordner um, kann ich mit aktiviertem Plugin meinen Blog trotzdem sehen, was vorher nicht der Fall war.
Funktioniert ohne diese GeoIP-Funktion das Plugin trotzdem problemlos? Weil dann könnte ich das ja ganz vom Server schmeißen.
Ansonsten läuft es nun wie gesagt soweit mit dem Counter
Ich sage danke für die Hilfe
Liebe Grüße
Sugar
OK, dann liegt es mit hoher Wahrscheinlichkeit daran, dass ein anderes Plugin nach CpD geladen wird, und die gleiche GeoIP-Funktion laden will. Was ja nicht geht, da eine Funktion mit diesem Namen schon existiert. Ich glaub wp-visitors oder so. CpD funktioniert natürlich auch so. Du hast nur keine Länderdaten.
Die Geschichte mit Firefox. Von dem gibt es ja auch portable Version. Die muss nicht installiert werden und dort kannst du rumspielen, ohne deine Installation kaputt zu machen.
Achso das meinst du mit FF. Naja, war ja gott sei dank nicht nötig.
Ok das mit den Länderdaten ist schon sehr schade aber lieber so, als wenn ich das Plugin gar nicht nutzen könnte.
Ich kenn mich mit WordPress noch fast gar nicht aus aber kann ich irgendwie herausfinden was sich da in die Quere kommt? Diese wp-visitors sagt mir gar nix. Finde ich auch nicht in meinen WordPress-Ordnern.
---------------------------------
Kleiner Zwischenstand:
Ich habe aber mal alle Plugins deaktiviert und dann den GeoIp-Ordner wieder umbenannt, also richtiger Name und dann getestet ob die Seite angezeigt wird. Und sie wird. Also hab ich nach und nach alle Plugins dazu aktiviert aber was soll ich sagen, es geht immer noch obwohl wieder alle aktiviert sind.
Das ist für mich zwar unlogisch aber es geht trotzdem Wer weiß was das war. Sollte das Problem erneut auftauchen und ich finde heraus wieso, dann meld ich mich wieder. Ansonsten danke für das Plugin.
Ich werd jetzt erstmal suchen gehen, wo ich die Bulletpoints abgestellt bekomme, denn die nerven im Counter doch etwas.
Einen schönen Abend noch.
LG Sugar
Danke für deine Rückmeldung. Gut, dass wieder alles geht. Das Warum würde man mit den PHP-Meldungen rausfinden. Manchmal liegt auch einfach nur ein Bit quer.
Und für dein Styleproblem ist css4you dein Freund.
Hallo Tom,
also scheinbar ist das Problem doch nicht so ganz gelöst. Er zeigt, wenn ich den GeoIP-Ordner mit dem originalen Namen lasse die Seite nicht an. Nenne ich den Ordner um gehts wieder. Seltsam ist aber, das er danach, wenn ich ihn wieder den original Namen verpasse, trotzdem überall geht, obwohl nach Cookies, Cache und sonst allem löschen, gar nicht der Fall sein dürfte.
Ich würde gern testen, ob es ausreichend ist, wenn ich den Ordner umbenannt lasse und nur die Angaben in den Phps entsprechend anpasse auf den neuen Name. Bevor ich jetzt aber in den Dateien rumpfusche frag ich dich lieber erstmal, was du denkst, ob das klappen könnte?
Liebe Grüße und ein schönes Wochenende.
Sugar
Such mal in deinen Plugins nach einer Datei
geoip.inc. Ich nehme an die gibt es in einem weiteren Plugin außer CpD. In diesem Plugin ändere den Aufruf. Einfach einif (!class_exists('GeoIp'))davor. Siehe in CpD in der geoip.php:if (!class_exists('GeoIp')) include_once('geoip.inc');sodass ich die Class nur lade, wenn sie noch nicht existiert. Das müsste das andere Plugin auch tun. Dann ist es egal, wer zuerst geladen wird. Die GeoIP-Klasse wird nur einmal geladen.
Viel Erfolg, bin das WE über offline.
Huch ich wollte eigentlich auf deinen Beitrag antworten aber das ging nicht, deshalb nehm ich meinen.
Also ich hab mal geschaut aber ich habe bei meinen ganzen Plugins keine geoip.inc Datei dabei. Das find ich jetzt wirklich sehr sehr seltsam. Noch seltsamer ist, das dieses Problem der weißen Seite bei richtig benannten Ordner irgendwie nicht dauerhaft zu sein scheint.
Ich hoffe dafür findet sich noch eine Lösung, denn immer wieder umbenennen damit es geht ist auch doof
Oder ich verzichte dann eben auf die Länder, was aber ja schade wäre. Mal gucken.
Dann wünsch ich dir ein schönes Wochenende. Hatte ich zwar schon aber dit schadet ja nüscht
Hallo!
Meine Deutsch ist nicht gut.
Die plugin habbe eine problem
DONT RESPECT THE UTC TIME setted on CONFIGS os WordPress
Tchüss
Hello,
CpD is using the local time (your timezone) of the blog, not the UTC.
Hallo Tom,
Plugin funktioniert super. Leider werden bei mir die Zahlen im Widget "abgeschnitten " (siehe Page). Gibt es eine Möglichkeit diese einzurücken?
Gruß
Wie jetzt? Haste etwa allein gebastelt? Ist doch alles OK.
nee bei der jeweils letzten zahl fehlt ca 1/4.
Sorry, war übers We unterwegs:
Du musst die Breite der Liste anpassen.
Versuch mal .cpd { width: 210px; } in deiner style.css oder im Style-Fenster.
how can i create a monthly stat for the frontend widget?
"Visitors this month"?
Is not implemented at this time.
are you able to do it? :D
Sorry i lied to you.
You can use [CPD_VISITORS_PER_MONTH] or ohter shortcodes. see the readme/changlog above.
Hallo Tom, da bin ich mal wieder.
Wie ich ja schon geschrieben habe, hab ich bei meinen Plugins keine weitere geoip.inc. Hast du sonst noch eine Idee?
Liebe Grüße Sugar
Nein, ich kriege den Fehler auch nicht repliziert. Vielleicht heißt die Datei auch anders oder die Funktionen sind direkt in die Plugindatei eingefügt. Würde ja auch funktionieren. Dann hättest du keine eigenen geiop.inc im Verzeichnis. Such mal die Dateien nach "class GeoIP" oder nur "GeoIP" ab. Oder schick mir mal per Kontakt-Formular! eine Liste, welche Plugins du hast.
Da ich leider nix finden konnte habe ich dir jetzt mal eine Liste mit den Plugins geschickt. Vielleicht hast du etwas mehr Glück und findest des Rätsels Lösung?
Liebe Grüße Sugar
Hallo Tom,
das Plugin funktioniert im Backend absolut einwandfrei: Ich bekomme alle gewünschten Informationen. Im Frontend dagegen werden mit nur die entsprechenden Felder, allerdings OHNE Besucherzahlen angezeigt. Wie kann ich das ändern? Da ich wenig Know-How in diesen Dingen habe, bitte ich um Hilfe bei der Lösung des Problems.
Vielen Dank im Voraus!
Die Zahlen sind da, nur rechts außerhalb des sichtbaren Bereiches. Trag mal:
in deine style.css.
Hallo Tom,
vielen Dank für die schnelle Antwort und Hilfe - nur: Wo genau soll ich die Zeilen eintragen? Wenn ich sie Direkt unter "sidebar" eintrage, dann rückt alles hoch bis an das Ende des Headers, aber das wars dann auch...
Paßt das Plugin vielleicht nicht zu dem "Theme"?
Sorry, aber ich kenn mich echt zu wenig damit aus, vielleicht kannst Du mir ja bitte nochmal helfen.
Vielen Dank
In die
style.cssin deinem Theme-Verzeichnis. Einfach ganz unten anfügen.Hi Tom,
wieder Danke für die schnelle Antwort und Hilfe. Trotzdem ein negativer Erfolg: Ich habe die beiden Zeilen per Copy&Paste ganz unten in meiner style.css eingefügt, die Aktualisierung gespeichert und dann auf der Site nachgeschaut: Keine Veränderung ist sichtbar - leider... Und jetzt ist guter Rat teuer. Hast Du noch eine Alternative oder ist das Plugin letztendlich doch nicht für dieses "Theme" geeignet? Das wäre allerdings sehr schade, da die Bedienung einfach total leicht und auch für Laien wie mich gut zu handeln ist. Auch wenn es bei meiner Site nicht funktionieren sollte, ein herzliches Dankeschön für deine Mühen und Bemühungen.
Danke und bis dann
Ok, nimm den Holzhammer.
Deine Angaben werden durch andere Styles überschrieben. Das kann durch
!importantverhindert werden. Sollte man allerdings sparsam einsetzen.Hi Tom - Danke! Super! Auch wenn's der Holzhammer war: Wer nicht hören will ....
Vielen herzlichen Dank für die unbürokratische Hilfe - es funktioniert!
Eine letzte Frage an Dich: Hast Du vielleicht eine Literaturempfehlung für mich bitte, mit deren Hilfe ich mir wenigstens rudimentär Kenntnisse (z.B. Bedeutung bestimmter Befehle / Syntax) anlesen kann?
Danke - auch hier gerne im Voraus - bis dann
Stylesheets? da ist css4you mir immer eine große Hilfe. Alle Befehle mit Beispielen, gut sortiert und deutsch.
Hallo,
Ein echt geniales Plugin, nur wie löse ich folgendes Problem:
Die Zeit geht bei mir 2 Stunden nach heisst:
Zeit bei Count per Day: 2010-06-13 16:12
Zeit bei mir: 2010-06-13 18:12
Wie kann ich das einstellen?
Hallo Mischa,
ich habe zwar schon von diesem Problem gehört, kann es aber selbst nicht nachvollziehen. Eigentlich benutze ich nur die WP-Datums-Funktionen. Welche Zeit(-zone) hast du denn dort eingestellt. Die 2 Stunden scheinen genau die Sommerzeit zu GMT zu sein. Die Zeit beim Artikel veröffentlichen und Kommentieren stimmt?
Hallo Tom, hierzu eine weitere Anmerkung: Ich habe ein WP mit Standard locals (English), Zeitzone UTC+2 konfiguriert, Count-per-day erkennt die Zeit korrekt. Ein weiteres WP mit den locals de_DE ist ebenfalls mit UTC+2 konfiguriert, Count-per-day erkennt aber nur die GMT-Zeit.
Unter Settings/General wird im deutschen WP neben dem Zeitzone-Dropdown "UTC-Zeit ist 16.06.2010 07:05" angezeigt, im englischen WP "UTC time is 2010-06-16 7:06:41 Local time is 2010-06-16 9:06:41".
Eventuell ist das doch ein Problem in WP?
Ich habe auch schon davon gehört, dass es mit den UTC Einträgen Probleme geben kann. Wenn ich UTC+1 wähle wird momentan auch keine Sommerzeit dazu gerechnet. Müsste ich also im Sommer auf UTC+2 umstellen.
"Europa/Berlin" funktioniert dagegen einwandfrei auch bei der Zeitumstellung. Damit habe ich auch immer bei WP und CpD die gleiche Zeit.
Hallo Tom,
danke für das Klasse Plugin.
Nur eine kleine Frage: Es gibt ja die Liste der spam-/suchmaschinen. Zugriffe dieser werden nicht gezählt. Gut so. Nur: wenn ich die "Datenbank aufräumen" lasse ohne die Liste oben geändert zu haben, werden trotzden Datensätze entfernt. Waren das nun Bot aus der Liste? Oder anderes?
Liebe Grüße
Ursula
Hallo Ursula,
danke für den Hinweis. Das ist eindeutig ein Fehler.
Beim aufräumen werden auch korrekte Einträge gelöscht. Nämlich die Indexseiten, also die, wenn mehrere Artikel angezeigt werden. Wird im nächsten Update bereinigt. bis dahin einfach nicht aufräumen.
danke
übrigens auch gleich gucken, wenn jemand on war, wird's im moment auch danach nicht angezeigt. Du weißt, was ich meine?
Ähm, nein.
Meinst du den Online-Counter? Geht hier, habs grad getestet.
Oder wird der Seitenzugriff nicht gezählt? Check mal die Einstellungen Autocounter und Userlevel. Wenn du als Admin (Level 10) angemeldet bist, wirst du normaler weise nicht gezählt.
Guten Morgen Tom,
nenee, ich meinte: Besucher online 1 - aber: Besucher heute 0. Das ging so 3 Besucher lang, waren dann wahrscheinlich bots. Mitterweile werden Besucher auch gezählt. Ich vermute, dass dies zufällig bots waren.
Danke für die schnellen Antworten, das ist durchaus nicht gewöhnlich.
Ich nochmal: heute Seitenaufrufe 20; Besucher 8; online 2;
irgendwie scheint das Verhältnis nicht zu stimmen. Oder interpretiere ich falsch?
Ist logisch, 8 Besucher können sich ja 20 Seiten ansehen. Niemand behauptet, dass man pro Tag nur 1 Seite anklicken darf.
Das ist der Unterschied zwischen Besucher (pro IP) und Seitenaufrufen.
ööhhh... das heißt ja, dass die Leute meinen blog LESEN! *plattbin
Keine Ahnung wie deine Wohnung aussieht.
Aber wenn du meinst, die DB aufzuräumen, um neuen SPAM zu löschen, dann kannst du das jetzt mit der 2.11 wagen ohne die Übersichtsseiten mit zu löschen.
Das ist wuderbares Tool kann ich gut gebrauchen:), so was habe ich gesucht und jetzt gefunden. Vielen Dank
Hallo, ich habe einen Hinweis/eine Frage zu "Ø Visitors per day". Die Zahl scheint (zumindestens bei mir) nicht zu stimmen, es wird 3,29 angezeigt. Meine Stats sind jedoch:
Juni 2010: 55 Besucher, 15 Tage, Durchschnitt manuell: 3,2
Gesamt: 459 Besucher, 230 Tage, Durchschnitt manuell: 1,99565
Auch ändert sich die Zahl manchmal sehr sprunghaft binnen weniger Tage, zum Beispiel von 1,2 auf über 3, dann wieder runter. Wird hier ein fester Zeitraum herangezogen, z.B. letzte 30 Tage? Ansonsten Hut ab, klasse Plugin, klasse Pflege/Betreuung
Der Durchschnitt gilt normalerweise für die letzten 7 Tage (wird bei mouseover angezeigt). Den Wert kannst du in den Einstellungen ändern. Ich halte aber 7 Tage für einen guten Wert.
Hi,
Sorry to write in English...
I appeciate your plugin a lot, but for some reason, it doesn't work on the website that is on my Home Server (Microsoft Home Server).
Wordpress is 3.0, all is up-to-date
Counters stay all at zero..
Do you have any idea what it could be ?
Thank you for your help
Regards
Frank
Hi Frank,
if you have activated "Auto counter" and "Loged on Users" with user-level 10 all visitors should be count. Loged in or not, adminstrator too.
Or any error messages?
"This post" counter on sidebar is not working properly. Please fix this. The value isn't show the right stats.
It's "Visitors per post" not "Reads per post". Same value as on CpD Dashboard. I will check it.
Ganz herzlichen Dank für diesen genialen Counter!! Funktioniert mit WordPress 3.0 tadellos - ich bin ganz begeistert (und nebenbei bemerkt, ganz erstaunt, dass mein Blog tatsächlich gelesen wird *g*).
Count per Day kann ich nur empfehlen!!
Danke, geiles Plugin.
LG Naps
Danke für das Update und natürlich den Credit im Changelog
CpD läuft unter WP 3.0 super, wie gewohnt.
Grüße
LeXuS
Ehre wem Ehre gebührt. Ohne eure Übersetzungen wäre das Plugin nur halb so gut.
[...] результаты автору. Скоро разместят. Страница плагина Count per Day. Ждите и берите, пока ещё [...]
Hello,
thank you for the great plugin.
My count per day shows that there were zero visitors but the chart says there were 5 visitors yesterday. Is this a bug or some setting that I did not do properly?
Thank you very much.
peterngan.com.hk/sound
Hello Peter,
which number says 0? If the chart shows a count the visitors are counted. Can you make a screenshot?
Hallo,
seit kurzem wundere ich mich über ungewohnt viele Seitenaufrufe, heute besonders: 130 Aufrufe statt der üblichen 1-3! Irgendetwas kann da nicht mehr stimmen.
Die Browserübersicht zeigt nun 0 % für Chrome und Apple an, 21 % für Sonstige und immerhin die üblichen 35 % für Firefox sowie 39 % für den IE
Die 21% Sonstige sind sehr ungewöhnlich. Schau mal in deine Datenbank, Tabelle .._cpd_counter, was dort bei "client" steht. Ich wette das sind Bots, die du noch nicht in der Filterliste hast. Kommen halt immer mal wieder neue Namen hinzu.
Great plug-in!
Thanks so much.
Helo,
After last update, WordPress to v3.0, CountPerDay to v2.11, I haven't graph in cockpit. I use Opera v10.53.
This is a screenshot http://finelektronik.com/img/countperday.jpg
Thanks,
PS:
Could you add polish language, to your subpage "TRANSLATE"?
What you use, to create this subpage? Plugin, or direct links?
Hello Radek,
do you have reload the page without cache (Strg + F5)? Maybe the images are not load correctly. I haven't changed the bars at this update.
Subpage "Translate"? CpD have an dashboard page and an options page only.
Yes, I flush all offline data, and nothing happend in Opera.
In Chrome everything is OK. I try more, why it happend.
Subpage Translate - this is in your page. Aktuell, Getwirtet, Kategorien, Translate !
Maybe a Adblock or something filters the images?
I will add polish.
Ah, ok, its not an Subpage. Call it sidebar.
thank you very much i use my site
Helo,
I found problem with graph.
I have set 180 days history, to show in graph. Before update CPD, this works good.
Now, graph is white.
When i change to 60 days, everything is ok.
I test it more.
In 100days, everything is OK, In 110 days graph is white again.
My count starts at 08.03.2010.
Thanks for great plugin, and regards
I think this is one of the greatest plugins for WP. And I have tried to install it on all my sites. However on some sites it just does not work. All readings are kept on 0, on other sites it works really well. All my sites are hosted the same place and WP is updated. What causes the error and how do I get round it?
Maybe an wrong update vs. new installation?
If you update you have to de- and reactivate the plugin to update the database.
Thank you for your quick reply. I have updated all sites and all plugins. I have tried reactivating and also reinstalling but nothing seems to work. However I see now that there is a difference in my setup - the three sites where it does not work uses php version 5.3 the sites where it works uses php version 5.2. I will try to change it and see if that helps.
I use 5.3 and all works. It should be another difference. The plugin tables are the same? Same Options?
You can uninstall the plugin on the options page to delete all tables an entries in the database. And install it.
I have tried that in vain. If you like I will give you access to the control panel of the site(s) in question and you can maybe see what is wrong? I will e-mail you the login
Hallo Tom,
darf ich nun "aufräumen"?
Liebe Grüße
Ursula
Hi!
Thanks for the great plugin.
Just a suggestion, in the dashboard - could you add a marker, like an arrow up to the post that has increased in visitors since last time. It would be nice to have it
Hi Marcus,
you mean difference between now and yesterday or sometimes else? That is possible.
Thank you for your help. It is beyond all expectations and I am very happy it now works! It is funny though because on my other sites it was not necessary to change the settings for "logged on users" for it to work - however it doesn't matter as long as it works and I am so glad you took the time and were able to help. Thumbs up to you and one of the greatest WP plugins!
Perfect plugin.Thank you.Make donate button is very good idea.
Thanks Joro,
if you want to donate my work sent me a post card from your location. Adress via contact form.
I want send post card,but dont read address....Write you address,please.
Hi Leute,
danke zunächst für dieses klasse PlugIn
Ich hätte einen Vorschlag für den Code. Ich hatte nämlich ein kleines Problem mit dem Plugin "Script Compressor", welches die CSS Dateien zusammenführen soll. Dieses orientiert sich an Zeilenumbrüchen. Daher wäre es cool, wenn ihr folgendes in eurem Code hinzufügen würde, womit das dann funktioniert. Denn ich will das beim nächsten Update des PlugIns wieder ändern zu müssen
config.php:
line 1512
function add_css() {
...
echo ''."\n"
...
}
Hi Felix,
also "ihr" bin ich allein.
Das "\n" kann ich einbauen, aber das sollten die Machen vom Script Compressor besser überarbeiten. Du kannst dich ja nicht um alle Plugins kümmern.
Wobei ich merke, dass das simple "echo" ja auch nicht mehr aktuell ist. WordPress bietet da ja eigenen Funktionen an. Ich merks mir mal.
Hello.How use Bots to ignore?Add to list google.com,yahoo.com,microsoft.com?This stop indexing my blog from search mashine?Help me!
No, "Bots to ignore" only says: don't count this "visitor".
To "block" the serach engines
- use the wp function in options
- add/change the robots.txt in your website
- or make redirects in your .htaccess
Just google for details.
@Tom
Bei so einem umfangreichen PlugIn hätte ich ein Entwicklerteam erwartet, daher Respekt
Und ich werde auch die/den Macher vom anderen PlugIn darüber informieren, natürlich kann man nicht jedes PlugIn an jedes andere anpassen.
Gruß
Felix
thank you very much, i love this plugin, i use my all site, thanks again
best regards
My god this plugin is fantasticccccccccccccc
thanx thanx thanx thanxxxxxxxxxxxxxxxxx
great germany programmer , great and mute all :D
I just upgraded to WP 3.0 and the counter is not working... What can I do?
It is reflecting yesterday's count exactly as today's. However the graph is showing correctly. It is the written number that is shadowing TODAY the same as YESTERDAY.
This throws off the VIEWERS PER DAY count.
If the graphs are correct, the counter works.
Which numbers are wrong/the same? On "Visitors al all"? Is the sum on "Visitors per day" yesterday and today the same or different?
It seems to be fixed today. Thank you!
To answer, the numbers on the section included in this email were the same for yesterday and the previous day.
We did upgrade to 3.0 yesterday, however, initially, it all worked fine. Then, the numbers for "yesterday" became the same as "today". The graph was always fine.
--As I said, today, all is good.
Here is a cut and paste of the part that was not working yesterday.
# Total reads:
# 68Reads today:
# 272Reads yesterday:
# 19431Total visitors:
# 1Visitors currently online:
# 50Visitors today:
# 200Visitors yesterday:
# 1398Visitors last week:
# 246Ø Visitors per day:
# February 8, 2010Counter starts on:
Hello There!
Can you insert images on this plugin? Like this:
http://img830.imageshack.us/img830/949/modvvisitcounterj15.png
This is the mod_vvisit_counter_J!1-5 (Joomla Module)!
Can you do this for the next release? Thx man!
You can do it yourself. Use your style.css to add/change backgound and padding-left for the li tags.
i LOOOOVE this plugin!!!
The only thing is, if you install this plugin, don't use Google Analytics. WordPress will crash. It did on many of my sites... too bad.
Thanks!
Crash with or without GA? I don't use it. Any error messages?
I figured out another clue to when the 'today' and 'yesterday' numbers are the same... it happened again.
It seems that in WP 3.0, every 24 hours, the UPDATE button highlights. If you click it, the counter numbers become equal. If you don't click the UPDATE button and just go to "count per day", all is fine. So, there is a glitch in the UPDATE button.
Which Update button? The plugin update? Do you have CpD 2.11? Maybe an update was not realy successful.
Hey,
Ich hab denk ich mal ein kleinen Bug entdeckt.
Wenn man in der Liste "Seitenaufrufe pro Land" anguckt ist bei "Anonymous Proxy " kein Icon zu sehen weil das Bild was dort hin verlinkt (http://www.easywhois.com/images/flags/a1.gif) nicht exestiert.
mfg
Naja, wenn das Bild nicht existiert, kann es ja auch nicht angezeigt werden.
Bei easywhois gibt's nur die Länderflaggen. Vielleicht muss ich da mal ein Standardbild einbauen. Danke für den Hinweis.
Oops, it reverts back to losing the 'yesterday' numbers at 6pm. So, I've changed my computer to a 24 hour clock and we will see what happens tomorrow. It worked fine before I upgraded to 3.0. I never had this issue on a 12 hour clock.
I will let you know.
It is still counting today correctly. It just loses yesterday at 6pm.
So frustrating!
First a day have 24 hours. PM and AM is bullshit!
But 6:00 is strange. CpD saves the date only, not the time. If the time on the CpD dashboard correct? Same as your local time? Check the WP timezone.
Doesn't work for me at all. Big fat 0! But I know I've had visits as I get comments!
Check the options:
- If your visitors have an account, you have to ckeck "logged on user" and set the user level (7 is a good start, 10 will count you (admin) too).
- "Auto Counter" is on?
- Spam Bot list ok?
- tables in database are created? de-/activate, maybe de-/installation
Is there a way to exclude specific people's visits? Could I exclude a specific IP address or URL?
thanks for the help!
I check client and IP to ignore bots. So you can add the IP of you hidden visitor to the bot list. Should work.
Da habt ihr ja ein richtig gutes WordPress Plugin Tool entwickelt, vielen Dank an euch, bis bald, weite so:)
[...] wollte. Nun habe ich keinen Paypal-Button oder sowas auf meiner Seite. Also schlug ich ihm vor, das Plugin als Postcardware zu betrachten und mir eine Postkarte zu schicken. Und genau das hat er getan. Das ist viel mehr wert als anonyme [...]
Vielen Dank für die Entwicklung des Count per Day Plugins, es macht genau das was ich gesucht habe
Allerdings wollte ich es gerne parallel mit dem Plugin WP Super Cache (bessere Antwortzeitverhalten) einsetzen, was anscheinend aber nur teilweise funktioniert. Wird generell ein Einsatz parallel zu einem WP Caching Plugin unterstützt 
Ich habe mir das Plugin WP-PostViews 1.50 angeschaut, dieses aktualisiert den Zähler bei gecachten Seiten mittels AJAX (jQuery). Könnte dies vielleicht in einer zukünftigen Version realisiert werden
Momentan wird direkt beim Seitenaufbau per PHP gezählt, daher funktioniert es mit den Cache-Plugins auch nicht.
Die Idee per Ajax zu zählen ist aber eine Überlegung wert. Allerdings würde dann zwar gezählt, aber die Anzeigen (zb. das Widget) auf der gecachten Seite blieben gleich. Im Backend wäre es aber aktuell. Ich schlaf mal drüber.
Hallo Tom, hoffe du hast gut geschlafen
Hast du dir mittlerweile überlegt eine Ajax Implementierung in Angriff zu nehmen?
Da sich der Cache ja immer wieder aktualisiert, ist das kein Problem, dass die Zahlen nicht immer aktuell sind, aber im Backend wäre ja alles da!
Naja, ging so, danke der Nachfrage.
Ich bastle schon an einem Update. War eh grad bei, also kommt Ajax gleich dazu. Sieht auch recht gut aus. Ich würde aber wenigstens das Widget dann auch gleich mit aktuellen zahlen füllen.
Ich werd dir mal Bescheid sagen, wenn du die Development Version testen darfst.
Kannst mal testen wenn du dich traust: Development Version
Musst in den Einstellungen Cache aktivieren.
Danke für die schnelle Bereitstellung der Development Version. Ich habe allerdings bei mir eine kleines Problem in der ajax.php in Zeile 7
Fatal error: require_once() [function.require]: Failed opening required '.../htdocs/wp-load.php'Vielleicht hängt dies damit zusammen, dass meine WordPress Installation im Verzeichnis 'wordpress' liegt und dies mit $_SERVER['DOCUMENT_ROOT'] nicht mitgeliefert wird.
Wenn ich aber folgende Änderung mache funktioniert alles wie gewünscht:
Gruß
Thomas
Die 3 Punkte bei '.../htdocs' sind keine Schreibfehler, oder?
Das kann dann natürlich nicht gehen.
Ich kann __FILE__ bei mir nicht verwenden, da das Plugin-Verzeichnis als Symlink/Junction eingebunden ist. __FILE__ gibt mir dann seit neuestem dummerweise das echte Verzeichnis zurück, das außerhalb des Webservers liegt.
Dein 'wordpress' müsste im 'SCRIPT_NAME' enthalten sind, nicht im 'DOCUMENT_ROOT'. Beides zusammen sollte den kompletten absoluten Pfad angeben. Kannst dir die Werte ja mal anzeigen lassen.
Die drei Punkte habe ich nur zur Verkürzung angegeben. Bei mir liefert weder $_SERVER['DOCUMENT_ROOT'] noch $_SERVER['SCRIPT_NAME'] das wordpress Verzeichnis mit.
Anbei die Details:
Die Sternchen habe ich nur zur Verkürzung und besseren Lesbarkeit angeben.
Interessant, zwischen Root und Script fehlt ja ein '/wordress'. Dein WP liegt in '/htdocs/wordpress/wp-content/...', oder? Wie lautet denn die URL? Du kannst WP ja in einem Verzeichnis installieren, es aber über die Domain direkt ansprechen. Hab ich hier gemacht. Im Frontend alles ohne '/wp/', im Backend steht es mir in der URL. Der Scriptname beginnt dann bei mir mit '/wp/wp-content/...'.
[...] Поводът е едно писмо, което изпратих на автора на тази добавка за WordPress. Добавката е направена с много труд и [...]
Dear Sir,
Today, I find out a problem of your plugging. The problem is, today, yesterday count have not been work. So what can I do?
But in my other site, it is working fine.
Please give me a solution as soon as possible.
NB: I have a interest about your plugging- I want to translate this plugging in Bangla language. What is your opinion? Please inform me.
Thanks
Sorry, i havn't a solution.
Is it a new installation? So wait a day.
Are the options the same, auto counter, logged in users, bot filter list, ...?
For the translation you will recieve an email.
Hi friends, anyone translate this plugin to portuguese ?
Thanks
A portuguese translation is included. But you can update it every time.
I've been using the "count per day" for the past month, and it's great. Thanks.
I just have one minor bug/problem with the plugin. On the dashboard, the count per day widget gives an error message:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxxxx/domains/xxxxxxxx.com/public_html/blog/wp-content/plugins/count-per-day/counter.php on line 1445
But, when I click on the Map button, it launches it and shows my international readers.
How can I fix this error?
Regards
Mikkel
Hi Mikkel,
the map has its own code. Can you see a list of countries below the Map button like this? If so you can hide the error by add an @ on line 1445
@mysql_fetch_array($res).No, can't see the list of maps as per your screenshot. I only see the error and the 'map' button. I click the 'map' button and see the World and where I have reads.
Activate the debug mode. In counter.php (top) set
define('CPD_DEBUG', 1);. Load CpD Dashboard and see the querys at the bottom of the page. Try the "getCountries" query in phpmyadmin. Works? Error?I'll try it one of these days - when I get someone who can do the MySQL / PHP for me. Keep you posted.
Hopefully v2.12 will fix the map error message. Map works, but error message on dashboard widget.
v2.12 has removed the MAP widget/option.
After an update you have to download the GeoIP-Database once again because it's not in the plugin included (saved 1MB
) Then the GeoIP comonent should be reactivated.
OK, the problem happens every day at 5pm. All numbers revert to the current number. So, anything that said YESTERDAY now reverts to whatever the current number is. I don't know how to fix it, but at least I know when it will happen.
5pm, like clockwork.
5pm is a strange time. What says the time in plugin-box? Is the server time = your local time?
Hi Tom,
I love your pluggin in my site! and i have a question...
Why is there a gap between Google analytics information about a day and the pluggin's. for example, by the plugging i had 8 visitors yesterday and by Google analtics 0...
thanks,
ruth
CpD and GA count in different ways by and have different filters.
I can't get the extended functions to work. The getmostvisitedposts() show nothing. please help!
Use
$count_per_day->getMostVisitedPosts( 0, 0, true )or
echo $count_per_day->getMostVisitedPosts()to print to function output.
This is what I got:
if I used
<?php echo $count_per_day->getMostVisitedPosts() ?>if I used
<?php $count_per_day->getMostVisitedPosts( 0, 0, true ) ?>You have to type the code in your template like single.php not in the post. In post content use the shortcodes.
Hallo Thomas
Is it possible to generate a php call that will display the number of times a page/post has been viewed on the page/post itself?
I'd really like to use this as an entire views tracking/ counter.
Vielen dank fuer alles!
Hi Rabideau,
use something like
<?php if(method_exists($count_per_day, "show")) $count_per_day->show(); ?>to include the function in your single.php and page.php. See the "Arbitrary section" of readme.txt for more functions.Or use the widget an choose the values you need. "This post" in your case.
Vielen dank Tom, danke fuer dein Gedult. Es hat's geschafft.
...mark
Helo,
I have new problem.
I moved my site to difrent serwer.
When I go to the settings any of four plugin, I have error
I repair three plugins, but I cannot repair CPD, and go to CPD settings.
Are you have idea why?
regards
Radek
How you repaired the plugins?
I know Error 500 only if a error in .htaccess.
Are the files writable by other the the webserver? Not good.
Maybe the PHP memory limit?
After installing V2.12 the MAP option is no longer on the dashboard widget.
After an update you have to download the GeoIP Database once again because it's not in the plugin included (saved 1MB
) Then the GeoIP comonent should be reactivated.
I had to deinstall Cpd because version 2.12 interferes with the Carrousel on our Homepage. All items are published under each other; thus blocking other content.
Which plugin ist it? I will test it.
Our carrousel is not powered by a plugin but it comes with the Business Magazine template: http://www.promojunkie.com/forum/free-templates/23528-business-magazine-wordpress-theme.html
Han
OK, i think the thickbox javascript is the problem which is only needed in backend. Maybe it uses same names or functions as the carrousel.
Change counter.php line 120:
add_thickbox();to
Seems to work OK now. Tnx.
CpD 2.13 works OK. No change needed. Great!
Han
Helo,
I'm asking about error 500 few days ago.
I test other serwer, and ewerything is OK, on the same configuration WP, and plugins.
I must dismiss my admin server...
Thenks,
Radek
good news for me.
Hey buddy, thanks for the update! Really nice the new 'Count per day' with the calendar icon. The only complain/suggestion I have is the different font size you use for dates and count numbers and the height of the bars, if you get a large amount with data, they are not aligned on the same line, and it makes hard the read of it. IMHO you may improve it and use a better font. Maybe also make those lines one colored and other none, like strips. Well, check this image to see how not aligned mine shows.
Btw, this counter value is the page views or the unique visitor view?
Hi Lucato,
my list is ok. Height and lines like the screenshots above. I think you have an other plugin or theme which is overwrite the css?
In this "per post per day" list reads and visitors are the same because a visitor can read (will count) a post once per day only.
Yay! The update fixed it! Thank you!
I was wrong... it isn't working. It still reverts back to yesterday at 5pm every day.
I can't fix what i'm not see. Remenber my last comment:
5pm is a strange time. What says the time in plugin-box? Is the server time = your local time?
This wordpress plugin, really great and usefull. Thanks so much....
Thanks, ok then click here
Hi Tom,
Version 1.12 mess up rtl support in the admin panel.
Which language? With "ar" my testblog looks ok. Screen 1 Screen 2
With he_IL from he.wordpress.org the dashboard is LTR, with and without CpD.
I'm working with he_IL.
The control menu on the left should be on the right.
the text area should be left to right. (I'm not sure if it all text area, but the code text area in the plugin edit section or the theme edit section should be left to right.)
Please make a Screenshot how the dashboard should be looks. I used the language files from the link above and the layout was LTR. With "ar" it was RTL.
Here it is screenshot
Thank you for your good work.
OK, i will try to set up my testblog to show this. I thing i need more than the languages files only.
little update: I think the thickbox makes trouble.
You can delete line 120
add_thickbox();in counter.php for the moment. The counter works, your RTL is ok, but you don't have the little windows on the CpD dashboard like "Map".I try to fix it in my new hebrew WordPress.
Was muß ich tun, um GeoIP zu aktivieren. Komme nicht ganz klar...
Nach einem Update muss du dir erst mal die GeoIP-Datenbank laden. Dazu gibt's einen Button in den Einstellungen. Wichtig ist, dass das Verzeichnis
geoipdie nötigen Rechte (notfalls 777) hat, damit die Datei dort rein kopiert werden kann. Ansonsten kommt aber eine Fehlermeldung.I really this plugin however recently it was updated and now it does not show on my side bar there is no widget options. If I uninstall it and reinstall I am afraid I will lose all my counts....since I am doing so well....i did not want to lose the counts. can you help? thanks.
First try to deactivate and reactivate the plugin.
If you overwrite the files per ftp the database will not be touched.
But you should create periodical backups.
Hi! Thank you for great plugin very impressive and easy to use
!
I ran into a problem after fiddling around with upgrade wp 3.0 when i tried to enable multisite. Think it stopped counting after removing unsuccesful install.
What i have tried with plugin : disable/enable, uninstall/install with deleting in mysql. Still no count but it remembers my settings each time... Hope you have a clue and can help. Big applause to you anyway for plugin
Thanks Erik.
I played a little with Multisite only. In first blog it wiorks without problem. In second i havn't activated at the moment. But it should work same as in singlesite. Activation creates the tables in the database and sets the options for the second blog.
To delete the options look for "count_per_cay" in wp_options. Is one entry only per blog. This will be deleted automatically if you uninstall the plugin at the bottom of the settings page.
Kann es sein, das der Aufruf der Startseite gar nicht mitgezählt wird, sondern nur wenn ich auf einen Artikel oder eine Unterseite klicke?
Gibt es auch die Funktion, das ich irgendwo sehen kann, von welcher Seite der Besucher auf meine Seite verlinkt wurde?
Gruß
Björn
Hihi,
will mich meinem Vorkommentator anschließen.
Seit dem Update habe ich entweder kaum noch Besucher, oder Counter zählt nur die einzelnen Artikel.
Liebe Grüße
Ursula
Bitte lieber Thomas, guck doch mal nach.
Mit dem neuesten Update zählt es bei mir auch keine Startseite mehr. Nur mehr die Artikel direkt. Daher habe ich einen ziemlichen Einbruch bei den Besucherzahlen in meiner Grafik. LG Fred
Bin ja schon da, gibt auch Tage ohne PC.
Aber ich kann keinen Fehler entdecken. Bei mir landen 40 von 50 Besuchern auf der Startseite und das wird auch so angezeigt. Auch die Tags und Kategorien werden bei mir noch gezählt. In der Liste "Besucher pro Tag" könnte ihr ja ein Datum. Habt ihr dort keine Einträge mehr die mit "-" beginnen und enden, ohne Edit-Links? Das sind ja die Aufrufe von Startseite, Tags und Kategorien.
@Björn: Den Referrer speichere ich noch nicht. War mir bisher egal.
ah, jetzt weiß ich, was du meinst:
bei "Besucher pro Tag" habe ich außer der Zeile "Datum Anzeigen Notizen" überhaupt keine Einträge. Das Kästchen ist leer.
*rumgrübelsuch
Ursula
Nachtrag - auch wenn ich ein Datum auswähle, an dem Besucher in der Grafik "Besucher pro Tag" angezeigt werden.
Also da ist auf jeden Fall falsch. Wenn im Diagramm Besucher angezeigt werden, sind sie die Einträge ja da. Bekommst du Fehlermeldungen?
Du könntest mal den Debug-Modus einschalten (bei den Einstellungen). Dann werden unten auf der Seite die SQL-Abfragen angezeigt. Teste die bei "getVisitedPostsOnDay " mal in phpmyadmin.
Probier mal die Änderung von Thomas. Evtl. hast du das gleiche Problem, aber es werden keine Fehler angezeigt?
UPDATE:
ändere in counter.php mal Zeile 231 '$page = 0;' in '$p = 0;'. Besser?
Danke. Der Tipp hat geholfen und jetzt wird die Startseite wieder gezählt. Danke Danke.
LG Fred
Na wenn ihr euch solche Mühe gebt mit Fehler melden muss ich doch was tun um wieder meine Ruhe zu haben.
Es scheint so zu sein, dass Besucher der Hauptseite einfach nicht gezählt werden, die, welche auf eine Artikelseite springen schon. Daher sollte das mit dem Datum egal sein, sonst würde das da auch nicht klappen. Wenn jemand auf die Hauptseite geht, bleibt 0 0.
Das Problem scheint offensichtlich nicht bei jedem aufzutreten. Ich habe sogar schon einzelne Plugins reaktiviert, doch daran lags wohl nicht.
Das geodings ist upgedatet.
ööhh...
vielleicht zählt er die Besucher, aber er zeigt sie nicht. Dann könnte es sein, dass er die Tabelle nicht richtig identifiziert - zumindest die Zelle - und das könnte auch erklären, warum er es bei den meisten findet, doch bei einigen nicht....
Ich verwende monochrome - so mal als Information.
sonntäglichemorgengrüße
Ursula
Also wenn gezählt wird, solltest du in der Datenbank Einträge mit einer 'page' <= 0 haben. 0 ist die Startseite und negative Zahlen Kategorien und Tags.
Was ist denn monochrome?
Hi,
monochrome ist mein theme.
Nein, bei "Besucher pro Tag" steht außer den Buttons gar nichts.
Danke fürs kümmern.
Teste mal die Änderung oben im Update meines Kommentars. Könnte das Problem sein. Ist auf alle Fälle ein Fehler im Code.
"Kümmern" ist ja mein Job.
Thanks for developing this plug in it took ages to search the database but i am happy to have found this as it is just what i wanted for my blog
So,hab es jetzt nochmal paar Tage beobachtet,die -Startseite- wird noch gezählt,alle anderen Seiten werden gezählt.
Die Herkunft meiner Besucher würde mich sehr interessieren,wäre es sehr aufwendig diese Funktion einzubauen?
Danke und liebe Grüße
Björn
Sorry für die Verwirrung,ich hab mich oben vertippt,wollte sagen das die -Startseite- NICHT gezählt wird.
Aufwendig nicht, würde nur die Datenbank noch mehr aufblähen. Aber ich kann es ja optional machen. Habs mir mal notiert.
Am Startseitenproblem bin ich noch dran.
Probier auch mal die Änderung von Thomas. Evtl. hast du das gleiche Problem, aber es werden keine Fehler angezeigt?
UPDATE:
ändere in counter.php mal Zeile 231 '$page = 0;' in '$p = 0;'. Besser?
ohne jetzt groß euphorie zu verbreiten, war
ändere in counter.php mal Zeile 231 '$page = 0;' in '$p = 0;'
die Lösung.
Werde es aber mal die nächsten Tage beobachten.
Wenn ich jetzt noch sehe, woher meine Besucher kommen, wäre alles perfekt....aber da haben wir ja schon drüber gesprochen....
Danke für die super Arbeit!!!
Da bin ich schon wieder, das "Archiv" wird auch nicht gezählt, hab es grad noch mal ausführlich getestet.
Was meinst du mit "Archiv"? Eine Monatsliste? Die hätte auch die ID 0 und wird nicht gezählt, weil die Startseite mit der selben ID schon gezählt wurde.
Wenn du den heutigen Eintrag mit "page" = 0 und deiner IP aus wp_cpd_counter löscht, und dann direkt eine Archivseite aufrufst, müsste der Aufruf gezählt werden.
Ich unterscheide nur echte Seiten/Artikel, Kategorie, Tags und den Rest (Startseite, Monatslisten und sonstige Listen ohne eindeutige ID).
Excellent product!! thank You
finally I have found a decent visitor counter for wp.
thank You
Helmut
Maidstone Classifieds (integrated sample)
web design in Maidstone
Hihi Tom,
gibt es schon was Neues? Es ist depremierend kein counterfeedback zu haben, wenn man Netzaktionen startet.
Hast schon probiert den Tipp oben im Code die kleine Änderung. Bei mir wird nun die Startseite wieder gezählt
3 mal soviele Besucher wie ohne .... LF Fred
Ähm, hab ich was übersehen? Das Startseitenzählproblem sollte gelöst sein.
Ändere in counter.php mal Zeile 231 '$page = 0;' in '$p = 0;'
so, habe es mal geändert.
ich gucke dann morgen, obs würgt
*blitzmerkerbin*
allerdings war das $page = 0; bei mir nicht in zeile 231 ...
Sollte es in v2.12 aber sein. Hab extra in der Version nachgesehen, da meine Dateien bereits geändert hatte. Nicht dass du was falsches geändert hast.
Nene, das ist die einzige Stelle, wo ich das $page = 0 gefunden habe überhaupt.
// "index" pages only with autocount
else if ( is_category() || is_tag() )
// category or tag => negativ ID in CpD DB
$p = 0 - $wp_query->get_queried_object_id();
else
// index, date, search and other "list" pages will count only once
$page = 0;
$page = 0; durch $p = 0; ersetzt
und
bei
Angemeldete Benutzer: auch mit zählen - bis Benutzerlevel Abonnent (0)
gesetzt, nun scheint es zu funktionieren
Hi Tom,
alles läuft prima
Ganz herzlichen Dank für die Hilfe,
Ursula
Genau, aber das sollte Zeile 231 sein. Ich hab jetzt dreimal nachgeguckt.
Na Hauptsache es geht.
Hey Tom, I just noticed today that when adding a note, you don't get to post more than one action per day. I mean, if I type a new note with the same date, it doesn't create a new register for this entry. IMHO it should be interesting to get to register more than on action per day separately. I mean, one action per row but on the same date.
Have a nice weekend.
Write shorter.
One note per date was the simplest way to add the notes to the charts.
Hallo !
Könnt ihr mir sagen wie ich die Schriftfarbe verändere ?
Mein template ist dunkel und man sieht die Schrift nicht.
danke
Hallo Anja,
eigentlich werden die Standardfarben deines Themes genutzt.
Aber du könntest die counter.css bearbeiten. Gleich die ersten beiden Einträge
.cpd_front_list liund.cpd_front_list li b.Mit
color: white;solltest du weiße Schrift haben.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
After installing you 2.12 version, I noticed a few days later that the total count per day is half of what it used to be. What changed? My google Analytics shows a steady flow twice that of version 2.12. Please look into and fix.
Thanks,
John
Try new version 2.13, there was an issue with count index pages like home, categories, tags. So only single pages and post was counted.
Hello!
I updated today (3rd September) and now the counter is not working, it has stopped at the same number since last 4 hours. plz help
And yes the online now thing still works, now showing 14 online but the counter stays at where it was 4 hours ago
You have to deactivate/reactivate the plugin after manual update.
Thanks! now working...awesome plugin u have made, using it from day one
After upgrade to 2.13 the counter no longer updates. I have deactivated/reactivated... still broken.
...mark
Activate Debug mode in settings and send mir the infos from the bottom of your site per contact form.
Hi Tom,
guck mal:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mnt/web7/50/83/519383/htdocs/isoeasy/wp-content/plugins/count-per-day/counter.php on line 1018
Liebe Grüße
Ursula
Get the same error as Ursula
Mark,
I have the same problem. Did you find a solution ?
Thanks and Cheers, Markus
This is the new function getReferers. It need a new column 'referer' in DB which added by plugin activation. Is it present? De-/reactivate the plugin.
Maybe you have only to count one page with referer?
This message is only at the dashboard, or?
I have installed the new updates last night and its Counter is not working now, It has stopped and not showing new day counts and stats.
Reactivate the plugin to create a new column in DB.
If it not work activate the Debug mode an send me the output per contact form.
yeah i had the same problem and i deactivated it and reactivated but it is still not counting todays' hits....:(
Activate the Debug mode an send me the output per contact form.
I have uploaded count per day but do not see the world map.
How do I make that happen?
Thanks
greg
If you have updated per FTP you have to de-/reactivate the plugin. It's important to update the database and options.
To see the world map you need the GeoIP database. Download it on the settings page (after you have set the right of the geoip directory to 777).
unfortunetly the counts per day is still not working, i know i have had visitors today..i always do....so what's up ...i updated the plugin and did the deactivated reactivate....still nothing....i like this plugin...help
Once again: Activate the Debug mode an send me the output per contact form.
Check auto counter and user level. Works the online counter?
Re: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in .../counter.php on line 1583 when installing GeoIP
and
similar in /counter.php on line 1018
I tried disabling all plugins and only enabling Count-per-day. Same error.
Looking at the WordPress DB, the table wp_cpd_counter does have the country and referer fields and they are getting filled.
Could the problem be that my site uses MySQL 4.1.20 and PHP 2.8.2.4 ?
Tested with PHP 4 and 5. I think your PHP Version is the phpMyAdmin Version.
I only have mySQL 5. Maybe mySQL 4 makes trouble but i can't test it.
Send me the output of the DEBUG mode per contact form.
Or copy the query 'getCountries' in phpMyAdmin.
The counter works?
Hi Tom,
de- und reaktivieren hat leider nichts gebracht. Auch die Besucher und Seitenaufrufe auf 0. Aber wenn jemand online ist, wird es angezeigt.
Mit den Ländern und Karte hab ich gar kein Problem.
Liebe Grüße
Ursula
Schau mal in der DB nach ob wp_cpd_counter die Spalte 'referer' enthält. So wie es aussieht, kommt es dort zu einem Fehler.
Schick auch du mir mal die Ausgabe des DEBUG Mode per contact form. Dann sehen wir mehr.
@All:
Benutzt mal diese counter.php, die mehr DEBUG Infos anzeigt, um die Probleme zu lokalisieren. Und schickt mir die Infos per Kontaktform.
Use this counter.php which shows more DEBUG infos to locate the problems. Send me the infos per contactform.
counter.php
Hi,
auch wir haben Probleme. Leider geht dein Kontaktformular nicht sonst hätte ich die Debugginginfos schon gesendet. Hab schon die erweiterte counter.php Installiert. Würde mich über Hilfe freuen.
Vielen Dank schonmal...
Danke für den Hinweis.
Das Kontaktformular funktioniert schon, allerdings sind einige Wörter (Linux-Befehle) durch meinen Provider gesperrt. Dann erscheint "Method not implemented" oder so, richtig?
Die Bots unter Options und die Zeile GeoIP ganz unten mal löschen.
Deine Diagnose ist zutreffend
Bei Problemen mit meinem Kontaktformular ("Method not implemented") bitte die Datei nochmal neu downloaden. Ich habe (hoffentlich) die problematischen Punkte in den DEBUG INfos beseitigt.
If you get the "Method not implemented" on submit the contact form, please download the counter.php once again. I changed the problematical sections.
mySQL Server: 4.1.20
mySQL Client: 4.1.20
getReferers : 0.00023
SELECT COUNT(*) count, referer FROM wp_cpd_counter WHERE referer > '' GROUP BY referer ORDER BY COUNT(*) DESC LIMIT 60
ERROR: 1111 - Invalid use of group function
This is the problem.
Redownload and try the patched counter.php. Changed and tested some querys on mySQL 3.23.
Tom:
It's working! Thanks!
Something related: I now tried to update the old counter data to get the countries.
I get the same kind of error in /geoip/geoip.php on line 59
Insert
if ( @mysql_num_rows($res) )in line 59 overwhile ...should solve it. But it's only a layout problem.Hello, first of all thanks for the great work you've done with this plugin.
I've succesfully updated counts per day to 2.13 version, but I've got and error every time I try to visualize the map. When I click to the button, new window opens and show me an "Internal Server Error . The server encountered an internal error or misconfiguration and was unable to complete your request." I've update the country db normally and deactivated/reactivated the pluging without problems. Also tried to change the old counter.php with the new one.
I'm sending you the debug output of that action.
"Internal Server Error" seams to be an server error, not a plugin error. I know this of wrong entries in htaccess. Google says something about the Timeout in httpdconf.
Ich bitte um ein Update mit dem der Fehler schnellsmöglich behoben wird.
Und ich bitte um eine Postkarte gemäß der Lizenz.
Außerdem wäre eine Fehlerbeschreibung noch ganz nett. Einige mögliche Ursachen sind bereits im in den Kommentaren verlinkten Patch behoben. Schon getestet?