Pagina 1 van 2

Counter

Geplaatst: 12 jun 2007, 14:59
door .:rolfis:.
Hey phpBB gebruikers!
Ik heb een forum, en zou graag weten hoeveel bezoekers er per dag ongeveer komen.
Nou heb ik een counter, alleen ik wil de code graag onderaan de pagina hebben.
Ik heb hem al in de index.php geplakt, alleen dat werkt niet!
Weten jullie misschien waar ik de counter kan plakken zodat hij zichtbaar is?
Mvg.
Rolf

Re: Counter

Geplaatst: 12 jun 2007, 15:10
door svenn
Was de pm niet duidelijk, schat ?

Re: Counter

Geplaatst: 12 jun 2007, 15:10
door ElbertF
Waarschijnlijk zal je de in één van de HTML bestanden moeten plaatsen, bijv. index_body.html of overall_footer.html. Je kan ook gewoon de wie-is-online op 24 uur zetten.

Re: Counter

Geplaatst: 12 jun 2007, 15:14
door Derky
svenn schreef:Was de pm niet duidelijk, schat ?
Geen pm support hè svenn. :lol:
Ik had er namelijk ook 1 van hem gehad... :?
- Derky

Re: Counter

Geplaatst: 12 jun 2007, 15:17
door .:rolfis:.
In welke map staan die bestanden dan van ElbertF?

Re: Counter

Geplaatst: 12 jun 2007, 15:28
door ElbertF
/styles/prosilver/templates.

Re: Counter

Geplaatst: 12 jun 2007, 15:45
door .:rolfis:.
Werkt niet :S!
D'r komt niks tevoorschijn, hij blijft gewoon het zelfde!

Re: Counter

Geplaatst: 12 jun 2007, 16:21
door ElbertF
Wat is het voor script, JavaScript? Kun je het laten zien?

Re: Counter

Geplaatst: 12 jun 2007, 16:27
door .:rolfis:.
Nee, jij zei dat het HTML bestandjes waren toch?

Pagina: index_body.html
Spoiler: bekijk

Code: Selecteer alles

<!-- INCLUDE overall_header.html -->

<!-- IF U_MCP -->
    <div id="pageheader">
        <p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
    </div>

    <br clear="all" /><br />
<!-- ENDIF -->

<!-- INCLUDE forumlist_body.html -->

<span class="gensmall"><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a> | <a href="{U_TEAM}">{L_THE_TEAM}</a></span><br />

<br clear="all" />

<!-- INCLUDE breadcrumbs.html -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
    <br clear="all" />

    <table class="tablebg" width="100%" cellspacing="1">
    <tr>
        <td class="cat" colspan="2"><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4></td>
    </tr>
    <tr>
    <!-- IF LEGEND -->
        <td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
    <!-- ELSE -->
        <td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
    <!-- ENDIF -->
        <td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE}<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}<br /><br />{L_ONLINE_EXPLAIN}</span></td>
    </tr>
    <!-- IF LEGEND -->
        <tr>
            <td class="row1"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td>
        </tr>
    <!-- ENDIF -->
    </table>
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
    <br clear="all" />

    <table class="tablebg" width="100%" cellspacing="1">
    <tr>
        <td class="cat" colspan="2"><h4>{L_BIRTHDAYS}</h4></td>
    </tr>
    <tr>
        <td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/birthdays.gif" alt="{L_BIRTHDAYS}" /></td>
        <td class="row1" width="100%"><p class="genmed"><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <b>{BIRTHDAY_LIST}</b><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p></td>
    </tr>
    </table>
<!-- ENDIF -->

<br clear="all" />

<table class="tablebg" width="100%" cellspacing="1">
<tr>
    <td class="cat" colspan="2"><h4>{L_STATISTICS}</h4></td>
</tr>
<tr>
    <td class="row1"><img src="{T_THEME_PATH}/images/stats.gif" alt="{L_STATISTICS}" /></td>
    <td class="row1" width="100%" valign="middle"><p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p></td>
</tr>
</table>

