Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hit counter Probs
#1
Hi,
Ive installed the hitcounter plugin to GS 3.0 and followed the instructions and ensured that the permissions are 777 on the /data/other directory I siply cant find any link to the page at all in the admin section.

Under the HitCounter plugin home page http://mvlcek.bplaced.net/get-simple/hitcount
You say

“Usage - In the administration goto Support - Hits & Visitors.”

You can use the functions return_hitcount_visits(return_page_slug()) and return_hitcount_visits() to display hits of the current page and visits on your site.

I have tried to make a page called hits with the function
<?php
function hitCount()
{
return_hitcount_visits(return_page_slug())
}
Echo hitCount();
?>

The returning page is empty.

I don’t really want to have it as an additional page and was expecting it to work directly from admin section. Could you please help.
As you may guess Im an a complete newbie at css/php so please be gentle, if possible could you post an example if any code is required.
Reply
#2
Just enter the following line into your template (in the administration goto Theme/Edit Theme) - best in the footer - to display the number of hits on the current page:
Code:
<?php echo return_hitcount_hits(return_page_slug()); ?>

Or add the following line to display the number of visits to the site:
Code:
<?php echo return_hitcount_visits(); ?>
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
Yes works a treat, thank you. 8)

How do I view these details http://mvlcek.bplaced.net/get-simple/hit...creenshots - as I said I expected to be able to view this info from the plugins section of the admin panel, like the add-on buttons for I18N navigation - Edit Navigation Structure and View All Pages (I18N)
Reply
#4
Djinn Wrote:Yes works a treat, thank you. 8)

How do I view these details http://mvlcek.bplaced.net/get-simple/hit...creenshots - as I said I expected to be able to view this info from the plugins section of the admin panel, like the add-on buttons for I18N navigation - Edit Navigation Structure and View All Pages (I18N)

They are under the Support tab, as this is the tab that best fits the information shown.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#5
That wasn't there before, did you just put that there? did you, did you? Wink

Why didn't I see that before, thank you for taking the time to help; I'm sorry to waste your time with something so obvious - I'm feeling really stupid now.
Reply




Users browsing this thread: 1 Guest(s)