Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use GeekTool to view the online list of a PHPBB forum Internet
Here's a GeekTool widget that shows you who's online on your favourite forum sites (as long as they use phpBB). The commandline to enter into GeekTool is:
/sw/bin/lynx -dump websitepath | grep 2005
Where websitepath is the URL of the forum, followed by /viewonline.php. For example, the 68k Macintosh Liberation Army forums are located at http://www.68kmla.net, which makes the websitepath is http://www.68kmla.net/viewonline.php. For another example, PHPBB's own forums are at http://www.phpbb.com/phpBB/, so the websitepath is http://www.phpbb.com/phpBB/viewonline.php.

Problems/Difficulties and how they can be overcome:
  1. You need lynx. Get Fink and use that to install lynx.
  2. If you are reading this in 2006 or later, replace 2005 in the grep command with the current year.
  3. This only works with PHPBB forums. It can probably be adapted to work with other forums, though.
  4. Refreshing at high rates can be hard on the webhost. I set mine to go once every two minutes.
  5. For every person doing this, there will always be one guest "viewing who is online."
[robg adds: For vBulletin forums such as forums.macosxhints.com, it seems the websitepath would be http://forums.macosxhints.com/online.php?. However, vBulletin has a very lengthy user list display, so I'm not sure how useful this might be...]
    •    
  • Currently 2.00 / 5
  You rated: 2 / 5 (4 votes cast)
 
[11,247 views]  

Use GeekTool to view the online list of a PHPBB forum | 4 comments | Create New Account
Click here to return to the 'Use GeekTool to view the online list of a PHPBB forum' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use GeekTool to view the online list of a PHPBB forum
Authored by: vdanen on Jan 11, '05 01:07:41PM
Even easier:

lynx -dump http://site/viewonline.php | grep `date +%Y`
Then you'll never need to look at this again since the year will always be correct.

[ Reply to This | # ]
Remove link numbers
Authored by: Brontojoris on Jan 11, '05 07:23:13PM

A little bit cleaner...

lynx -dump -nolist http://site/viewonline.php | grep `date +%Y`

The -nolist attribute will prevent link numbers being displayed in the output.



[ Reply to This | # ]
Remove link numbers
Authored by: Brontojoris on Mar 06, '05 10:26:47PM

I thought this was a really cool hint, and have kept tweaking it.

lynx -dump -nolist http://www.thomsoneducationdirect.com.au/forums/viewonline.php | grep `date +%Y` | awk '{print $1": " $8" " $9" "$10" "$11" "$12}'

This will hide the date and time so that it only shows the username and the page they are on.

eg: Brontojoris: Viewing who is online



[ Reply to This | # ]
Use GeekTool to view the online list of a PHPBB forum
Authored by: t3hl33t on Jan 11, '05 11:06:30PM

VBulletin doesnt work as you need to be logged in.



[ Reply to This | # ]