FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Question: how to include a simple PHP user online counter to index.php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Question: how to include a simple PHP user online counter to index.php [message #8151] Mon, 13 January 2003 16:47 Go to next message
cg01 is currently offline  cg01   Germany
Messages: 15
Registered: January 2003
Karma: 0
Junior Member
Hi,

i would like to add the following code to the index.php so that this page would be counted with the user online counter on the main page.

<?php include ("path/tools/userin.php3");?>


everytime i try to add the code to the index.php i got back only a white page.

where this code must be added to that this scripts works?

thx!
Re: Question: how to include a simple PHP user online counter to index.php [message #8154 is a reply to message #8151] Mon, 13 January 2003 17:01 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Where are you adding this line specifically and does your counter output anything?

FUDforum Core Developer
Re: Question: how to include a simple PHP user online counter to index.php [message #8158 is a reply to message #8151] Mon, 13 January 2003 18:47 Go to previous messageGo to next message
cg01 is currently offline  cg01   Germany
Messages: 15
Registered: January 2003
Karma: 0
Junior Member

<?php
--->>   include "path/useronline.php"; <<----
	include_once "GLOBALS.php";
        fud_use('init_errors.inc');
	fud_use('err.inc');


only a white page was the result.



Re: Question: how to include a simple PHP user online counter to index.php [message #8163 is a reply to message #8158] Tue, 14 January 2003 02:46 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Move the line to the very bottom of the file.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: New Installation of 2.3.6 - email not working
Next Topic: safe mode problems after step 1 of installation
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Oct 30 03:53:31 GMT 2024

Total time taken to generate the page: 0.04137 seconds