Thank Rob :) ....................... Ben Nadel www.bennadel.com
-----Original Message----- From: Robert Feyerherm [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 8:38 AM To: CF-Talk Subject: RE: CFIdea: how to implement I think Ben's idea is great. I also think it might be cool if when you did return that page you returned a gif or jpeg graphic that was like a smiley face and some text that said, "X Points Awarded" or something like that. -Robert -----Original Message----- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 7:31 AM To: CF-Talk Subject: RE: CFIdea: how to implement I say go really really simple. At the bottom of the article page include some javascript like this: <script type="text/javascript"> setTimeout( // Function to get called after 60 seconds. function(){ var imgRequest = new Image(); imgRequest.src = "reward_user.cfm?id=#...#&article_id=#...#&key=#Hash( SESSION.CFID & SESSION.CFTOKEN & id & article_id )#" }, // Run after 60 seconds 60 * 1000 ); </script> This would, after 60 seconds, create an image and then try to set it's source to a CFM page. This would in essence call that CFM page. The image would break (or you could return a gif based on CFContent). The reward_user.cfm page would reward the user based on the user id (id), the article id (article_id) and a key (the HASH value). The HASH value is meant to help stop anyone else from guessing a reward URL. Then on the reward_user.cfm page, you would want to make sure you never credited someone twice I suppose. ......................... Ben Nadel www.bennadel.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 11:03 PM To: CF-Talk Subject: CFIdea: how to implement I have a CFidea and I wanted to seek advice on the best way to implement it. I'm concerned that this idea will be taxing on my shared web hosting server. After buildinig sites for employors and contracts, I've finally built a site for myself. My site is a news and downloadable magazine (which I sell for $9.95/yr) THE IDEA On my site(s), I posts related stories from within my industry. I want to reward my readers and build loyalty. I want to reward my readers for each story they read with X point(s). As long as they stay on the page for more than 10-15 (?) seconds they will be rewarded. I want to track this to avoid users from just clicking through stories to get points. Once they accumulate x number of points, they will receive one of the four issues for free. If they collect enough points, they can get an entire year for free and earn additional issues beyond their first year or give their points to friends or co-workers. When visitors reads stories from my site, my google ads are displayed which makes me money. I also want to convey to potential advertisers that our we reward our reader base. No other news site within this industry does this. THE CODE The reader signs up by providing only their e-mail address and confirm their e-mail address through an automated reply from my site with a confirmation link they must click on. As an option if they want to earn reward points, I ask them to sign in with just their e-mail address to initiate and track their points, then get the current time with #CreateODBCDateTime(now())# and store it as a session variable. When they click and go to another page on the site, even if it's not a story, capture the #CreateODBCDateTime(now())# again and compare the times and update their profile with X point(s) if the time difference meets my x seconds per page criteria. If someone just rapidly clicks from story to story to accumalate points, the points will not be counted. If they like the site and decide to become a loyal reader, then they will receive these additonal benefits and be rewarded for their loyalty. Thoughts on the coding approach? Thanks in advance. D- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250589 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4