Gossamer Forum
Quote Reply
Who's online - SSI
I have defined an action (display_recent_posts) that uses a template to display the five most recent posts. Through SSI I include this action into my homepage, i.e.

Code:
<!--#include virtual="/forum/gforum.cgi?do=display_recent_posts"-->
The funny thing is that when somebody views the homepage, there will be an entry on the "Who's online" page in the forum, saying that Guest #n is "Viewing Recent Posts".

Is there a way to switch this off? Or more general, is there a way to select which actions are displayed in the "Who's online" page?

Maybe the best thing would be to include an <%if online_action eq 'Viewing Recent Posts'%> condition in the template itself...



Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Who's online - SSI In reply to
I noticed that it doesn't really make sense to exclude certain actions from being displayed on the "who's online" page, because then it says something like "40 guests have accessed the forum in the last 60 minutes" even if there has been no one (these 40 people were just the ones visiting the page with the SSI call on it).

I ended up writing a small script (using GT/GForum classes), to prevent going through gforum.cgi. I might make an extremely simple plugin out of it at some point.


Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Who's online - SSI In reply to
The upcoming version 1.0.1 has an added feature to the actions that allows you to set certain actions as "hidden" - in other words, they aren't added to the Online table which stores the "Who's Online" information.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [jagerman] Who's online - SSI In reply to
That's perfect! Looking forward to it.


Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Who's online - SSI In reply to
yogi - thanks for the SSI and the idea for creating actions!

Last edited by:

shiner: Jun 3, 2002, 1:44 PM