<b>Syntax</b>
<br><kbd>{accessed arguments...}</kbd><p>
This is a basic access counter. Instead of using a CGI-script, you
just insert <kbd>&lt;accessed&gt;</kbd>. To use this tag you have to
activate it in the RXML parser module. It is per default activated.<p>

<if module=graphic_text>You can combine the 'accessed' tag with the
'gtext' tag to generate one of those popular graphical counters. Be
sure to use the 'nocache' gtext argument. </if>

<p>
<b>Attributes</b>
<dl>
<dt><kbd><b>add[=how_much]</b></kbd>
<dd>Adds one or "<kbd>how_much</kbd>" to the number of accesses of the
    file that is accessed, or, in the case of no file, the current document.<p>
Notice that the <kbd>add</kbd> attribute adds <kbd>how_much</kbd> to
    each time the page is accessed and not only
    once which is the case with the <kbd>cheat</kbd> attribute.

<dt><kbd><b>addreal</b></kbd>
<dd>If you use <kbd>cheat</kbd> or other modifiers
    to the count, this attribute adds the correct count as comment
    in the HTML code, like this: <kbd>{!-- (4711) --}</kbd>.
    
<p>
<dt><kbd><b>capitalize</b></kbd>
<dd>Capitalizes the first letter of the string.

<p>

<dt><kbd><b>cheat=num</kbd>
<dd> Adds <kbd>num</kbd> to the actual number of
    accesses once. If your page for example has been accessed 56 times
    and you add <kbd>{accessed cheat=100}</kbd> the result will
    be 156 times the first time you access the page, 157 the second
    and so on.
<p>

<dt><kbd><b>factor=mult_factor</b></kbd>
<dd>    Multiplies the actual number of
   accesses by <kbd>mult_factor</kbd> and divides the result by one hundred.
   
<p>
<dt><kbd><b>file=filename</b></kbd>
<dd>Shows the number of times the file
    <kbd>filename</kbd> has been accessed instead of how many times
    the current page has been accessed. If <kbd>filename</kbd> does
    not begin with "/", it is assumed to be a URL relative
    to the directory containing the file in which the
    <kbd>{accessed}</kbd> tag was found. Note that you have
to type in the full name of the file. If there is a file named
    <kbd>tmp/index.html</kbd>, you cannot shorten the name to
<kbd>tmp/</kbd>, even if you've set Roxen up to use
    <kbd>index.html</kbd>as a default page.
</dl>
 
One limitation is that you cannot reference a file that does not
    have its own <kbd>{accessed}</kbd> tag. It suffices to
    enter this in a comment in the file, i.e. you do not need to
    display it in everyone of these files:


<kbd>
{!-- {accessed} --}</kbd>

This is done for reasons of efficiency, since it would be very
    costly to automatically log accesses for all files. It is however
    possible to configure the Main RXML Parser to access count files
    ending with certain extensions.<p>
    
<dl>
<dt><kbd><b>lang=language</b></kbd>
<dd>When using <kbd>type=string</kbd>, the
     number string is replaced by the string in the language indicated
     by this attribute. This also affects the <kbd>since</kbd> and
     <kbd>part</kbd> attributes. Available languages are Catala (ca or
    es_CA), Croatian (hr), Dutch (du), English (en, default), Finnish
    (fi), French (fr) 
    German (de), Japanese (jp),
    Italian (it), Maori (mi), Norwegian (no), Russian (ru), Serbian (sr),
    Slovenian (si), Spanish (es),Swedish (se) Portuguese (pt).
<p>

<dt><kbd><b>lower</b></kbd>
<dd>Lowercases the string.
<p>
<dt><kbd><b>per=second|minute|hour|day|week|month</b></kbd>
<dd> Shows the number of accesses per unit of time.
<p>    

<dt><kbd><b>prec(precision)=number</b></kbd>
<dd>    Rounds the number of accesses. The result is an integer with
    <kbd>number</kbd> valid digits. If <kbd>prec=2</kbd>, show
    <kbd>12000</kbd> instead of 
    <kbd>12149</kbd>.<p>

<dt><kbd><b>reset</b></kbd>
<dd>Resets the access counter. Only do this
     under special conditions, i.e. within an
    <kbd>{if}...{/if}</kbd>. 
    <p>
<dt><kbd><b>silent</b></kbd>
<dd>Do not show the count. The accessed tag is replaced with the empty string.
<p>
<dt><kbd><b>since</b></kbd>
<dd>Inserts the date that the accessed number is
    counted from. The language will depend on the <kbd>lang</kbd> tag, default
    is English. All normal date-attributes can be used. See below<p>


In the example below the <kbd>cheat</kbd> attribute adds 90 to the actual
    number of accesses, while the <kbd>addreal</kbd> gives you
    information about the actual number of accesses.
 <br>
 Note that the "addreal"
    information only can be seen in the HTML-code.
</dl>

<p>
This page has been accessed<kbd>{accessed type=string cheat=90
addreal}</kbd><br>times since<kbd>{accessed since}.</kbd> <p>
    
    
for example, will display as:
    <p>This page has been accessed four thousand seven hundred sixtyfive<!-- (4675) --> times since October 1997.
    <p>
while<p>    
Ce fichier a t accd <kbd>{accessed type=string lang=fr cheat=90
addreal}</kbd> <br> fois depuis <kbd>{accessed lang=fr since}.</kbd> <p>    

 will display as:<p>
Ce fichier a t accd 4765<!-- (4675) --> <br> fois depuis octobre 1997.
<p>
<dl>
<dt><kbd><b>type=string</b></kbd>: four thousand six hundred seventyfive<br>
    <kbd><b>type=roman</b> </kbd>:MMMMDCLXXV<br>
    <kbd><b>type=mcdonalds</b></kbd>: More than four thousand  served.<br>
    <kbd><b>type=linus</b></kbd>: 4675 since Thu Oct 16 11:39:54 1997
<br>
    <kbd><b>type=number</b></kbd>: 4675<p>
</dl>
This attribute allows you to specify how the access counting should
    print; as a number (default), as a Roman numeral or something else.
    Try them!
       <p>
<dl><dt><kbd><b>upper</b></kbd>
<dd> Uppercases the string.
</dl>
<p>
<date-attributes>
<b>See also: </b><p>
{date help} {modified help}

