Re: Semi OT: vbulletin and # viewing - how do that do that?
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54879
interpreted = N
texte = Hey Gary,Just off the top of my head, here's how I might attack this:1. Set up a database BoardLogin.db2. Assign all visitors a cookie that expires after a reasonable amount of time (both guests & those logged in)3. Keep same cookie, but change expire time after each page request. (If someone has their browser open to your board, but hasn't loaded a new page in 5 minutes, it's my guess that they're no longer "active")4. Everytime a page is loaded, have it do a search of BoardLogin.db for all data w/ an expire date/time greater than or equal to now.hth,andyOn Thursday, December 11, 2003, at 08:41 AM, Gary Krockover wrote:> Actually would be OT as I'm wanting to apply this to a webdna bulletin > board that I have on one of my sites, but if you go to a vbulletin > board (ex: > http://forum.paradoxplaza.com/forum/forumdisplay.php?forumid=160 ) > they have a (# viewing) next to each thread. How would you imagine > that information is calculated? Obviously it's a count of cookies, > but how would that be applied to WebDNA? I am collecting cookies on > my site, so I think it could be applicable, just not sure how:>> [showif [GETCOOKIE name=login5]=TRUE]> add 1 to a temp db tally for this thread> [/showif]>> But then when someone leaves that thread, how do I subtract 1 from the > tally?>> Maybe even a better question, do I really want to do this? :)>> GK-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hey Gary,Just off the top of my head, here's how I might attack this:1. Set up a database BoardLogin.db2. Assign all visitors a cookie that expires after a reasonable amount of time (both guests & those logged in)3. Keep same cookie, but change expire time after each page request. (If someone has their browser open to your board, but hasn't loaded a new page in 5 minutes, it's my guess that they're no longer "active")4. Everytime a page is loaded, have it do a search of BoardLogin.db for all data w/ an expire date/time greater than or equal to now.hth,andyOn Thursday, December 11, 2003, at 08:41 AM, Gary Krockover wrote:> Actually would be OT as I'm wanting to apply this to a webdna bulletin > board that I have on one of my sites, but if you go to a vbulletin > board (ex: > http://forum.paradoxplaza.com/forum/forumdisplay.php?forumid=160 ) > they have a (# viewing) next to each thread. How would you imagine > that information is calculated? Obviously it's a count of cookies, > but how would that be applied to WebDNA? I am collecting cookies on > my site, so I think it could be applicable, just not sure how:>> [showif [GETCOOKIE name=login5]=TRUE]> add 1 to a temp db tally for this thread> [/showif]>> But then when someone leaves that thread, how do I subtract 1 from the > tally?>> Maybe even a better question, do I really want to do this? :)>> GK-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Andy Mowrey
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
HELP WITH DATES (1997)
wrong input values? (1997)
How to download a database???/ (2000)
CSV import suggestions (2007)
triggers have stopped once again (2002)
New WebDNA Example from Olin -- (1998)
Max Record length restated as maybe bug (1997)
Price Not Appearing (2000)
2.0 Beta (1997)
WebCat2 - [SendNews] (1997)
simple answer? [hideif] (1997)
Auto-closing of databases (was DON'T use old cart file!) (1997)
Sorting Date (2004)
[WebDNA] ImageMagick troubleshooting (2009)
2.0Beta Command Ref (can't find this instruction) (1997)
REDIRECT fixed (2001)
security (1997)
SKU (1997)
Requiring that certain fields be completed (1997)
WebCat for mass emailings (1997)