<commit_before>=== chCounter Widget ===
Contributors: <NAME>
Tags: plugin, sidebar, widget, visitor counter, counter, integration
Requires at least: 2.3
Tested up to: 2.7
Stable tag: 2.5

A simple plugin to create a widget for [chCounter](http://chcounter.org).


== Description ==

This is a simple plugin which creates a widget for [chCounter](http://chcounter.org). It can display all [20 output values](http://chcounter.org/index.php?s=alle-ausgabewerte that chCounter supports.

The parameters to display are controlled via the admin panel. There's also an option to make chCounter invisible while active and counting. Access to the settings page is controled via Wordpress capabilities which makes it compatible with [Role Manager](http://www.im-web-gefunden.de/wordpress-plugins/role-manager/)

**Translations**

* German
* Turkish

== Installation ==

To install the plugin to the following steps

1. Unzip the zip-file and upload the content to your Wordpress Plugin directory.
2. Activiate the plugin via the admin plugin page.
3. Go to Options --> chCounter Widget and set up the directory of your chCounter installation as well as parameters shown on the frontend
4. Go to the widget page and add it to your sidebar. Don't forget to set the title via the widget control panel


== Frequently Asked Questions == 

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


== ChangeLog ==

**Version 2.5**, *26-November-2008*

- support of all output values chCounter can display

**Version 2.4**, *3-October-2008*

- NEW: uninstallation hook for WP 2.7
- disabled uninstallation form in WP 2.7

**Version 2.3**, *21-May-2008*

- NEW: uses own capability to control access to plugin options page
- detached translation files from main plugin files. Own repository

**Version 2.2.1**, *13-April-2008*

- NEW: load scripts only on chCounter settings page
- changed uninstallation method to direct uninstallation and plugin deactivation
- reincorporated settings.php into main plugin file

**Version 2.2**, *9-April-2008*

- bug fix for displaying widget statically

**Version 2.1**, *20-March-2008*

- NEW: Simplified static displaying of chCounter. See FAQ for further details
- Switched to using scriptaculous and prototype shipped with Wordpress to reduce disk usage

**Version 2.0.2**, *17-March-2008*

- NEW: option to make chCounter invisible while active

**Version 2.0.1**, *17-March-2008*

- made it compatible with Wordpress 2.5
- NEW: possibility to display chCounter statically without using widget. See FAQ for further details

**Version 2.0**, *2-March-2008*

- NEW: drag & drop sorting and activation of parameters
- styling like widgets in Wordpress 2.3

**Version 1.1.3**, *29-February-2008*

- Some styling upgrade with own css file in respect to Wordpress 2.5

**Version 1.1.2**, *25-February-2008*

- Took out automatic uninstallation upon plugin deactivation
- NEW: option to uninstall it upon plugin deactivation
- Fixed a severe bug in 1.1.1 so that the widget was not displayed.

**Version 1.1.1**, *25-February-2008*

- NEW: Implemented uninstallation of the plugin upon deactivation.
- Version was deleted due to severe bug that caused the widget not to work.

**Version 1.1**, *24-February-2008*

- NEW: option to set chCounter installation directory via the admin interface and simple sorting of parameters.

**Version 1.0**, *20-February-2008*

- First Release of the plugin.


== Screenshots ==
1. Options Page to control chCounter display
2. Widget Control Panel
<commit_msg>fixing link in readme.txt<commit_after>=== chCounter Widget ===
Contributors: <NAME>
Tags: plugin, sidebar, widget, visitor counter, counter, integration
Requires at least: 2.3
Tested up to: 2.7
Stable tag: 2.5

A simple plugin to create a widget for [chCounter](http://chcounter.org).


== Description ==

This is a simple plugin which creates a widget for [chCounter](http://chcounter.org). It can display all [20 output values](http://chcounter.org/index.php?s=alle-ausgabewerte) that chCounter supports.

The parameters to display are controlled via the admin panel. There's also an option to make chCounter invisible while active and counting. Access to the settings page is controled via Wordpress capabilities which makes it compatible with [Role Manager](http://www.im-web-gefunden.de/wordpress-plugins/role-manager/)

**Translations**

* German
* Turkish

== Installation ==

To install the plugin to the following steps

1. Unzip the zip-file and upload the content to your Wordpress Plugin directory.
2. Activiate the plugin via the admin plugin page.
3. Go to Options --> chCounter Widget and set up the directory of your chCounter installation as well as parameters shown on the frontend
4. Go to the widget page and add it to your sidebar. Don't forget to set the title via the widget control panel


== Frequently Asked Questions == 

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


== ChangeLog ==

**Version 2.5**, *26-November-2008*

- support of all output values chCounter can display

**Version 2.4**, *3-October-2008*

- NEW: uninstallation hook for WP 2.7
- disabled uninstallation form in WP 2.7

**Version 2.3**, *21-May-2008*

- NEW: uses own capability to control access to plugin options page
- detached translation files from main plugin files. Own repository

**Version 2.2.1**, *13-April-2008*

- NEW: load scripts only on chCounter settings page
- changed uninstallation method to direct uninstallation and plugin deactivation
- reincorporated settings.php into main plugin file

**Version 2.2**, *9-April-2008*

- bug fix for displaying widget statically

**Version 2.1**, *20-March-2008*

- NEW: Simplified static displaying of chCounter. See FAQ for further details
- Switched to using scriptaculous and prototype shipped with Wordpress to reduce disk usage

**Version 2.0.2**, *17-March-2008*

- NEW: option to make chCounter invisible while active

**Version 2.0.1**, *17-March-2008*

- made it compatible with Wordpress 2.5
- NEW: possibility to display chCounter statically without using widget. See FAQ for further details

**Version 2.0**, *2-March-2008*

- NEW: drag & drop sorting and activation of parameters
- styling like widgets in Wordpress 2.3

**Version 1.1.3**, *29-February-2008*

- Some styling upgrade with own css file in respect to Wordpress 2.5

**Version 1.1.2**, *25-February-2008*

- Took out automatic uninstallation upon plugin deactivation
- NEW: option to uninstall it upon plugin deactivation
- Fixed a severe bug in 1.1.1 so that the widget was not displayed.

**Version 1.1.1**, *25-February-2008*

- NEW: Implemented uninstallation of the plugin upon deactivation.
- Version was deleted due to severe bug that caused the widget not to work.

**Version 1.1**, *24-February-2008*

- NEW: option to set chCounter installation directory via the admin interface and simple sorting of parameters.

**Version 1.0**, *20-February-2008*

- First Release of the plugin.


== Screenshots ==
1. Options Page to control chCounter display
2. Widget Control Panel

{'fraction_non_alphanumeric': 0.09696546913149634, 'fraction_numerical': 0.03604232066038833, 'mean_word_length': 4.319727891156463, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '163830', 'n_tokens_mistral': 2657, 'n_tokens_neox': 2404, 'n_words': 1093}