I created a small snippet today and called it "Mini Counter".
It does what it says. It is a simple page counter.
News/Bakery//Catalog/GoCart/Gallery subpages are counted seperately.
Install the zipfile as a normal module through the WB backend.
Add the php code to your template index.php.
Using the snippet:
Default: <?php MiniCounter(); ?>
Optional parameters: <?php MiniCounter( $show_counter, $hits_text, $today_text, $closing_text ); ?>
$show_counter = Echo the counter result (default := 1, 0 no output)
$hits_text = The text in front of the total hits counter. (default := "Pagehits: ", if set to "" no total counter is displayed)
$today_text = The text in front of the today hits counter. (default := " (Today: ", if set to "" no daily counter is displayed)
$closing_text = Optional text to close the result of the snippet. (default := ")", if set to "" no closing is displayed)
Customised Example: <?php MiniCounter(1 , "Hits: " , " [Today: " , "]" ) ?>
No Output: <?php MiniCounter(0); ?>
There is no nice overview output (yet), just the counter in the page.
I invite all to build a backend page to look at stats using the data.
October 6 - Version 0.22
This version has a second snippet added.
<?php Popular_Pages(); ?>
This will create a links block with the 5 pages (or more) with the most page views.
Optional parameters: <?php Popular_Pages( $count, $title, $show_menu_title, $show_totals ); ?>
$count = The amount of pages listed by the snippet.
$title = The heading of the block. It is written in a <div class="popularpages">
<h2><h3> </h3> </h2></div>
-- The listing itself is written in <div class="popularlist"><ul><li>........</li></ul></div>
$show_menu_title = If set to 0 (default = 1) the page title is used for the link. Not the menu_title.
$show_totals = if set to 1 a tooltip will be added to the link with the total pageviews for that page.
[gelöscht durch Administrator]