Try using the DateDiff function rather than LT.
HTH,
Avi
At 03:45 PM 5/8/00 , you wrote:
>I'm in the process of building a set of forums for my personal site. I've got
>them pretty much ready to go but I'm running up against a wall when I try to get
>the new messages notification working. I'm looking to do something similar to
>the highlight images displayed in the Ultimate Bulletin Board. In that setup,
>when you visit the list of individual boards, it has a highlighted image next to
>the title of each if the last post date is greater than the last time you
>visited. The same holds true to the listings of threads within those boards.
>
>My forum system is setup in a semi-fusebox style, so there's a main default.cfm
>from which everything is loaded. This is the code I have in the top of that
>file:
>
><cfcookie name="visitdate" value="#CreateODBCDateTime(Now())#" expires="NEVER">
>
><cfparam name=session.visitdate default=cookie.visitdate>
>
>This way, the session.visitdate is updated only the first time the user visits
>the forums, while the cookie.visitdate is updated every time they navigate
>within the forums. This is to make it so they don't loose the highlighted
>markers just by browsing into one board and then back out to the main board
>listing.
>
>Within the display of the boards, I have this code:
>
><cfif session.visitdate LT Q_allforums.lastpost>
> <img src="/includes/go/images/forums_folder_new.gif" width="11" height="10">
><cfelse>
> <img src="/includes/go/images/forums_folder_old.gif" width="11" height="10">
></cfif>
>
>However, all the images always show up as forums_folder_old.gif even if there
>are new messages.
>
>Any suggestions? Thank you.
>
>--
>Aaron Powell
>Web Developer
>Healthwell.com - http://www.healthwell.com
-----
Avi Flax
Web Applications Developer
Words In Progress, Inc.
[EMAIL PROTECTED]
http://www.wordsinprogress.com
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.