Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to use AXS with Links

Quote Reply
How to use AXS with Links
I'm posting this for the users who may have tried, but could not get AXS Site Tracking System from http://www.xav.com/scripts/axs/ to work properly on their site. My code may not quite match yours, as it has several mods in it (yahoo-style, nonenglish, & more), but it should be easy enough to decipher. Changes for this mod are in red.

To make your off-site links go through AXS, use something like this in the jump.cgi:
Code:
# Now let's send the user to the url..
$goto ?
print "Location: http://your-url.com/cgi-bin/axs/ax.pl?$goto\n\n" :
&error ("Record not found ($in{$db_key})");
}


Then, in site_html_templates.pl:

Code:
$output .= qq|<font face="Verdana, Helvetica, Arial" size=2><b><a href="http://your-url.com/cgi-bin/axs/ax.pl?$url">$category_name</a></b>
<small>($numlinks)</small> |;
And:
Code:
$output .= qq~<A HREF="http://your-url.com/cgi-bin/axs/ax.pl?$suburl">$subcategory_name</A>~ if ($v <= 5);
$output .= qq~<font color="#000000">,&nbsp; ~ if ($v ne $#{$subcategories{$subcat}} && $v <= 5);
$output .= qq~<font size="1"><A HREF="http://your-url.com/cgi-bin/axs/ax.pl?$url"> more</A><font color="000000">...</font>~ if ($v eq "5");
$v++;
}



Of course, change "your-url" to your URL. Cool

Hope this helps! It's interesting to see how your visitors are using your site, and AXS is an easy-to-install and eas-to-use script.


Having a hard time getting things to show up nicely... looks OK in the editor, but after posting?? Third time theory. {Used basic editor this time!}

Unsure


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Oct 16, 2002, 11:35 PM