Author |
Message |
pooters
Junior WebHelper
Joined: 11 Nov 2002
Posts: 5
|
Posted:
Mon Nov 11, 2002 10:43 pm (21 years, 5 months ago) |
|
Hey all;
On the 4WebHelp home page I noticed a feature that says "users online" and indicates how many users are on the site. I'd like to be able to do this for my site. Can you tell me how this was done?
Thanks,
pooters |
|
|
|
|
tevans5
Junior WebHelper
Joined: 06 Oct 2002
Posts: 1
|
Posted:
Tue Nov 12, 2002 5:21 am (21 years, 5 months ago) |
|
I would like to know this too!!! |
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Tue Nov 12, 2002 12:47 pm (21 years, 5 months ago) |
|
I think it's a hack from phpbb.com isn't it? |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Nov 12, 2002 5:20 pm (21 years, 5 months ago) |
|
|
|
|
pooters
Junior WebHelper
Joined: 11 Nov 2002
Posts: 5
|
Posted:
Tue Nov 12, 2002 6:10 pm (21 years, 5 months ago) |
|
Thanks,
Now that I've got it, how do I use it? The instructions say I need MySQL. Can you send me instructions on how to use this? If you need to, my e-mail is clifford_beck@theoffice.net
Thanks |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Nov 12, 2002 6:43 pm (21 years, 5 months ago) |
|
Oh wait a minute... Aren't you using phpBB? |
________________________________
|
|
|
|
pooters
Junior WebHelper
Joined: 11 Nov 2002
Posts: 5
|
Posted:
Wed Nov 13, 2002 12:56 am (21 years, 5 months ago) |
|
hey;
yes. I downloaded it recently. The file size is very small. How do I use it with the 'users online' feature?
Thanks |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Nov 13, 2002 3:15 pm (21 years, 5 months ago) |
|
Have you read the file "online_english.txt"? There's not really anything to do: every page on which you want to display the online users must include "online.php". |
________________________________
|
|
|
|
pooters
Junior WebHelper
Joined: 11 Nov 2002
Posts: 5
|
Posted:
Thu Nov 14, 2002 1:46 am (21 years, 5 months ago) |
|
I'm starting to get it. Can you send me a small sample web page so that I can see exactly how to set up the code? Do I simply link the web page to the .php file or do I copy and paste the .php files code into the web page? I don't mean to sound dense, but I've never dealt with php files before.
Thanks Again |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Thu Nov 14, 2002 4:57 pm (21 years, 5 months ago) |
|
Name the file on which you want to have the online users info with a name ending in ".php". Then put the online.php file in the same directory as your page.
Add this to the page in the place where you want the users online info:
Code: | <? include ('online.php'); ?> |
|
________________________________
|
|
|
|
pooters
Junior WebHelper
Joined: 11 Nov 2002
Posts: 5
|
Posted:
Fri Nov 15, 2002 1:41 am (21 years, 5 months ago) |
|
I do not wish to create a seperate file for online user info -- just a display on the page showing how many users are on. Is this code: <?php include('online.php');?> written into a hyperlink? example: <a href="?php include('online.php');?"> </a> If this is not correct, please show me an example of how it is used.
Thanks |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Nov 15, 2002 7:05 am (21 years, 5 months ago) |
|
No, it doesn't go in a link. You have to name all pages where you want this info with a name ending in .php (there is another way to do it by keeping the .html extension - ask me if you want to know how). Then include the code I gave you somewhere on your page. |
________________________________
|
|
|
|
|