PDA

View Full Version : Inserting the page title into a variable.


shri
Sun 18th Jun '00, 4:30pm
Hi,

I was looking into running the hitbox stats on my site for a while to see how viewers are navigating.

Their sub page code has this ..


<!-- BEGIN WEBSIDESTORY CODE V5. COPYRIGHT 1998-2000 WEBSIDESTORY, INC. ALL RIGHTS RESERVED. U.S. PATENT PENDING. -->
<!-- webbot bot="HTMLMarkup" startspan -->
<p align="center"><A HREF="http://rd1.hitbox.com/rd?acct=WQ500510E9DA38EN0&p=s">
<IMG SRC="http://hg1.hitbox.com/HG?hc=w132&l=y&hb=WQ500510E9DA38EN0&cd=1&n=PUT+PAGE+NAME+HERE" height=62 width=88 ALT="Click Here!" border=0></A></p>
<!-- webbot bot="HTMLMarkup" endspan -->
<!-- END WEBSIDESTORY CODE -->


How would make n=$pagetitle type thingy and expect it to be parsed? I was using the random variable in UBB previously.

Shri

John
Tue 20th Jun '00, 3:43am
If you are just using it in the showthread template, you might want to use the $threadid variable, or maybe $forumid. I do not think that using the $threadtitle variable would be a good idea, as it would include spaces in the URL, which would upset most browsers.

John

shri
Tue 20th Jun '00, 3:48am
Oops .. forgot to post a followup to this.

I modified the header to take the websidestory code and put in a page=$REQUEST_URI variable in it .. works without having to explicitly enabling parsing on the header