Abigail:

have been trialling a little counter which allows visitors to click on and
see how many page visits, and  to include it in the footer, which means that
either I have to abandon the global footer and have a specific one for each
site section (with the specific stats code) or use nested includes.

My Saturday morning testing on one section so far seems to show that this
works:

1.'Content'  footer include [ the content of the footer without the stats
counter code ]
######################################################################
<h6><a href="http://www.wellingtonlive.co.nz";> www.WellingtonLive.co.nz</a>
<br />
<a
href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#100;&#99;&#64;&#119;&#
110;&#99;&#46;&#113;&#117;&#105;&#107;&#46;&#99;&#111;&#46;&#110;&#122;?Subj
ect=WELLINGTON%20LIVE:%20<!--#echo var='DOCUMENT_NAME' -->%20PAGE">email
greytop</a>

<br />
Copyright © 2000 - 2003, edc<a name="bottom"></a></h6>
######################################################################
2.Section specific footer include with the counter code [omitted]
######################################################################
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr class="footer">
<td align="center" valign="middle" width="100%"><img
src="../images/spacer.gif" width="5" height="2" align="left" alt=" "></td>
</tr>
<tr>
<td align="center"><span style="float: left;  width: 20px; ">
<!-- Begin Counter code -->
<!-- End Counter code -->
</span>

<!--#include virtual="../directory/contentfooter.shtml" --></td></tr>

</table>
#####################################################################
3.Pages include call for the included footers:
######################################################################
<!--#include virtual="../directory/sectionfooter.shtml" -->

=====================================================================
and so far the double include works without any apparent problems, however
two points:

(a) this may depend on the specific attributes of the DOCUMENT_NAME variable

(b) it is somewhat more limited that the DOCUMENT_URI variable if one wants
to manipulate using if_else or regex, unless of course your page naming
conventions take that intended use into account, which might get a little
clumsy and non intuitive.......

cheers


www.WellingtonLive.co.nz


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/03


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to