Topic: Visit counter very simple and easy

Hi all,
I have found a great counter very simple and easy to configurate, there is just the essential, number of visits today, total, and users on line
My problem is that I want integrate it just under the numer of total of members, number of topics, and number of messages, but I don't know where I need to add the code, I have search in footer.php but it's not that.
Can someone tell me what is the file please?

I found this counter here
http://www.notoon.com/forums/showthread.php?t=3

direct link to download
http://notoon.free.fr/3en1compteur/3en1compteur_01.zip

Re: Visit counter very simple and easy

this script is based on what? if you were going to be using it with punbb they there is no need for that, but i presumee your using it for a external site.

i did look at the code but the only thing i THINK it could of been is


<?php
include('3en1compteur/compteur.php');
echo '<!-- 3en1 compteur : www.notoon.com -->';
echo "Visiteurs : $v_total<br />";
echo "Aujourd'hui : $v_auj<br />";
echo "En ligne : $v_connecte";
?>

one of them shows what you want. play around, install the script and remove one and see what happens..

i may be wrong wink

Sorry. Unactive due to personal life.

3 (edited by Dax701 2007-08-18 11:03)

Re: Visit counter very simple and easy

You don't understand what I say, I want know in which file I need to insert this little code to show it here
http://img142.imageshack.us/img142/4800/sanstitre1tq5.jpg

4

Re: Visit counter very simple and easy

it is in footer.php

5 (edited by Dax701 2007-08-18 11:24)

Re: Visit counter very simple and easy

No I found it, in index.php
if you want add it to your board find line 166 and modify it, it should look like this

            <dl class="conr">
                <dt><strong><?php echo $lang_index['Board stats'] ?></strong></dt>
                <dd><?php echo $lang_index['No of users'].': <strong>'. $stats['total_users'] ?></strong></dd>
                <dd><?php echo $lang_index['No of topics'].': <strong>'.$stats['total_topics'] ?></strong></dd>
                <dd><?php echo $lang_index['No of posts'].': <strong>'.$stats['total_posts'] ?></strong></dd>
                <dd><?php
include('3en1compteur/compteur.php');
echo "Nombre de visiteurs aujourd'hui : <strong>$v_auj</strong><br />";
echo "Nombre de visites au total: <strong>$v_total</strong><br />";
?></dd>
            </dl>

I have modify it just to show "visits today" and "total visits"
Enjoy

6

Re: Visit counter very simple and easy

If you only add it in index.php, it will not count visits other than on the index page.

Re: Visit counter very simple and easy

Thanks for the advice, but that's enough for me