4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Online users on home page
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
pooters
Junior WebHelper
Junior WebHelper


Joined: 11 Nov 2002
Posts: 5

PostPosted: Mon Nov 11, 2002 10:43 pm (14 years, 11 months ago) Reply with QuoteBack to Top

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
OfflineView User's ProfileFind all posts by pootersSend Personal MessageVisit Poster's Website
tevans5
Junior WebHelper
Junior WebHelper


Joined: 06 Oct 2002
Posts: 1

PostPosted: Tue Nov 12, 2002 5:21 am (14 years, 11 months ago) Reply with QuoteBack to Top

Very Happy I would like to know this too!!!
OfflineView User's ProfileFind all posts by tevans5Send Personal MessageVisit Poster's Website
Justin
4WebHelp Addict
4WebHelp Addict


Joined: 07 Jan 2002
Posts: 1060

PostPosted: Tue Nov 12, 2002 12:47 pm (14 years, 11 months ago) Reply with QuoteBack to Top

I think it's a hack from phpbb.com isn't it?
OfflineView User's ProfileFind all posts by JustinSend Personal MessageSend email
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Nov 12, 2002 5:20 pm (14 years, 11 months ago) Reply with QuoteBack to Top

Yes, it is. See http://www.phpbbhacks.com/viewhack.php?id=201 to get it.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
pooters
Junior WebHelper
Junior WebHelper


Joined: 11 Nov 2002
Posts: 5

PostPosted: Tue Nov 12, 2002 6:10 pm (14 years, 11 months ago) Reply with QuoteBack to Top

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 Shocked
OfflineView User's ProfileFind all posts by pootersSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Nov 12, 2002 6:43 pm (14 years, 11 months ago) Reply with QuoteBack to Top

Oh wait a minute... Aren't you using phpBB?

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
pooters
Junior WebHelper
Junior WebHelper


Joined: 11 Nov 2002
Posts: 5

PostPosted: Wed Nov 13, 2002 12:56 am (14 years, 11 months ago) Reply with QuoteBack to Top

hey;
yes. I downloaded it recently. The file size is very small. How do I use it with the 'users online' feature?

Thanks Shocked
OfflineView User's ProfileFind all posts by pootersSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Nov 13, 2002 3:15 pm (14 years, 11 months ago) Reply with QuoteBack to Top

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".

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
pooters
Junior WebHelper
Junior WebHelper


Joined: 11 Nov 2002
Posts: 5

PostPosted: Thu Nov 14, 2002 1:46 am (14 years, 11 months ago) Reply with QuoteBack to Top

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 Rolling Eyes
OfflineView User's ProfileFind all posts by pootersSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Thu Nov 14, 2002 4:57 pm (14 years, 11 months ago) Reply with QuoteBack to Top

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'); ?>

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
pooters
Junior WebHelper
Junior WebHelper


Joined: 11 Nov 2002
Posts: 5

PostPosted: Fri Nov 15, 2002 1:41 am (14 years, 11 months ago) Reply with QuoteBack to Top

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 Confused
OfflineView User's ProfileFind all posts by pootersSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Fri Nov 15, 2002 7:05 am (14 years, 11 months ago) Reply with QuoteBack to Top

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.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.05458 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme