![]() |
|
How can I get the hit counter on the image page? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: How can I get the hit counter on the image page? (/thread-5641.html) |
How can I get the hit counter on the image page? - Fotoman - 2009-08-10 Hi at zenphoto forums! I just saw that's possible to have a hit counter for the images, galleries on the page. How can that be done? I saw that I can reset the counter on the admin page but it does not appear on my site. I'm using 1.2.5 and default theme with some modifications. There's no "enable hit couter" button as far as I see. I just tried this: http://www.zenphoto.org/support/topic.php?id=4812#post-28263 , but the counter does not show up. What do I have to do to make the hit counter appear? I noticed that it's already included but needs to be activated. Thanks for help, How can I get the hit counter on the image page? - sbillard - 2009-08-10 place How can I get the hit counter on the image page? - Fotoman - 2009-08-11 Hi sbillard! Thanks for the quick answer. Nope, it doesn't appear. Honestly I must admit that I know HTML, but my knowledge in php is pretty llimited. Is it really My best regards, How can I get the hit counter on the image page? - acrylian - 2009-08-11 Within html code of course the second... How can I get the hit counter on the image page? - Fotoman - 2009-08-11 Okay, tested this already. I doesn't show up. Can it be that difficult? How can I get the hit counter on the image page? - acrylian - 2009-08-11 The question is also where exactly you placed the call. It needs to be in an image or album context. Otherwise it will not work. How can I get the hit counter on the image page? - Fotoman - 2009-08-11 As said: in the image.php, line 58, 59 of the default zenphoto theme. `
How can I get the hit counter on the image page? - acrylian - 2009-08-11 IF that code is right, you got a space between the question mark and the "php". This actually should result in an error. Anyway, it is working as expected with the recent release. I just tried. How can I get the hit counter on the image page? - Fotoman - 2009-08-11 Sorry no, there is no space between the question mark and the "php". Pasting code here is a little tricky. The counter's just not showing up. Can I check some other things that are connected to the counter appearence in the page? Looks like this: http://img18.imageshack.us/img18/6766/zwischenablage01xso.jpg I believe you that it works. It's just not working on my page, so I try to find out why ... How can I get the hit counter on the image page? - acrylian - 2009-08-11 Alright, just wanted to be sure. Did you look at the database? Does that image actually have a hitcount? Are there any errors in the error log? I have no other ideas. How can I get the hit counter on the image page? - Fotoman - 2009-08-11 I has. I just has 10 hits. In the database, too. No error logs. As I see the php doesn't make it to the hatml generated page. Have you a page, where I can have a look at the hit counter? One more question to make shure we're talking about the same thing: Is the hit counter the thing with the stars taht float to yellow wenn hovering them? The rating tool like "I give three of five stars for that image." or is the hit ounter - tht I don't see - something that tells me "100 People have already seen this picture", so it pints out "100" below the image? I'd name the first one rating tool the other one hit counter. How can I get the hit counter on the image page? - sbillard - 2009-08-11 Well, no. The hitcounter is just a number--the number of visits (by non-admin users) toi the site. The Effervescence+ theme has hitcounters in the footer of the pages. How can I get the hit counter on the image page? - Fotoman - 2009-08-11 Okay, seen that. They realized it by a special part by an extra customfunctions.php. ` ` How can I get the hit counter on the image page? - sbillard - 2009-08-11 So, if you select the Effervescence+ theme, do the hitcounters show up in the footer? getHitcounter() is declared in the template-functions.php script. Zenphoto Functions Guide in the User Guide section of the Zenphoto WEB site which would have told you this.) The above code will echo How can I get the hit counter on the image page? - Fotoman - 2009-08-12 Hi sbillard! Well, I placed the counter call over twenty times in the image.php and album.php page. It doesn't show up. It even doesn't make it to the HTML page. There's no indication in the source code. At the end of page I have the following: ` How can I get the hit counter on the image page? - sbillard - 2009-08-12 You must be making some basic error. As I said above, the echo statement will display something even if it does not display the counter. Since you get nothing. You must not be actually doing what you think you are doing. So, be sure that you are making the changes to the theme you are actually running, etc. How can I get the hit counter on the image page? - Fotoman - 2009-08-13 NOW! The album layout theme was set to [blank] = no theme selected. Now after I recognized tthat there's a 'default' theme and a 'zenpage-default' theme I finally realized that I was editing 'default' all the time and not 'zenpage-default'. Setting every album to 'zenpage-default' and editing the image.php and album.php of THIS theme in ..\zenpage-default brought the counter on the page. Thanks for the directions! Greetz, How can I get the hit counter on the image page? - darek_l - 2016-08-17 I putted this one and works well [ [ ] |