Hit counter Probs - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: Hit counter Probs (/showthread.php?tid=1714) |
Hit counter Probs - Djinn - 2011-05-12 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. Hit counter Probs - mvlcek - 2011-05-12 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(); ?> Hit counter Probs - Djinn - 2011-05-13 Yes works a treat, thank you. 8) How do I view these details http://mvlcek.bplaced.net/get-simple/hitcount-screenshots - 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) Hit counter Probs - mvlcek - 2011-05-13 Djinn Wrote:Yes works a treat, thank you. 8) They are under the Support tab, as this is the tab that best fits the information shown. Hit counter Probs - Djinn - 2011-05-13 That wasn't there before, did you just put that there? did you, did you? 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. |