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.db 2. 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, andy On 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:

    
  1. Re: Semi OT: vbulletin and # viewing - how do that do that? ( Gary Krockover 2003)
  2. Re: Semi OT: vbulletin and # viewing - how do that do that? ( Alex McCombie 2003)
  3. Re: Semi OT: vbulletin and # viewing - how do that do that? ( Gary Krockover 2003)
  4. Re: Semi OT: vbulletin and # viewing - how do that do that? ( Gary Krockover 2003)
  5. Re: Semi OT: vbulletin and # viewing - how do that do that? ( Donovan Brooke 2003)
  6. Re: Semi OT: vbulletin and # viewing - how do that do that? ( Gary Krockover 2003)
  7. Re: Semi OT: vbulletin and # viewing - how do that do that? ( Andy Mowrey 2003)
  8. Re: Semi OT: vbulletin and # viewing - how do that do that? ( Alex McCombie 2003)
  9. Semi OT: vbulletin and # viewing - how do that do that? ( Gary Krockover 2003)
Hey Gary, Just off the top of my head, here's how I might attack this: 1. Set up a database BoardLogin.db 2. 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, andy On 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:

PIXO support (1997) WCS Newbie question (1997) error (2000) [LOOKUP] (1997) Hideifs / Showifs (2000) Proper file locations (1997) Signal Raised Error (1997) No. of items in shopping cart (2000) whole word matching (2004) [protect admin] (1997) [CART] inside a [LOOP] (1997) Tax on shipping (1998) How to verify email address (1997) Smart caching problems with 2.1b3? (1997) WebCat b13 CGI -shownext- (1997) CommandSecurity? (1997) New public beta available (1997) no template caching (1997) Payments -> Bank Accounts (2005) IP address & domain name problem (2003)