View Full Version : stat counter question
brunerune
01-10-2009, 10:10 PM
hello. i have a problem with my stat counter. its showing at all the images, and the front page, but not in the thumbnail (browse) and the about site. the code is in the footer file. So I really dont understand what the problem can be? Please help :)
Dennis
01-10-2009, 10:26 PM
I don't understand what the problem is either. You could try to provide a better description of what troubles you have or even go all out by posting a link which demonstrates the problem.
Statcounter showing images?? That sounds like gibberish to me.
brunerune
01-10-2009, 10:33 PM
I think you misunderstood me. If you take a look at www.runehagelin.com. You see at the bottom, "Visitors: XX", but if you click in to the "galleries" section, i doesnt say the numbers. Same at "profile" section. Hope you understanded me better this time. Thanks!
Dennis
01-10-2009, 11:18 PM
Yes, the fact I have an example to work with is most helpful :D So basically I didn't misunderstood, but you didn't provided all the information in the initial post.
The tag you're using only is supported on the image_template.html file. See the documentation: http://www.pixelpost.org/docs/TemplateTags/SITE_VISITORNUMBER
If you really want them to show on all pages the core code of the addon has to be modified to lift the restriction.
Open your index.php file in the root of the Pixelpost installation. Look for this line:
$tpl = ereg_replace("<SITE_VISITORNUMBER>",$pixelpost_visitors,$tpl);
A few lines above this line it says:
if(!isset($_GET['x']) || isset($_GET['showimage']))
Move the first statement above the if statement like this:
$tpl = ereg_replace("<SITE_VISITORNUMBER>",$pixelpost_visitors,$tpl);
if(!isset($_GET['x']) || isset($_GET['showimage']))
This way the replacing of the tag isn't only on the showimage page.
BTW: I really like this image: http://www.runehagelin.com/index.php?showimage=53
Not only is she a very pretty girl but the composition as well as the lightning is really solid on this image. Browsing your archive this was definitely an image that attracted my attention immediately.
brunerune
01-10-2009, 11:47 PM
Thanks alot dude, love you!
Now, since Im on a roll with problems here, the last one;
I added an addon, the one that cycles. When you press next on the last image, it goes back to the first.
It said;
If last image is reached - link to the first.
You can use this new tags in your templates:
Tag: <IMAGE_CYCLE_PREVIOUS_LINK>
Tag: <IMAGE_CYCLE_PREVIOUS_THUMBNAIL>
Tag: <IMAGE_CYCLE_PREVIOUS_ID>
Tag: <IMAGE_CYCLE_PREVIOUS_TITLE>
Tag: <IMAGE_CYCLE_NEXT_LINK>
Tag: <IMAGE_CYCLE_NEXT_ID>
Tag: <IMAGE_CYCLE_NEXT_TITLE>
Tag: <IMAGE_CYCLE_NEXT_THUMBNAIL>
But where the hell shall i put these tags? I did try to insert them like this;
<a class="controls" href="<SITE_URL>index.php?showimage=<IMAGE_CYCLE_PREVIOUS_ID><IMAGE_CYCLE_PREVIOUS_LINK><IMAGE_CYCLE_NEXT_TITLE>">previous</a> •
<a class="controls" href="<SITE_URL>index.php?showimage=<IMAGE_CYCLE_NEXT_ID><IMAGE_CYCLE_NEXT_LINK><IMAGE_CYCLE_PREVIOUS_TITLE>">next</a> •
And it does work, cause they are looping. But the url are getting fucked somehow! Sorry for my language. It looks like this;
http://www.runehagelin.com/index.php?showimage=6%3Ca%20href=%27./index.php?showimage=6%27%3ENext%3C/a%3E
(This happens after you have clicked "next")
I probably messed up the code real bad, by placing the tags in that code. But can you help me out where to put them? Scream if you need more information from me, and sorry for the lack of it in the first post!
brunerune
01-11-2009, 01:33 PM
Case closed. Thanks Dennis.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.