WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
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); ?>
$title = The heading of the block. It is written in a <div class="popularpages"><h2> </h2></div>
But in fact the code generates h3.
<?php if (PAGE_ID == 123) { MiniCounter(1 , "Hits: " , " [Today: " , "]" );}?>
Sure,Just find the page_id of the page you want it to show and use:Code: [Select]<?php if (PAGE_ID == 123) { MiniCounter(1 , "Hits: " , " [Today: " , "]" );}?>
<?php if (PAGE_ID == 123) { MiniCounter(1 , "Hits: " , " [Today: " , "]" );} else { MiniCounter(0);}?>