Gossamer Forum
Home : Products : Links 2.0 : Customization :

Help need for page counter.

Quote Reply
Help need for page counter.
I need help in knowing how to setup links so it can generate a unique number for everypage.

I would like to use a tag <%counter%> and it would produce the number for that page. This is to be used in a templates page setup.

Thanks

------------------
-------------------------
luke@thetravelhelper.com
Visit www.thetravelhelper.com
-------------------------
Quote Reply
Re: Help need for page counter. In reply to
I would suggest using a third party logging program for this. You can find a simple counter program at cgi-resources.com. (I use a simple text counter for my site...If you want it, let me know.)

What you can do is add the codes for a simple counter program into the site_html_templates.pl file as a sub-routine. Then you can create a global variable for counter in the following manner:

Code:
counter => &counter,

(This is with the understanding that you name the sub-routine, "counter".) The sub routine should look like the following:

Code:
sub counter {
# Insert counter for pages

INSERT PERL CODES
}

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 01, 1999).]
Quote Reply
Re: Help need for page counter. In reply to
Thanks for the reply.

But I and basicly need a way of counting the number of pages the links has generated and using <%page_count%> insert the number of the page into my html template.

I need this so my banner ads are displayed correctly.

Thanks


------------------
-------------------------
luke@thetravelhelper.com
Visit www.thetravelhelper.com
-------------------------