Ich möchte die Statistik Anzeige in meine Sidebar einbauen. Die Anzeige funktioniert mit einem Widget ohne Probleme, jedoch möchte ich kein Widget haben, so dass ich es manuell einfügen möchte.
Aber irgendwie klappt es bei mir nicht so recht, so dass ich dazu folgendes gefunden habe.
ZitatNow you could add these values everywhere! StatPress offers a new PHP function StatPress_Print(). * i.e. StatPress_Print("%totalvisits% total visits."); Put it whereever you want the details to be displayed in your template. Remember, as this is PHP, it needs to be surrounded by PHP-Tags!
ZitatAll you need to do is to edit your “footer.php” and put the
StatPress_Print("%totalvisits% total visits.");
whereever you want it to show up. But remember, it needs to be surrounded by < ?php and ?> - so if you put it in a a place that is not already surrounded by the php-Tags, you need to add them as well.
Aber wie kann ich die Anzeige korrekt da stellen ? Zur Zeit sieht es wie folgt bei mir auch:
<strong>Besucher heute</strong>: %visits%<br />
<strong>Besucher gesamt</strong>: %totalvisits%<br />
<strong>Besucher Online</strong>: %visitorsonline% <br />
<strong>Total Hits</strong>: %thistotalvisits%<br />
Danke