ClickCounter Plugin no longer works (WP 2.0)
-
I am using Ozh’s ClickCounter Plugin. I do have to go.php file copied to my blog’s root directory.
Clicks are counted however the redirection no longer works. Is this maybe due to the changed way of handling permalinks in WP 2.0? Anybody encountered the same difficulties?
If you want to give it a try you can manually invoke the go.php script by going to:
https://www.rottmann.net/blog/go.php?https://www.www.ads-software.com
You will see that the go.php script no longer works. For the sake of completeness here is the content of the go.php script. I have not touched any of the original code.
<?php
require('./wp-blog-header.php');
// IMPORTANT :
// if you don't put this file in your blog root (where your index.php is)
// then modify the path to wp-blog-header.php aboveheader('Expires: Mon, 23 Mar 1972 07:00:00 GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache');
// IMPORTANT :
// same notice as above. This is to ensure the redirection still works even
// if you deactivate the plugin.
if (!function_exists("wp_ozh_click_increment")) {
require('./wp-content/plugins/wp_ozh_clickcounter.php');
}if ($_SERVER["QUERY_STRING"]) {
$url = $_SERVER["QUERY_STRING"];
$test= wp_ozh_click_increment($url);if ($is_IIS) {
header("Refresh: 0;url=$url");
} else {
header("Location: $url");
}} else {
echo "Hmmm ? ";
echo "<a href=\"" . get_settings('siteurl') . "\">Back to Blog</a> !";
}
?>Your help is greatly appreciated.
- The topic ‘ClickCounter Plugin no longer works (WP 2.0)’ is closed to new replies.