<!-- IF not S_USER_LOGGED_IN -->
    <br clear="all" />

    <form method="post" action="{S_LOGIN_ACTION}">
    
    <table class="tablebg" width="100%" cellspacing="1">
    <tr>
        <td class="cat"><h4><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></h4></td>
    </tr>
    <tr>
        <td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" />&nbsp; <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" />&nbsp; <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" />&nbsp; <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>
    </tr>
    </table>
    
    </form>
    [color=#FF0000][b]HIER HEB IK MIJN SCRIPT GEPLAKT!!![/b][/color]<!-- ENDIF -->

<br clear="all" />

<table class="legend">
<tr>
    <td width="20" align="center">{FORUM_NEW_IMG}</td>
    <td><span class="gensmall">{L_NEW_POSTS}</span></td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center">{FORUM_IMG}</td>
    <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center">{FORUM_LOCKED_IMG}</td>
    <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>

<!-- INCLUDE overall_footer.html -->

[color=#FFFF00]Pagina overall_footer.html[/color]
<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
</div>

<!--
    We request you retain the full copyright notice below including the link to http://www.phpbb.com.
    This not only gives respect to the large amount of time given freely by the developers
    but also helps build interest, traffic and use of phpBB3. If you (honestly) cannot retain
    the full copyright we ask you at least leave in place the "Powered by phpBB" line, with
    "phpBB" linked to http://www.phpbb.com. If you refuse to include even this then support on our
    forums may be affected.

    The phpBB Group : 2006
//-->
[color=#FF0000][b]HIER HEB IK MIJN SCRIPT GEPLAKKT![/b][/color]<div id="wrapfooter">
    <!-- IF U_ACP --><span class="gensmall">[ <a href="{U_ACP}">{L_ACP}</a> ]</span><br />
    <!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
    <!-- IF DEBUG_OUTPUT --><br /><bdo dir="ltr">[ {DEBUG_OUTPUT} ]</bdo><!-- ENDIF --></span>
</div>

</body>
</html>  
Code-tags toegepast
- ElbertF

Re: Counter

Geplaatst: 12 jun 2007, 16:31
door Derky
Template vernieuwt of cache al gewist?

Re: Counter

Geplaatst: 12 jun 2007, 16:38
door ElbertF
Ik bedoelde de code van je counter.

Re: Counter

Geplaatst: 12 jun 2007, 16:59
door .:rolfis:.
Ik heb cache al verwijderd, maar blijft het zelfde!
Maar wat bedoel je ElbertF met de code van de PC?

Re: Counter

Geplaatst: 12 jun 2007, 17:01
door ElbertF
.:rolfis:. schreef:Nou heb ik een counter, alleen ik wil de code graag onderaan de pagina hebben.
De code waar je het hier over hebt zou ik graag willen zien. :P

Re: Counter

Geplaatst: 12 jun 2007, 17:06
door .:rolfis:.
Oké!
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.istats.nl/count.php?cid=31056">

Re: Counter

Geplaatst: 12 jun 2007, 17:22
door ElbertF
/styles/prosilver/templates/overall_footer.htm

Onderaan, maar bóven </body> plak je die code. Als het niet zichtbaar is ga je naar het beheerderspaneel, stijlen, templates, vernieuw.

Geef als je wilt ook een linkje naar je forum, zodat we zelf kunnen kijken.

Re: Counter

Geplaatst: 12 jun 2007, 17:40
door .:rolfis:.
De link is:
http://www.habborivier.nl/
Maar ik heb bij overall_footer.html dit gedaan:

Code: Selecteer alles

<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
</div>

<!--
	We request you retain the full copyright notice below including the link to www.phpbb.com.
	This not only gives respect to the large amount of time given freely by the developers
	but also helps build interest, traffic and use of phpBB3. If you (honestly) cannot retain
	the full copyright we ask you at least leave in place the "Powered by phpBB" line, with
	"phpBB" linked to www.phpbb.com. If you refuse to include even this then support on our
	forums may be affected.

	The phpBB Group : 2006
//-->
<div id="wrapfooter">
	<!-- IF U_ACP --><span class="gensmall">[ <a href="{U_ACP}">{L_ACP}</a> ]</span><br />
	<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
	<!-- IF DEBUG_OUTPUT --><br /><bdo dir="ltr">[ {DEBUG_OUTPUT} ]</bdo><!-- ENDIF --></span>
</div>

</body>
</html>
<body><SCRIPT LANGUAGE="JavaScript" SRC="http://www.istats.nl/count.php?cid=31056"><body>
Helemaal onderaan heb ik de code in de body tags geplaatst, is dit goed of niet?
Ook heb ik de styles even vernieuwd.

Re: Counter

Geplaatst: 12 jun 2007, 17:44
door Salomon
Vervang:

Code: Selecteer alles

</body>
</html>
<body><SCRIPT LANGUAGE="JavaScript" SRC="http://www.istats.nl/count.php?cid=31056"><body>
Met:

Code: Selecteer alles

<SCRIPT LANGUAGE="JavaScript" SRC="http://www.istats.nl/count.php?cid=31056">
</body>
</html>

Re: Counter

Geplaatst: 12 jun 2007, 17:52
door .:rolfis:.
Salomon schreef:Vervang:

Code: Selecteer alles

</body>
</html>
<body><SCRIPT LANGUAGE="JavaScript" SRC="http://www.istats.nl/count.php?cid=31056"><body>
Met:

Code: Selecteer alles

<SCRIPT LANGUAGE="JavaScript" SRC="http://www.istats.nl/count.php?cid=31056">
</body>
</html>
Het wil nog niet :(

Re: Counter

Geplaatst: 12 jun 2007, 18:00
door Salomon
OOOOOOowja :D

Vervang:
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.istats.nl/count.php?cid=31056">
met:
<script language="javascript" src="http://www.istats.nl/count.php?cid=31056"></script>

Re: Counter

Geplaatst: 12 jun 2007, 18:04
door .:rolfis:.
Dus het word:
<script language="javascript" SRC="http://www.istats.nl/count.php?cid=31056">
</body>
</html> ???