How can I add a feature to show who is online to my homepage?

They have: 31 posts

Joined: Apr 2003

I have a forum and I want to know the code where I can put it on my homepage. I want it to have who is online and newest threads. For those who dont know what I am looking for here is an example:

From DraftGore.com
Who's Online?
1 Guests, 1 Users
ALGORESUPPORT.ORG

Latest Threads:
1. Draft Gore News / Re: Reports from the Field
2. Draft Gore News / Re: Gore tops latest New Hampshire Poll
3. Draft Gore: General Discussion / Re: Please visit the Gore Support Center
4. Current Events / Re: Voting reform
5. Iowa & New Hampshire / Re: New Hampshire 2003 Democratic Convention
6. Draft Gore: General Discussion / Re: Somebody said that Gore *would* accept a draft
7. Al Gore: News & Info / Re: War and Peace

It doesnt have to be exactly like this feature, but something to that efftect. I appreciate any help!

Busy's picture

He has: 6,151 posts

Joined: May 2001

best bet might be to go to the forums web site and look for a hack (add on) for it as most forums have all this stuff and more.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

http://www.phpfreaks.com/tutorials/62/0.php

You can also do it without a forum. That tutorial may help you integrate the concept yourself if your particular forums don't have that hack.

It's a fairly common hack, though, so as Busy said, check with the website for your forum software.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.