Gossamer Forum
Quote Reply
category
Alex,

I use, as I'm sure a lot of sites use also, Hitbox to track my site hits, navigation, browser users, etc.

One of the things that it calls for is the page to track.

What I would love to be able to do is to generate the page to insert into the Hitbox javascript. I can do this now, however, it isn't quite right.

The script calls for a format where '+' is used for spaces.

I.E. YOUR+PAGE+GOES+HERE.

Is there anything now (or future) that can be done to help this out?

Lance Rasmussen
Bowlingzone.com

Quote Reply
Re: category In reply to
Sorry, I'm not sure i understand? What do you want there? The URL of the current page?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: category In reply to
<A href="http://counter.hitbox.com/a/joinbar.cgi" target="_top"><IMG SRC="http://hg1.hitbox.com/HG?hc=wf114&l=y&hb=WQ591030KMDF95EN5&cd=1&n=Alternative Organizations and Affiliations" height=15 width=468 ALT="Click Here!" border=0></A>

This is a snippit of code. I used the following in the template...

<IMG SRC="http://hg1.hitbox.com/HG?hc=wf114&l=y&hb=WQ591030KMDF95EN5&cd=1&n=<%category_name%>" height=15 width=468 ALT="Click Here!" border=0></A>

In the output (first sample) you have
Alternative Organizations and Affiliations

This needs to be
Alternative+Organizations+and+Affiliations

Basically, substituting spaces for plus signs.

The return value identifies this page on Hitbox for statistics purposes. This way I can look and see how many times people looked at the Alternative Organizations and Affiliations sections.

Lance Rasmussen
Bowlingzone.com

Lance

Quote Reply
Re: category In reply to
Hi,

You could do:

1. Add a template tag escaped_name that says:
sub {
my $tags = shift;
return $IN->escape($tags->{category_name});
}
2. Put <%escaped_name%> where you want the escaped version to be.

Cheers,

Alex

--
Gossamer Threads Inc.