Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 01-10-2009, 10:10 PM
brunerune's Avatar
brunerune Offline
forum loafer
 
Join Date: Jan 2009
Location: Norway
Posts: 9
Send a message via MSN to brunerune
stat counter question

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
Reply With Quote
  #2  
Old 01-10-2009, 10:26 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
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.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #3  
Old 01-10-2009, 10:33 PM
brunerune's Avatar
brunerune Offline
forum loafer
 
Join Date: Jan 2009
Location: Norway
Posts: 9
Send a message via MSN to brunerune
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!
Reply With Quote
  #4  
Old 01-10-2009, 11:18 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Yes, the fact I have an example to work with is most helpful 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/Templa..._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:
PHP Code:
$tpl ereg_replace("<SITE_VISITORNUMBER>",$pixelpost_visitors,$tpl); 
A few lines above this line it says:
PHP Code:
if(!isset($_GET['x']) || isset($_GET['showimage'])) 
Move the first statement above the if statement like this:
PHP Code:
$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.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #5  
Old 01-10-2009, 11:47 PM
brunerune's Avatar
brunerune Offline
forum loafer
 
Join Date: Jan 2009
Location: Norway
Posts: 9
Send a message via MSN to brunerune
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_P REVIOUS_ID><IMAGE_CYCLE_PREVIOUS_LINK><IMAGE_CYCLE _NEXT_TITLE>">previous</a> &bull;

<a class="controls" href="<SITE_URL>index.php?showimage=<IMAGE_CYCLE_N EXT_ID><IMAGE_CYCLE_NEXT_LINK><IMAGE_CYCLE_PREVIOU S_TITLE>">next</a> &bull;

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!

Last edited by brunerune; 01-11-2009 at 12:37 PM.
Reply With Quote
  #6  
Old 01-11-2009, 01:33 PM
brunerune's Avatar
brunerune Offline
forum loafer
 
Join Date: Jan 2009
Location: Norway
Posts: 9
Send a message via MSN to brunerune
Case closed. Thanks Dennis.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:31 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs