2012-08-23, 13:57:22
mvlcek Wrote:You could also do this directly where you call return_hitcount_hits (e.g. in your template) without the need to modify the plugin, e.g.
Code:$post = @$_GET['post'];
if (return_page_slug() == 'blog' && $post) {
$numHits = return_hitcount_hits(return_page_slug().'-'.$post);
} else {
$numHits = return_hitcount_hits(return_page_slug());
}
// do something with $numHits
Good call. However because I already have to modify the hitcount_init_page() method above it, I might as well modify the code below it. Unless there is a way that I don't have to modify the hitcount_init_page() above it?