Thanks Dave. You really had me worried there for a while.
Anyway, the $CatNbr thingymebopper...
I am a member of Link Exchange and I have it setup to use multiple pages. Well, if you know anything about Link Exchange, you know that for multiple pages, you put in the following type of url:
Quote:
<a href="http://ad.linkexchange.com/***/X964367/gotoad.map" target="_top">
where the "***" represents the number of the page being loaded. In my site menu, I have 9 options, 7 of which are Links generated, 1 is a separate guestbook script, and of course, the basic Birdcast Recommend this page (not link) script.
In each site_html_templates.pl subroutine that loads a template file for the menu options, I hardcode a number to be used in place of the "***" in the above code and pass it to the template.
I also do the same in the sub site_html_category routine but, in this case, I need to calculate the page number, offset from 10 (one more than the 9 options because my site menu does not include a hyperlink to the home page). So, in that subroutine, I put:
Quote:
my $CatNbr = $category{$category_name}[0] + 10;
This gives me a unique number to use for each category or subcategory page that I can pass to the category template files to plug into the Link Exchange code. In the template files, I just include the following code:
Quote:
<!-- BEGIN INTERNET LINK EXCHANGE CODE -->
<a href="http://ad.linkexchange.com/<%catnbr%>/X964367/gotoad.map" target="_top">
<img width=440 height=40 border=1 ismap alt="Internet Link Exchange" src="http://ad.linkexchange.com/<%catnbr%>/X964367/logoshowad?free"></a><br>
<font size=1><a href="http://www.linkexchange.com/" target="_top">Member of the Internet Link Exchange</a></font><br>
<!-- END INTERNET LINK EXCHANGE CODE -->
Does that answer your question?
[This message has been edited by Bobsie (edited April 22, 1999).]