Plugin Directory

chCounter Widget

How to diplay chCounter statically without using widgets?

Version 2.0.2

Place the following code where you want to display chCounter

<?php
$chcounter_widget = new chCounterWidget();
$chcounter_widget->display(array (
   'before_widget' => '<li id="chcounter" class="widget chCounterWidget_display">',
   'after_widget' => '</li>',
   'before_title' => '<h2 class="widgettitle">',
   'after_title' => '</h2>',
   'widget_title' => 'Visitor statistics',
));
?>

Version 2.1+

You can just put the following code where you want to display chCounter:

<?php chcounter_widget_display("chCounter Widget Title") ?>

The plugin will default to before and after widget tags like in the example for Version 2.0.2. Alternatively you can pass an array of arguments to the function like in Version 2.0.2 to overwrite the defaults.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(9 ratings)