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.

Download bei WordPress

Count per Day 2.13

Contributors: Tom Braider
Tags: 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

It counts 1 visit per IP per day. So any reload of the page don't increment the counter.

Languages, Translators

*) Rename cpd-da_DK-2.mo to cpd-da_DK.mo in "locale" dir to use the second dansk translation.

Installation

  1. unzip plugin directory into the /wp-content/plugins/ directory
  2. activate the plugin through the Plugins menu 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


Need Help? Find Bug?

read and write comments on www.tomsdimension.de/wp-plugins/count-per-day

Screenshots


  1. 1. Statistics on Count-per-Day Dashboard

  2. 2. Options

  3. 3. Widget sample

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
GeoIP
  • With the GeoIP addon you can associate your visitors to an country using the ip address.
  • In the database a new column country will 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-day now
  • 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

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 day metabox
  • 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 country in 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

RSS-Feed 876 Kommentare

alle Kommentare anzeigen / show all comments
  1. Juno Juno sagt:

    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!

  2. Tom Tom sagt:

    Hallo Juno,
    ist keine dumme Frage. Ich habs einfach noch nicht richtig erklärt. Bin ja auch noch am üben. :wink:
    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.

  3. baron baron sagt:

    hi. Thanks for plugin

    perfect.

    Regards

  4. om. om. sagt:

    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.

  5. om. om. sagt:

    Achso... und den Monat schnallt er irgendwie auch nicht. Da steht dann "gezählt ab 29. 2008" :-O

    om.

  6. Tom Tom sagt:

    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? :gruebel:

  7. om. om. sagt:

    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.

  8. Tom Tom sagt:

    Ich hab mal gemailt. Plugin nochmal deaktivieren/aktivieren?

  9. om. om. sagt:

    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.

  10. Tom Tom sagt:

    Nun wissen wir ja wo wir suchen müssen. Wird sofort (heut abend) bereinigt. :approve:

  11. om. om. sagt:

    Vielen Dank für die schnelle Hilfe! :thumbsup:

    om.

  12. alan alan sagt:

    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! :smile:

    Alan

  13. Tom Tom sagt:

    Hello Alan,
    my English is worse than your German! :wink:
    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.

  14. Henning Henning sagt:

    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

  15. Tom Tom sagt:

    In der Tat lag als Version 1.2 kurzzeitig eine falsche Datei zum Download. :roll: 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.

  16. Henning Henning sagt:

    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

  17. Henning Henning sagt:

    :question: Ichhabejetzt das "break" mal rausgenommen und siehe da es läuft. Nun schauen wir malwas in den nächsten Stunden passiert.
    Gruß Henning

  18. Tom Tom sagt:

    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. :gruebel:

  19. Tom Tom sagt:

    Version 1.2.1 steht als Bugfix bereit. Den 404-Error sollte es nicht mehr geben.

  20. Razvan Razvan sagt:

    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

  21. Tom Tom sagt:

    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. :gruebel:

  22. [...] Count Per Day : WP엔 기본 카운터가 없다. 아쉬움! -아직 미설정. [...]

  23. Bernd Bernd sagt:

    Hallo!

    Wie kann ich denn die Sprache auf Deutsch umstellen?

    Gruss,
    Bernd

  24. Tom Tom sagt:

    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.

  25. Bernd Bernd sagt:

    Ah, bei mir stand 'de'. Alles klar, jetzt isses deutsch! :thumbsup:

    Bernd

  26. Mohammed Mohammed sagt:

    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.

  27. Tom Tom sagt:

    Hi Mohammed,
    can you tell me the problem in german or english? i hope google have understand you correct. :wink:
    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.

  28. Alicia Alicia sagt:

    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

  29. Tom Tom sagt:

    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.

  30. Filipe Scafuto Filipe Scafuto sagt:

    Hi Tom,

    I made a translation to brazilian portuguese. E-mail me and I'll send you.

    (Alicia, it works on 2.6.1)

  31. Michael Michael sagt:

    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.

    :mauer: :mauer:

  32. Tom Tom sagt:

    Hallo Michael, mal sehen ob ich dein Kopfschmerzen lindern kann. :wink:
    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.

  33. Michael Michael sagt:

    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? :question:

  34. Tom Tom sagt:

    Ich glaub, ich muss die Anleitung genauer schreiben. :-D
    "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.

  35. pauli pauli sagt:

    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

  36. Tom Tom sagt:

    Hallo Pauli,
    so eine Funktion gibts (noch) nicht. Momentan kannst du im Dashboard nur heute und gestern sehen. Wäre eine Überlegung wert. :gruebel:
    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.

  37. Michael Michael sagt:

    Tom, wenn jemand über eine Suchmaschine auf meine HP kommt, wird das dann mitgezählt? :question:

  38. Danny Danny sagt:

    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

  39. Danny Danny sagt:

    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

  40. Michael Michael sagt:

    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. :-D Vielen Dank. :thumbsup:

    • Tom Tom sagt:

      Hallo Michael,
      ganz klar, Google hat sich verzählt. :zunge:
      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.

  41. Doug Alder Doug Alder sagt:

    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

    {
        // Strings die auf Suchmaschinen deuten
        $bots = explode( "\n", get_option('cpd_bots') );
        $isBot = false;
        foreach ( $bots as $bot )
        {

    Any suggestions?

    • Tom Tom sagt:

      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. :gruebel:

  42. Charlotte Ludvigsen Charlotte Ludvigsen sagt:

    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 :mauer: . What am I doing wrong? Looking forward for your answer.

    Kind regards,
    Charlotte

    • Tom Tom sagt:

      Hi Charlotte,
      don't worry. :wink:
      If you want add css to the output of cpdShow() set the function in span class="counter" or another class. These class you can "style" in your theme style.css.

  43. Charlotte Ludvigsen Charlotte Ludvigsen sagt:

    ... I meant the great plugin - not login, ofcourse :o)

    BR,
    Charlotte

  44. Charlotte Ludvigsen Charlotte Ludvigsen sagt:

    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 :roll:

    Kind regards,
    Charlotte

  45. Raz Peleg Raz Peleg sagt:

    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

  46. Catalin Catalin sagt:

    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!

    • Tom Tom sagt:

      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.

  47. Lidia Lidia sagt:

    Hello,

    Wher we can find the Count-per-Day v1.4.

    Thanks

  48. mik mik sagt:

    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

  49. Lidia Lidia sagt:

    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...

  50. Raz Peleg Raz Peleg sagt:

    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.

  51. mk mk sagt:

    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?

  52. mk mk sagt:

    Yeah...apparently I had. :mauer:

  53. Stephane Stephane sagt:

    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

  54. dez dez sagt:

    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

  55. fahirsch fahirsch sagt:

    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

  56. Olivia Olivia sagt:

    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!

    • Tom Tom sagt:

      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.

  57. fahirsch fahirsch sagt:

    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

  58. fahirsch fahirsch sagt:

    I looked with phpmyadmin and the counter is working
    Francisco

  59. fahirsch fahirsch sagt:

    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

  60. Ioannis Ioannis sagt:

    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....

  61. fahirsch fahirsch sagt:

    Where is count-per-day 2.0?

  62. simone simone sagt:

    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

  63. Naweed Naweed sagt:

    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.

  64. Manu Manu sagt:

    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?

    • Tom Tom sagt:

      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. :-D
      Mal ein Beispiel: http://pastebin.com/m8b28dae Ist ja eine interessante Seite.

  65. Manu Manu sagt:

    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().

    • Tom Tom sagt:

      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.

  66. Manu Manu sagt:

    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?

  67. fahirsch fahirsch sagt:

    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

  68. [...] direkt auf der Autoren-Seite wo man auch Hilfe bei Problemen bekommt. [...]

  69. fahirsch fahirsch sagt:

    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

    • Tom Tom sagt:

      Oh Francisco, should i establish a hotline for you? :hehe:
      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.

  70. fahirsch fahirsch sagt:

    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

    • Tom Tom sagt:

      "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.

  71. Danny Danny sagt:

    Hi Tom,

    Thank you very much for v2 of Count per Day. I will enjoy using the feature that you implemented (comment #9 above). :thumbsup:

    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

    • Tom Tom sagt:

      Hi Danny,
      sorry, no idea. Where are 100,000? Total visitors? Visitors per day? There are no restrictions. :gruebel:

      • Danny Danny sagt:

        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 :mrgreen:

        • Tom Tom sagt:

          OK, but nontheless i have filled my table and test the plugin. Lo and behold i have seen your error. :-D 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.

  72. Steffen Steffen sagt:

    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

  73. Danny Danny sagt:

    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.

  74. ofkoors ofkoors sagt:

    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

    • Tom Tom sagt:

      Am einfachsten wäre das Widget in den Sidebar zu legen und dort ggf. nur den Gesamtzähler anzuzeigen. ;-)

      • ofkoors ofkoors sagt:

        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

        • Tom Tom sagt:

          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.

  75. jan jan sagt:

    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

    • Tom Tom sagt:

      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.

  76. ofkoors ofkoors sagt:

    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

    • Tom Tom sagt:

      Genau DAS ist mir auch vor 2 Tagen aufgefallen und ich war verwirrt. :mrgreen:
      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.

  77. fahirsch fahirsch sagt:

    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.

    • Tom Tom sagt:

      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.

  78. ofkoors ofkoors sagt:

    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

    • Tom Tom sagt:

      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.

  79. Lozanno Lozanno sagt:

    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!

  80. Kisp Kisp sagt:

    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

    • Tom Tom sagt:

      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. ;)

    • Tom Tom sagt:

      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. ;)

      • Kisp Kisp sagt:

        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ß

        • Tom Tom sagt:

          Ich zitiere mich mal selbst: ;)

          den Haken beim Autocounter setzen.

          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.

          <?php
          if ( method _ exists($count_per_day, 'show') )
          $count_per_day->show( 'schon', 'Besucher', true, true );
          ?>
          

  81. Photoangel Photoangel sagt:

    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

    • Tom Tom sagt:

      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.

  82. Templa Templa sagt:

    Nur Probleme mit der neuen Version, warum gehen denn die alten Templatecodes nicht mehr?

    User sind gerade online
    Oder
    Heute: <b></b>

    Kann mir da wer weiterhelfen ? Ich blick mit dem neuen krams net durch, vielleicht les ich auch nur falsch..

    • Tom Tom sagt:

      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.

  83. Danny Danny sagt:

    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

  84. Danny Danny sagt:

    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

    • Tom Tom sagt:

      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.

  85. Danny Danny sagt:

    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

  86. Bernardo Bernardo sagt:

    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

  87. sophie sophie sagt:

    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? :mauer: Can someone please help me get it work? :roll: Hope you understand my bad english. :oops:

    Sophie

  88. jwqlb jwqlb sagt:

    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

  89. jwqlb jwqlb sagt:

    Q tom:

    verstehe ich nicht.
    bitte erklärs mir.

    mfg
    jwqlb

  90. Tobi Tobi sagt:

    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

  91. fahirsch fahirsch sagt:

    Hi Tom:
    I just installed CPD 2.2 wih geoip. I get the following errors:

    Warning: gzopen(): URL file-access is disabled in the server configuration in [suppresed]/wp-content/plugins/count-per-day/geoip/geoip.php on line 84
    Warning: gzopen(http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz): failed to open stream: no suitable wrapper could be found in [suppresed]/wp-content/plugins/count-per-day/geoip/geoip.php on line 84
    Warning: gzread(): supplied argument is not a valid stream resource in [suppresed]/wp-content/plugins/count-per-day/geoip/geoip.php on line 85
    Warning: fclose(): supplied argument is not a valid stream resource in [suppresed]/wp-content/plugins/count-per-day/geoip/geoip.php on line 86

    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

    • Tom Tom sagt:

      Hello Francisco,
      i think you don't have enabled php fopen function in php.ini. I only check gzopen an 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.

      • fahirsch fahirsch sagt:

        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

        • Tom Tom sagt:

          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.

  92. Michele Michele sagt:

    Getting odd numbers: Visitors today on the graph is listed as 70, but Visitors today above is listed at 17. Which is correct?

  93. Mandy Mandy sagt:

    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.

  94. chris chris sagt:

    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

    • Tom Tom sagt:

      Hallo chris,
      Autocounter eingeschaltet? Ggf. auch angemeldete Besucher? Ist bei Installation erstmal aus. Ansonsten musste eine Funktion in die single.php einbauen.

      • chris chris sagt:

        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!

  95. Zebra242 Zebra242 sagt:

    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 all ;-)

    2) I would like to limit the amount of displayed results of this function up to maximum 5 results; where can I change this?

  96. Zebra242 Zebra242 sagt:

    --> 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)?

  97. MaNIaC MaNIaC sagt:

    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... :cry:
    Hab was gelesen von integrieren in single.php
    Wo und wie wäre das?

    Hoffe du kannst helfen!

    greetz
    MaNIaC

    • MaNIaC MaNIaC sagt:

      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

      • Tom Tom sagt:

        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.

  98. Tom Tom sagt:

    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.

  99. Alisher Alisher sagt:

    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.

  100. Sebastian Sebastian sagt:

    Hallo, gibt's schon einen Fortschritt bezüglich des Zählens der Indexseite?
    Das wäre echt nicht schlecht.
    danke.

  101. Aku Punya Aku Punya sagt:

    how to show pageviews count on the sidebar widget?

  102. satria satria sagt:

    Please tell me how to change font color on sidebar widget ??

    Thanks
    Best regards

    • Tom Tom sagt:

      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.

  103. satria satria sagt:

    thanks alot sir... i love it

  104. 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

  105. mexi mexi sagt:

    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

  106. Manu Manu sagt:

    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?

  107. ms ms sagt:

    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?

  108. Manu Manu sagt:

    Danke ebenfalls für deine schnelle Hilfe!

  109. Rand Rand sagt:

    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

    • Tom Tom sagt:

      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

      
      
      
      
      
      
      
      

      else if ( is_category() || is_tag() )
          // category or tag => negativ ID in CpD DB
          $page = 0 - $wp_query->get_queried_object()->term_id;

      to

      
      
      
      
      
      
      
      

      else if ( is_category() || is_tag() )
      {
          // category or tag => negativ ID in CpD DB
          $term = $wp_query->get_queried_object();
          $page = 0 - $term->term_id;
      }

  110. Lucato Lucato sagt:

    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.

  111. Tommiekiddy Tommiekiddy sagt:

    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

  112. Dennis Dennis sagt:

    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

  113. Tom Tom sagt:

    @ 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!

  114. GeorgWP GeorgWP sagt:

    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?

  115. Feli Feli sagt:

    Hi Tom,

    zuerst einmal vielen Dank für mein neues Lieblingsplugin :thumbup:

    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.ä. :gruebel:

    • Tom Tom sagt:

      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.

  116. Steve Whitby Steve Whitby sagt:

    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

  117. can9 can9 sagt:

    wp 2.8.5 not working

  118. Fiala06 Fiala06 sagt:

    I'm running wp 2.8.5 also and its not showing any traffic or any errors. :sad:

    Suggestions?

    • Tom Tom sagt:

      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.

        • Tom Tom sagt:

          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:

          [Sat Oct 24 11:51:19 2009] [error] [client 195.149.31.230] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''wp_cpd_counter'' at line 1 for query SHOW KEYS FROM 'wp_cpd_counter' made by activate_plugin, do_action, call_user_func_array, CountPerDay->createTables, referer: http://blog.citeulike.org/wp-admin/plugins.php?deactivate=true&amp;plugin_status=all&amp;paged=1
          
          [Sat Oct 24 11:51:19 2009] [error] [client 195.149.31.230] WordPress database error Duplicate key name 'idx_ip' for query ALTER TABLE `wp_cpd_counter`\r\n\t\tADD KEY `idx_ip` (`ip`(3)),\r\n\t\tADD KEY `idx_date` (`date`),\r\n\t\tADD KEY `idx_page` (`page`) made by activate_plugin, do_action, call_user_func_array, CountPerDay->createTables, referer: http://blog.citeulike.org/wp-admin/plugins.php?deactivate=true&amp;plugin_status=all&amp;paged=1

          I have mysql
          mysql Ver 14.12 Distrib 5.0.22, for pc-linux-gnu (x86_64) using readline 5.1

  119. Fiala06 Fiala06 sagt:

    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 ;)

  120. Beto Ribeiro Beto Ribeiro sagt:

    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!

  121. Mark Weiser Mark Weiser sagt:

    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

  122. Manu Manu sagt:

    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?

  123. Edgar Edgar sagt:

    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?

  124. Daven Daven sagt:

    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?

  125. Bruce P. Bruce P. sagt:

    I cannot get the counter widget to work. what am i doing wrong?

  126. Andre Andre sagt:

    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

    • Tom Tom sagt:

      Aaaaahhhhhhh, RTFM! :roll:
      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.

  127. Robbert Robbert sagt:

    Hi,

    I updated to the latest version of CPD. I did not backup the database before the backup :oops:

    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

  128. Ahmed Sleem Ahmed Sleem sagt:

    pretty nice one mate. well done...

    if you want i can translate this into Arabic, what do you think? huh

  129. DavyB DavyB sagt:

    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 knife axe and delete the plugin,

    then it instantly works again.

    • Tom Tom sagt:

      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.

  130. NetSector NetSector sagt:

    I installed this pluugin but Counter does not work. always stands at: 0

  131. John Vickers John Vickers sagt:

    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.

  132. svetlin stefanov svetlin stefanov sagt:

    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...

    • Tom Tom sagt:

      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.

  133. Chrissy Chrissy sagt:

    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

    Look for function getUserAll(). Change line
    echo mysql_num_rows($res);
    to
    echo mysql_num_rows($res) + [your_number];

    but it gives me an error. Is there any way to change the number manually in phpmyadmin? :gruebel: Thanks ^^

    • Tom Tom sagt:

      Hi Chrissy,
      what error? Any message?
      [your_number] is you start value without [ and ].
      You can also try this one (not tested):

      $temp = mysql_num_rows($res);
      echo $temp + [your_number];

      "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.

  134. maria maria sagt:

    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!!!

    • Tom Tom sagt:

      Hi Maria,
      i think you have to add widget support to yout footer.
      Place somethink like

      <ul id="footerwidgeted">
          <?php dynamic_sidebar(2) ?>
      </ul>

      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?

      • maria maria sagt:

        tom,
        The problem of the graphs is that I was not finding where they were (dashboard/count per day), pardon! :oops:
        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!!!

        • Tom Tom sagt:

          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.

  135. [...] 5. Count Per Day “Counter, shows reads per page; today, yesterday, last week, last months … on dashboard and widget.” 말그대로 카운터입니다. 블로그에 찾아오는 손님이 얼마나 있는지와, 포스트별로 카운터내역 등을 보여주는 가벼운 통계 프로그램이죠. 다만 전문적인 통계프로그램보다 미약한 감이 있어서 액티브는 해두었지만 자주 들여다 보지는 않습니다. Tom Braider | Visit plugin site [...]

  136. Angel Angel sagt:

    Kann man irgendwie die Schriftgröße und Zeichense3tzung des Widgets ändern? Wäre toll! :)

    • Tom Tom sagt:

      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.

      • Angel Angel sagt:

        Und welchen Code nehm ich da? :gruebel:

        • Tom Tom sagt:

          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.

          • Angel Angel sagt:

            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.

            • Tom Tom sagt:

              Geht natürlich alles. Das Widget sieht zB. so aus.

              <li id="count-per-day" class="widget widgetCpd">
                  <h2 class="widgettitle">Count per Day</h2>
                  <ul class="cpd">
                      <li><span style="float: right;">5965</span>Diese Seite:</li>
                  </ul>
              </li>

              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.

  137. Daven Daven sagt:

    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)

  138. Daven Daven sagt:

    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:

  139. Kula Kula sagt:

    HI I have a problem with geoip.

    mysql ver. - 4.1.22

    In reads per country i have this error:

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kula/domains/kula.ndl.pl/public_html/wp-content/plugins/count-per-day/counter.php on line 1114

    When i try to update old counter data i get this :

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/kula/domains/kula.ndl.pl/public_html/wp-content/plugins/count-per-day/geoip/geoip.php on line 55

    Table "country" exist, and new data is added, i see "country codes" us,pl,de e.c.

  140. Psychonaut Psychonaut sagt:

    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.

  141. Psychonaut Psychonaut sagt:

    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.

    "download and install plugin per backend to set other rights"

    How do you mean? Can you explain? It can be activated in other way? :-|

    • Tom Tom sagt:

      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.

  142. 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 ..

    • Tom Tom sagt:

      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 :cry:

        • Tom Tom sagt:

          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. :gruebel:
          OK, i just installed arabic language file and see what you mean. I will check it.

  143. 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 ..

  144. CallMeNighty CallMeNighty sagt:

    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?
    :baehh:

  145. CallMeNighty CallMeNighty sagt:

    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" ;)

  146. Lucato Lucato sagt:

    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!

  147. 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

    
    

    <!-- Show visitors -->
    <?php
        if(method_exists($count_per_day, "getUserAll")) echo "Broj posetilaca: " . $count_per_day->getUserAll();
        if(method_exists($count_per_day, "getUserOnline")) echo " | Trenutno online: " . $count_per_day->getUserOnline();
    ?>
    <!-- Show visitors -->

    Nothing works.

    What am I doing wrong?

    Regards
    Predrag

  148. sachu sachu sagt:

    does this work with wordpress 2.9 version ??

  149. Rian Rian sagt:

    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

  150. LostOracle LostOracle sagt:

    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:

    <?php global $count_per_day;
        if (method_exists($count_per_day, 'show')) $count_per_day->show( 'Show Before ', ' Show After', true, true );    
    ?>

    It returns as Show Before # Show After (where # equals a numeric value)

    However if I apply the same logic to the following code:

    <?php global $count_per_day;
        if (method_exists($count_per_day, 'getUserOnline')) $count_per_day->getUserOnline( 'Online Before ', ' Online After', true, true );
    ?>

    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 :mauer: I would appreciate your time and effort to resolve this mis-understanding.

    • Tom Tom sagt:

      Hi LostOracle,
      only show function have befor and after values. All other functions are return the number only. So use this:

      
      

      global $count_per_day;
      if (method_exists($count_per_day, 'getUserOnline'))
      {
          echo  'Online Before ';
          $count_per_day->getUserOnline();
          echo ' Online After';
      }

      • LostOracle LostOracle sagt:

        Tom

        Thankyou for clarifying the functions, when somebody explains it to me I realise how obvious it is :oops:

        I believe many others will find the code snippet extremely useful. Big Thanks :thumbsup:

  151. sabrina sabrina sagt:

    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?

    • Tom Tom sagt:

      "day of the week option"? I don't understand. :gruebel:
      "last week"/"last 7 days" works for me. do you have deactivate and reactivate the plugin?

      • Sabrina Sabrina sagt:

        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.

  152. Steffen Steffen sagt:

    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

  153. Andre Andre sagt:

    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

    • Tom Tom sagt:

      Hallo Andre,
      irgendwie bekannt schon. ;) 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. ;)

      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.

  154. Sabrina Sabrina sagt:

    THANK YOU SO MUCH FOR THE RECENT UPGRADE TO CPD, TOM!!! :thumbsup: I was a little sad when I had to erase my previous count, as well as, the date!

  155. Lucato Lucato sagt:

    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.

  156. Lucato Lucato sagt:

    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)

  157. Lucato Lucato sagt:

    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)

  158. rixk rixk sagt:

    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

  159. danko danko sagt:

    sirs,
    in my site i used your plugin,works ok,but,conflikt with google sitemap plugin.any idea?
    danko from serbia

  160. GeorgWP GeorgWP sagt:

    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

  161. leepton leepton sagt:

    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

  162. leepton leepton sagt:

    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 67

    whats wrong now

    <?php if(method _ exists($count _ per _ day, "show")) $count _ per _ day->show( "reads ", " times", true, true ); ?>

  163. 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 ?

    • Tom Tom sagt:

      Try this code. Maybe (in functions) you have to "global" $count_per_day.

      
      

      <?php
      global $count_per_day;
      if ( method_exists($count_per_day, 'show') )
      $count_per_day->show( 'schon', 'Besucher', true, true );
      ?>

      • Thanks alot but it didnt show more than the text

        schon0Besucher

        • Tom Tom sagt:

          Sure. It's just an example. ;)

          <?php
          global $count_per_day;
          if ( method_exists($count_per_day, 'show') ) {
          echo '<p>online: '.$count_per_day->getUserOnline().'</p>';
          echo '<p>all: '.$count_per_day->getUserAll().'</p>';
          echo '<p>per day: '.$count_per_day->getUserPerDay( 7 ) .'</p>';
          }
          ?>

          should show online, all and per day visitors (average last 7 day).

  164. Oliver Oliver sagt:

    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ß

    • Tom Tom sagt:

      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".

      • Oliver Oliver sagt:

        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

        • Tom Tom sagt:

          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.

  165. Mandy Mandy sagt:

    Hallo Tom, wie kann ich in der Funktion "getMostVisitedPosts();" die Startseite beim Zählen ausschließen? Danke!!!

    • Tom Tom sagt:

      Hallo Mandy,
      aktuell gar nicht. Warum? Stört sie? Ist doch nur eine Zeile.

      • Mandy Mandy sagt:

        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 " ???

        • Tom Tom sagt:

          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.

  166. Arne Arne sagt:

    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.

    function count()
    {
        global $wpdb, $wp_query, $cpd_path, $cpd_geoip;
        global $current_user;
        get_currentuserinfo();
        if ( $current_user->user_level < 1 )
        {
            // find PostID
            …
        }
    }

    • Tom Tom sagt:

      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. :)

  167. Arne Arne sagt:

    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?

    • Tom Tom sagt:

      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.

  168. Arne Arne sagt:

    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)?

  169. Arne Arne sagt:

    Hi Tom,

    gibt es eigentlich die Möglichkeit die Sortierung im Post-Loop nach der Anzahl der Counts durchzuführen?

    • Tom Tom sagt:

      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.

      • Arne Arne sagt:

        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...)

        • Tom Tom sagt:

          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.

  170. Ziggy Ziggy sagt:

    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?

    • Tom Tom sagt:

      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.

  171. Daniel Daniel sagt:

    Any idea why the Count per Day number on my blog is different from my Google Analytics numbers?

  172. 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.

  173. Mykee Mykee sagt:

    I have a problem with browser statistics. I get 102% if summarize all percent. What is the problem? :-O
    (MSIE 46%, Firefox 34%, Chrome 4%, Opera 14%, AppleWebKit 4% = 102%) :roll:

  174. Steve Whitby Steve Whitby sagt:

    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

    • Steve Whitby Steve Whitby sagt:

      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

  175. 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

      • Tom Tom sagt:

        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. ;)

  176. 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.

    • Tom Tom sagt:

      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. ;)

  177. Zaib Ali Zaib Ali sagt:

    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

  178. Lucato Lucato sagt:

    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.

  179. alber alber sagt:

    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. :-D

    -------------------------

    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. :-D

    • Tom Tom sagt:

      Hi alber, i can add this function to the widget in next update.
      I hope i understand the "google german" correct. ;)

      • alber alber sagt:

        @ 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.
        Google ha tradotto perfettamente, spero faccia altrettanto nei miei commenti :) . Buona giornata a tutti!

  180. Rachel Rachel sagt:

    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.

  181. Austin Austin sagt:

    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.

    • Tom Tom sagt:

      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.

  182. alber alber sagt:

    :mrgreen: Nutzte Tom:

    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!

    ---------------------------------

    :mrgreen: Ne approfitto Tom:

    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!

    • Tom Tom sagt:

      You can set visitors "Visite 37.387" and "start date" on options page.
      Pages "Pagine 182.540" i will add in next update too.

      • alber alber sagt:

        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. :cry:

        ------------------------------------

        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. :cry:

        • alber alber sagt:

          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 :)

  183. Iain Iain sagt:

    Brilliant Plug-in.
    Now I can easily see how many unique visitors I have and what they are looking at.

  184. Lucato Lucato sagt:

    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. :)

  185. Frank Frank sagt:

    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

  186. Arne Arne sagt:

    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

    • Tom Tom sagt:

      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. ;)

  187. alber alber sagt:

    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!! :)

    • alber alber sagt:

      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 :) :) :liebhab: :thumbsup:

      --------------------------------------------------------------------

      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 :) :) :liebhab: :thumbsup:

      • alber alber sagt:

        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! :)

        • Tom Tom sagt:

          Caro Alber, grazie mille! :-D
          The Google translations are wonderful.
          "Sei formidabile" > "Sie sind schrecklich" > "Sei terribile" :mrgreen: but i think i understand you correct. Thanks to write italian too. ;)
          Your comments are praise enough. But if you want, you can give me all your money. ;)

  188. Lucato Lucato sagt:

    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!

  189. HI,

    Right to left problem :!:

    :idea: You can fix it by swapping right & left in counter.php
    :arrow: in Line: 1074
    :arrow: also in line: 477+478

    Thank you for great counter :thumbsup: in WordPress!

  190. michael michael sagt:

    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

    • Tom Tom sagt:

      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.

      • michael michael sagt:

        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 :-D

  191. Pascal Pascal sagt:

    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 :base: ) mist gebaut hat (im sinne von "tag 1 200 besucher, tag 2 0 besucher... :mauer: :mauer: ) und ich einfach was neues brauchte:

    SUUUUUPER PLUGIIIN! :thumbsup: :thumbsup: :thumbsup:

    DAAANKE! :-D :-D

  192. [...] plug in หลายตัว เลยเลือกมาตัวนึงชื่อ Count per Day วิธีติดตั้ง plug in ใน WordPress [...]

  193. Rebeca Rebeca sagt:

    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.

  194. alber alber sagt:

    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 :-D

  195. Moghedien Moghedien sagt:

    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

    • Tom Tom sagt:

      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. ;)

  196. Runberg Runberg sagt:

    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!

  197. breiter breiter sagt:

    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?

    • Tom Tom sagt:

      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_options den Eintrag mit option_name = 'count_per_day' und speichere dann die Einstellungen nochmal. Vielleicht stimmt da was nicht. Ich hab sonst nichts geändert.

      • breiter breiter sagt:

        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?

        • breiter breiter sagt:

          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.

  198. Joe C Joe C sagt:

    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 313

    This refers to the bots section. I have tried editing the bots, even removing all bots but the error persists.

    Any ideas?

    • Tom Tom sagt:

      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.

      if ( $limit == 0 )
          return;

      • joe joe sagt:

        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 443

        i checked the line:

        if ( mysql_num_rows($res) == 0)
        return;


        any ideas how to fix this?

        regards

  199. Shady Shady sagt:

    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

    • Tom Tom sagt:

      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! :)

  200. Aveef Aveef sagt:

    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

  201. FrankD FrankD sagt:

    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

  202. 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.

  203. Simon Simon sagt:

    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!

  204. OD OD sagt:

    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 :baehh:

  205. Daven Daven sagt:

    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. :)

  206. John John sagt:

    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

  207. jadah jadah sagt:

    Not an empty database, the error just showed up one day

    Warning: mysql_num_rows(): ... on line 443

  208. Erwin Erwin sagt:

    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??

    • Tom Tom sagt:

      Hi Erwin,
      Donderdag is an nice word for me. Much better than the german Donnerstag. Donderdag, Donderdag. Where is your problem. :mrgreen:
      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']);

  209. 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

    • Tom Tom sagt:

      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

        • Tom Tom sagt:

          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":

          <?php
          global $count_per_day;
          $count_per_day->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.

            :thumbsup:

            • Tom Tom sagt:

              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.

              <?php
              /*
              Template Name: Counter
              */
              ?>

              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

                • Tom Tom sagt:

                  Probier mal sowas in der Art:

                  <?php global $count_per_day; ?>
                  <div><?php $count_per_day->dashboardReadsAtAll(); // Besucher gesamt ?></div>
                  <div><?php $count_per_day->getClients(); // Browser ?></div>
                  <div><?php $count_per_day->getCountries(20); // 20 Länder ?></div>

                  Die divs und deren Inhalt musste noch per CSS anpassen. Evtl. hilft auch einfach

                  <?php echo '<link rel="stylesheet" href="'.$count_per_day->dir.'/counter.css" type="text/css" />'; ?>
                  

                  Ist dann aber nicht mehr valide. Musst mal sehen.

  210. MEiK MEiK sagt:

    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 :mauer: . :)

    Danke, im Voraus!

    MEiK

    • Tom Tom sagt:

      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. ;)

  211. sachu sachu sagt:

    is there a way to show view count of each post along with the title in a bracket ??

    • sachu sachu sagt:

      in the web page i mean..not in the admin panel...

      • Tom Tom sagt:

        Try this code in a template.

        <?php global $count_per_day; ?>
        <div><?php $count_per_day->getUserPerPost(20); ?></div>

        • sachu sachu sagt:

          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...

          • Tom Tom sagt:

            Save this code as counter.php in your theme directory.

            <?php
            /*
            Template Name: Counter
            */
            ?>
            
            <?php get_header(); ?>
            <div id="content">
                <div id="contentleft">
                    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                    <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
                    <?php the_content();?>
            
                    <?php global $count_per_day; ?>
                    <div class="counter_frontend"><?php $count_per_day->getUserPerPost(20); ?></div>
            
                    <div style="clear:both;"></div>
                    <?php endwhile; else: endif; ?>
                </div>
                <?php get_sidebar(); ?>
            </div>
            <?php get_footer(); ?>

            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

            .counter_frontend a img {
                display: none;
            }

            to your style.css to hide the post edit link.

  212. Phil Phil sagt:

    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 :cry:
    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

    • Tom Tom sagt:

      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.

  213. mazhel mazhel sagt:

    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?

    • John John sagt:

      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!

      • Tom Tom sagt:

        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).

  214. ElSid ElSid sagt:

    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

    • Tom Tom sagt:

      Empty counter database? Which PHP and MySQL version?

      • ElSid ElSid sagt:

        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? :mauer:
        I think it is important: this error occurs only when I click over count per day icon in administration panel.
        Thanks

        • Tom Tom sagt:

          Change in top of counter.php define('CPD_DEBUG', false); to true. You will see all queries at the bottom of the page. Look for getVisitedPostsOnDay or getMostVisitedPosts and 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.

          • ElSid ElSid sagt:

            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... :schwitz:

  215. Rüdiger Rüdiger sagt:

    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.

  216. Pawel Pawel sagt:

    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

  217. Siete Coyote Siete Coyote sagt:

    hey folks

    do you know if somebody is working in a spanish translation? We can help with it

  218. lennart K. lennart K. sagt:

    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

  219. Rüdiger Rüdiger sagt:

    der Zähler funktioniert unter
    http://www.ruedigerprehn.de/matti ausgezeichnet. Das ist eine Testseite. :-D
    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 :-O
    Woran könnte das liegen?
    Danke für die Unterstützung

    • Tom Tom sagt:

      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.

  220. headlessgeek headlessgeek sagt:

    Hi you all , for all the ones that where having trouble with this 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

    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

  221. Rüdiger Rüdiger sagt:

    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

    • Tom Tom sagt:

      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?

      • Rüdiger Rüdiger sagt:

        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

        • Tom Tom sagt:

          Öffne mal die counter.php im Plugin-Editor und ändere oben das define('CPD_DEBUG', false); in define('CPD_DEBUG', true);. Dann werden unten auf den Seiten die SQL-Queries angezeigt. Such da mal count check und poste die Anfrage. Die scheint keine richtiges Ergebnis zu liefern.

          • Rüdiger Rüdiger sagt:

            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. ;)

            • Tom Tom sagt:

              :arrow: Punkt 3. Diesen Code kannst du mal in phpMyAdmin eingeben. Bei mir gibt es als Ergebnis 0, was OK ist, da mein Besuch noch nicht gezählt wurde. Evtl. kommt deine MySQL-Version (welche?) mit der IP-Funktion nicht klar?
              So nebenbei, in deinem Blog ist es 7:16 statt 9:16. Stimmt die Zeitzone?

              • Rüdiger Rüdiger sagt:

                Hallo Tom,
                ich glaub, ich bin überfordert.
                Welchen Code? :arrow: Punkt 3. ? Als SQL-Abfrage?
                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?

                • Tom Tom sagt:

                  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.

  222. Melinda Davey Melinda Davey sagt:

    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?

  223. Lucato Lucato sagt:

    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.

    • Tom Tom sagt:

      Hi Lucato,
      i don't realy understand. :gruebel: The notes are saved by date. You can open the window/thickbox in both charts and in the list "Visitors per Day".

      • Lucato Lucato sagt:

        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.

        • Tom Tom sagt:

          Yes, most infos are in the readme.txt only. I have to update this page. ;)

          • Lucato Lucato sagt:

            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.

  224. Ben Ben sagt:

    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

    • Tom Tom sagt:

      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.

  225. Raz Raz sagt:

    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

  226. Radek Radek sagt:

    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.

    • Tom Tom sagt:

      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.

      • Radek Radek sagt:

        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".

        • Tom Tom sagt:

          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.

          • Radek Radek sagt:

            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. :hehe:
            If you have ide what is wrong with old data, i will check this for us.

            Thanks

            • Radek Radek sagt:

              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?

  227. LeXuS LeXuS sagt:

    Hi Tom,

    zuerst ein Danke für dein Plugin und ein dickes Lob. Gute Arbeit. :thumbsup:

    Ich würde gerne, falls erwünscht, die Übersetzung in eine neue Sprache erledigen. Bitte um Erlaubnis und eventuelle weitere Infos.

    Grüße
    LeXuS

  228. [...] Author page http://www.tomsdimension.de/wp-plugins/count-per-day [...]

  229. Martin Martin sagt:

    Counter sind sowieso schon lange out - Google Analytics oder div. andere Statistik-Instrumente sind zur Zeit in :twisted:

  230. Sugar Sugar sagt:

    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.

    • Tom Tom sagt:

      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.

      • Sugar Sugar sagt:

        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

        • Tom Tom sagt:

          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.

          • Sugar Sugar sagt:

            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

            • Tom Tom sagt:

              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.

              • Sugar Sugar sagt:

                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 glaub wp-visitors oder so.

                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

                • Tom Tom sagt:

                  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. :)

                  • Sugar Sugar sagt:

                    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

                    • Tom Tom sagt:

                      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 ein if (!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. ;)

                    • Sugar Sugar sagt:

                      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 ;-)

  231. Hallo!

    Meine Deutsch ist nicht gut.

    Die plugin habbe eine problem

    DONT RESPECT THE UTC TIME setted on CONFIGS os WordPress

    Tchüss :thumbup:

  232. Christoph Christoph sagt:

    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ß

  233. bernte bernte sagt:

    how can i create a monthly stat for the frontend widget?

  234. Sugar Sugar sagt:

    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

    • Tom Tom sagt:

      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.

      • Sugar Sugar sagt:

        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

  235. Sunny Sunny sagt:

    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!

    • Tom Tom sagt:

      Die Zahlen sind da, nur rechts außerhalb des sichtbaren Bereiches. Trag mal:

      .cpd {width: 260px;}
      .cpd li {width: 230px;}

      in deine style.css.

      • Sunny Sunny sagt:

        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

        • Tom Tom sagt:

          In die style.css in deinem Theme-Verzeichnis. Einfach ganz unten anfügen.

          • Sunny Sunny sagt:

            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

            • Tom Tom sagt:

              Ok, nimm den Holzhammer. ;)

              .cpd {width: 260px !important;}
              .cpd li {width: 230px !important;}

              Deine Angaben werden durch andere Styles überschrieben. Das kann durch !important verhindert werden. Sollte man allerdings sparsam einsetzen.

              • Sunny Sunny sagt:

                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

  236. Mischa Mischa sagt:

    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?

    • Tom Tom sagt:

      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?

      • Frank Frank sagt:

        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?

        • Tom Tom sagt:

          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.

  237. Ursula Ursula sagt:

    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

    • Tom Tom sagt:

      Hallo Ursula,

      danke für den Hinweis. Das ist eindeutig ein Fehler. :facepalm: 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. ;)

      • Ursula Ursula sagt:

        danke :-) übrigens auch gleich gucken, wenn jemand on war, wird's im moment auch danach nicht angezeigt. Du weißt, was ich meine?

        • Tom Tom sagt:

          Ä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.

          • Ursula Ursula sagt:

            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. :thumbup:

  238. Das ist wuderbares Tool kann ich gut gebrauchen:), so was habe ich gesucht und jetzt gefunden. Vielen Dank :liebhab:

  239. Frank Frank sagt:

    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 :thumbup:

    • Tom Tom sagt:

      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.

  240. 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

    • Tom Tom sagt:

      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?

  241. Dante Dante sagt:

    "This post" counter on sidebar is not working properly. Please fix this. The value isn't show the right stats.

  242. Hanne Hanne sagt:

    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!! :-D

  243. Naps Naps sagt:

    Danke, geiles Plugin.

    LG Naps

  244. LeXuS LeXuS sagt:

    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

  245. [...] результаты автору. Скоро разместят. Страница плагина Count per Day. Ждите и берите, пока ещё [...]

  246. Peter Ngan Peter Ngan sagt:

    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

  247. freya freya sagt:

    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 :roll:

    • Tom Tom sagt:

      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.

  248. Radek Radek sagt:

    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?

    • Tom Tom sagt:

      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.

  249. thank you very much i use my site

  250. Radek Radek sagt:

    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

  251. Annedorte Annedorte sagt:

    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?

    • Tom Tom sagt:

      Maybe an wrong update vs. new installation? :gruebel: If you update you have to de- and reactivate the plugin to update the database.

      • Annedorte Annedorte sagt:

        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.

        • Tom Tom sagt:

          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.

  252. Ursula Ursula sagt:

    Hallo Tom,

    darf ich nun "aufräumen"?

    Liebe Grüße

    Ursula

  253. Marcus Marcus sagt:

    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 :)

  254. Annedorte Annedorte sagt:

    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! :-D

  255. Joro Joro sagt:

    Perfect plugin.Thank you.Make donate button is very good idea.

  256. Felix Felix sagt:

    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"
    ...
    }

    • Tom Tom sagt:

      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.

  257. Joro Joro sagt:

    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!

    • Tom Tom sagt:

      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. ;)

  258. Felix Felix sagt:

    @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

  259. thank you very much, i love this plugin, i use my all site, thanks again

    best regards

  260. derfrw derfrw sagt:

    My god this plugin is fantasticccccccccccccc
    thanx thanx thanx thanxxxxxxxxxxxxxxxxx
    great germany programmer , great and mute all :D

  261. Dawn Dawn sagt:

    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.

    • Tom Tom sagt:

      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?

      • Dawn Dawn sagt:

        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:

  262. Diego Diego sagt:

    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!

  263. Melissa Melissa sagt:

    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. :mrgreen:

  264. Dawn Dawn sagt:

    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.

  265. 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

    • Tom Tom sagt:

      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.

  266. Dawn Dawn sagt:

    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!

    • Tom Tom sagt:

      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.

  267. tracy tracy sagt:

    Doesn't work for me at all. Big fat 0! But I know I've had visits as I get comments!

    • Tom Tom sagt:

      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

  268. Jane Bonacci Jane Bonacci sagt:

    Is there a way to exclude specific people's visits? Could I exclude a specific IP address or URL?

    thanks for the help! :)

  269. Da habt ihr ja ein richtig gutes WordPress Plugin Tool entwickelt, vielen Dank an euch, bis bald, weite so:) :-D

  270. [...] 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 [...]

  271. Thomas Thomas sagt:

    Vielen Dank für die Entwicklung des Count per Day Plugins, es macht genau das was ich gesucht habe :thumbup: 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 :?:

    • Tom Tom sagt:

      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. :)

      • Thomas Thomas sagt:

        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!

        • Tom Tom sagt:

          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. :)

        • Tom Tom sagt:

          Kannst mal testen wenn du dich traust: Development Version ;) Musst in den Einstellungen Cache aktivieren.

          • Thomas Thomas sagt:

            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:

            // $dir = dirname($_SERVER['DOCUMENT_ROOT'].$_SERVER['SCRIPT_NAME']);
            $dir = dirname(__FILE__);

            Gruß
            Thomas

            • Tom Tom sagt:

              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.

              • Thomas Thomas sagt:

                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:

                $_SERVER['DOCUMENT_ROOT'] = /home/strato/www/***/***/htdocs
                $_SERVER['SCRIPT_NAME'] = /wp-content/plugins/count-per-day/ajax.php
                dirname(__FILE__) = /mnt/web7/***/***/***/htdocs/wordpress/wp-content/plugins/count-per-day

                Die Sternchen habe ich nur zur Verkürzung und besseren Lesbarkeit angeben.

                • Tom Tom sagt:

                  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/...'.

  272. [...] Поводът е едно писмо, което изпратих на автора на тази добавка за WordPress. Добавката е направена с много труд и [...]

  273. 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

    • Tom Tom sagt:

      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.

  274. rogerio rogerio sagt:

    Hi friends, anyone translate this plugin to portuguese ?
    Thanks

  275. Mikkel Mikkel sagt:

    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

  276. Dawn Dawn sagt:

    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.

  277. ruth ruth sagt:

    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

  278. HeroP HeroP sagt:

    I can't get the extended functions to work. The getmostvisitedposts() show nothing. please help! :schwitz:

  279. Rabideau Rabideau sagt:

    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!

    • Tom Tom sagt:

      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.

  280. Radek Radek sagt:

    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

    BłÄd serwera!
    Serwer napotkał błÄd wewnÄtrzny i nie jest w stanie zrealizowaÄ twojego żÄdania. Serwer jest przeciÄżony lub napotkał na błÄd w skrypcie CGI.
    Jeśli myślisz, że jest to błÄd tego serwera, skontaktuj siÄ z administratorem.
    Error 500
    finelektronik.com
    Thu Aug 12 22:20:30 2010
    Apache 2

    Server Error!
    The server encountered an internal error and is unable to fulfill your request. The server is overloaded or has encountered an error in a CGI script.
    If you think this is a mistake on this server, contact your administrator.
    Error 500
    finelektronik.com
    Thu Aug 12 2010 10:20:30 p.m.
    Apache 2

    I repair three plugins, but I cannot repair CPD, and go to CPD settings.
    Are you have idea why?

    regards
    Radek

  281. After installing V2.12 the MAP option is no longer on the dashboard widget.

  282. Han Kooiman Han Kooiman sagt:

    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.

  283. Radek Radek sagt:

    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... :baehh:

    Thenks,
    Radek

  284. Lucato Lucato sagt:

    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?

    • Tom Tom sagt:

      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.

  285. Dawn Dawn sagt:

    Yay! The update fixed it! Thank you!

  286. Firdiansyah Firdiansyah sagt:

    This wordpress plugin, really great and usefull. Thanks so much....

  287. Raz Peleg Raz Peleg sagt:

    Hi Tom,

    Version 1.12 mess up rtl support in the admin panel.
    :mauer:

  288. Big-BT Big-BT sagt:

    Was muß ich tun, um GeoIP zu aktivieren. Komme nicht ganz klar... :cry:

    • Tom Tom sagt:

      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 geoip die nötigen Rechte (notfalls 777) hat, damit die Datei dort rein kopiert werden kann. Ansonsten kommt aber eine Fehlermeldung.

  289. PurpleB PurpleB sagt:

    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.

  290. Erik Erik sagt:

    Hi! Thank you for great plugin very impressive and easy to use :thumbsup:
    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 :-D !

    • Tom Tom sagt:

      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.

  291. Big-BT Big-BT sagt:

    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

    • Ursula Ursula sagt:

      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

    • Fred Fred sagt:

      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

      • Tom Tom sagt:

        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.

        • Ursula Ursula sagt:

          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

          • Ursula Ursula sagt:

            Nachtrag - auch wenn ich ein Datum auswähle, an dem Besucher in der Grafik "Besucher pro Tag" angezeigt werden.

            • Tom Tom sagt:

              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?

  292. Ursula Ursula sagt:

    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.

    • Ursula Ursula sagt:

      öö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

  293. Jason D Jason D sagt:

    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

  294. Björn Björn sagt:

    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

    • Björn Björn sagt:

      Sorry für die Verwirrung,ich hab mich oben vertippt,wollte sagen das die -Startseite- NICHT gezählt wird.

      • Tom Tom sagt:

        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?

  295. Big-BT Big-BT sagt:

    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!!!

    • Big-BT Big-BT sagt:

      Da bin ich schon wieder, das "Archiv" wird auch nicht gezählt, hab es grad noch mal ausführlich getestet.

      • Tom Tom sagt:

        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).

  296. 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

  297. Ursula Ursula sagt:

    Hihi Tom,

    gibt es schon was Neues? Es ist depremierend kein counterfeedback zu haben, wenn man Netzaktionen startet.

    :pray:

  298. Ursula Ursula sagt:

    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;

  299. Lucato Lucato sagt:

    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.

  300. anja anja sagt:

    Hallo !

    Könnt ihr mir sagen wie ich die Schriftfarbe verändere ?

    Mein template ist dunkel und man sieht die Schrift nicht.

    danke ;)

    • Tom Tom sagt:

      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 li und .cpd_front_list li b.
      Mit color: white; solltest du weiße Schrift haben.

  301. oggy oggy sagt:

    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.

    • Tom Tom sagt:

      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.

  302. Vero Vero sagt:

    i like the plug-in :thumbsup:

  303. I like the new release :thumbsup:
    but i've some problem with validation :uebel:
    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

  304. tony tony sagt:

    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...

    • Tom Tom sagt:

      The online counter is only one function for all visits, posts and startpage. Works in my blogs.

      • tony tony sagt:

        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

        • Tom Tom sagt:

          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.

          • tony tony sagt:

            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

            • Tom Tom sagt:

              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?

              • tony tony sagt:

                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....

  305. 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?

  306. tony tony sagt:

    "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?

  307. John John sagt:

    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

  308. Zaib Ali Zaib Ali sagt:

    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 :-O

  309. Mark Mark sagt:

    After upgrade to 2.13 the counter no longer updates. I have deactivated/reactivated... still broken.

    ...mark

  310. Ursula Ursula sagt:

    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

  311. Arslan Arslan sagt:

    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.

  312. I have uploaded count per day but do not see the world map.
    How do I make that happen?

    Thanks

    greg

    • Tom Tom sagt:

      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).

  313. Joro Joro sagt:

    :) I deactivate plugin and reactivate again. Now all is OK. Thank you, Tom.

  314. Cathy Cathy sagt:

    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

  315. fahirsch fahirsch sagt:

    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 ?

    • Tom Tom sagt:

      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?

  316. Ursula Ursula sagt:

    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

    • Tom Tom sagt:

      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.

  317. Tom Tom sagt:

    @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

  318. iridium iridium sagt:

    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.

  319. Mischa Kraus Mischa Kraus sagt:

    Ich bitte um ein Update mit dem der Fehler schnellsmöglich behoben wird.

    • Tom Tom sagt:

      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?

alle Kommentare anzeigen / show all comments

Kommentar schreiben




Tiny Corner