If I understand it right, that would only show to whoever 3 times and then
not show it at all. What he is trying to do is show it 3 times to each
member and then move on.
I would create a log database for that 'message ID' and that 'member ID' and
a 'Count' for how many times it has been shown. Each time they go to a
page, do a query to see if they have seen it 3 times... Each time it's shown
it updates the counter +1. To keep the log database clean, make sure you
delete all rows with the message ID when you decide to no longer show a
message, or if a member is deleted. A time stamp might also be good to
delete any logs beyond a certain time frame. So, list all offers that
haven't been seen 3 times.
For the "new" offers you could make it easier and compare a date stamp of
when the offer was announced and when they last checked in. Chances are
they "saw" it if they had last checked in since the offer was announced.
Therefore, display all offers that were announced since they last checked
in. Though this is only really good if you want them to see just the new
offers once and only once... and hope they actually "see" the offer.
Joby Bednar
Director of Internet Design
iNEOgroup.com
http://www.ineogroup.com <http://www.ineogroup.com>
Fusing your Dreams and the Web, Together as One
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Cell: 949-283-5138
Personal Fax: 208-485-1170
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 2:34 PM
To: CF-Talk
Subject: Re: Help required
set a counter for each new offer. when user view them, update the
counter by one,
check if counter > 3, then dont show the offer.
Nick Betts wrote:
>
> I have developed a webiste where registered users can view exclusive
offers.
> The client wants these offers to only be displayed the first three times,
> therefater only 'new' offers the user has not yet seen should be
displayed.
> Has anyone any good ideas on how to do this?
>
> Regards,
> Nick.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists