Re: New since last visit, forum feature, help requested

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56743
interpreted = N
texte = Hi Jesse and others, Hmm, it seems like I have found a solution... Please find the code below. Remember to set the offset value to a more realistic value that 5 sec ;) This solution is a ONE-COOKIE solution... [!] t_currentCurrent time in UTS (Unix Time Stamp format) offsetoffset in seconds (if xxxxx < t_current - offset then a new visit has begun) t_livename of cookie value_1UTS value of last page loaded value_2UTS value of last "visit" Cookie value (20 chars) - first 10 chart_current (UTS) - last 10 charLast visit value (UTS) [/!] [text show=f]t_current=[getchars start=1&end=10][cart][/getchars][/text] [text show=f]offset=5[/text] [text show=f]value_1=[getchars start=1&end=10][GETCOOKIE name=t_live][/getchars][/text] [text show=f]value_2=[getchars start=11&end=20][GETCOOKIE name=t_live][/getchars][/text] [showif [value_1]<[math][t_current]-[offset][/math]] [text show=f]temp_new_second=[value_1][/text] [Setcookie name=t_live&value=[t_current][temp_new_second]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [math time]{[time]}-{2:00:00}[/math] GMT&path=/&domain=[GETMIMEHEADER Host]] [/showif] [showif [temp_new_second]^temp] [Setcookie name=t_live&value=[t_current][value_2]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [math time]{[time]}-{2:00:00}[/math] GMT&path=/&domain=[GETMIMEHEADER Host]] [/showif] On 11/3-2004, at 22.25, Jesse Proudman wrote: > I've been working on this one for awhile and haven't come up with a > good way to do it. I think it's gonna have to be done w/ 2 cookies > (Live and Static) but I'm still working on it. > > I'm open to ideas as well. > > On Mar 11, 2004, at 1:20 PM, Palle Bo Nielsen wrote: > >> Hi all, >> >> I am sitting here in my warm armchair with my PowerBook on my lap >> trying to figure out how to make the "new posts since your last >> visit" -forum feature flagging mechanism. I want to try to figure it >> out in text form before I code it using WebDNA, but my mind is not >> doing very well right now ;) Because of that I am hoping that someone >> will be able to help me out here in text form (to start with). > > > >> -- > Jesse Williams-Proudman > Blue Box Development :: Custom Web Solutions > +1.206.778.8777 :: jesse@blueboxdev.com > > > ------------------------------------------------------------- > 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/ > > -- Venlig hilsen Palle B. Nielsen (PowerPalle) http://www.macnyt.dk/ ------------------------------------------------------------- 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: New since last visit, forum feature, help requested ( Palle Bo Nielsen 2004)
  2. Re: New since last visit, forum feature, help requested ( Gary Krockover 2004)
  3. Re: New since last visit, forum feature, help requested ( Jesse Proudman 2004)
  4. New since last visit, forum feature, help requested ( Palle Bo Nielsen 2004)
Hi Jesse and others, Hmm, it seems like I have found a solution... Please find the code below. Remember to set the offset value to a more realistic value that 5 sec ;) This solution is a ONE-COOKIE solution... [!] t_currentCurrent time in UTS (Unix Time Stamp format) offsetoffset in seconds (if xxxxx < t_current - offset then a new visit has begun) t_livename of cookie value_1UTS value of last page loaded value_2UTS value of last "visit" Cookie value (20 chars) - first 10 chart_current (UTS) - last 10 charLast visit value (UTS) [/!] [text show=f]t_current=[getchars start=1&end=10][cart][/getchars][/text] [text show=f]offset=5[/text] [text show=f]value_1=[getchars start=1&end=10][GETCOOKIE name=t_live][/getchars][/text] [text show=f]value_2=[getchars start=11&end=20][GETCOOKIE name=t_live][/getchars][/text] [showif [value_1]<[math][t_current]-[offset][/math]] [text show=f]temp_new_second=[value_1][/text] [Setcookie name=t_live&value=[t_current][temp_new_second]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [math time]{[time]}-{2:00:00}[/math] GMT&path=/&domain=[GETMIMEHEADER Host]] [/showif] [showif [temp_new_second]^temp] [Setcookie name=t_live&value=[t_current][value_2]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [math time]{[time]}-{2:00:00}[/math] GMT&path=/&domain=[GETMIMEHEADER Host]] [/showif] On 11/3-2004, at 22.25, Jesse Proudman wrote: > I've been working on this one for awhile and haven't come up with a > good way to do it. I think it's gonna have to be done w/ 2 cookies > (Live and Static) but I'm still working on it. > > I'm open to ideas as well. > > On Mar 11, 2004, at 1:20 PM, Palle Bo Nielsen wrote: > >> Hi all, >> >> I am sitting here in my warm armchair with my PowerBook on my lap >> trying to figure out how to make the "new posts since your last >> visit" -forum feature flagging mechanism. I want to try to figure it >> out in text form before I code it using WebDNA, but my mind is not >> doing very well right now ;) Because of that I am hoping that someone >> will be able to help me out here in text form (to start with). > > > >> -- > Jesse Williams-Proudman > Blue Box Development :: Custom Web Solutions > +1.206.778.8777 :: jesse@blueboxdev.com > > > ------------------------------------------------------------- > 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/ > > -- Venlig hilsen Palle B. Nielsen (PowerPalle) http://www.macnyt.dk/ ------------------------------------------------------------- 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/ Palle Bo Nielsen

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:

Bug? (1997) Redirect frame targets (1998) Pulling Captions from JPGs (2003) Browser Back button (2003) need some help with tcpsend (2000) Replace context problem ... (1997) displaying New products (using [date]) (1997) OOps - Diners Club card problems (1999) PCS Frames (1997) FTP and [shell] (2003) list problems (digest) (1998) page redirect in webDNA (1997) Search in 2 or more catalogs (1997) filemaker - orderfile (1997) Sort Order on a page search (1997) error in online 3.x docs - makes it impossible to read aboutfile formats (2000) AAgghh!! Help, please. SSL strikes again. (1997) [Announce]: Web server security and password protection (1997) What file? (1997) sendmail and accented characters (1998)