Re: [WSG] Serving Different Content to Returning Visitors
Daniel Kendrick wrote: I am curious if there is a way to serve up different pages to returning visitors so its different than that of a first time visitor. If PHP is an option, you can produce a different 'effect' by having an array and randomly selecting the content. At it's simplest level this can just be an image, like this: ?php $location = array ( array(location='Treyarnon Bay', image='treyarnon.jpg'), array(location='Trevose Head', image='trevose.jpg'), array(location='Padstow', image='padstow.jpg'), array(location='Constantine bay', image='constantine.jpg'), array(location='Showery Tor', image='showerytor.jpg'), array(location='Bedruthan', image='bedruthan.jpg'), array(location='Treyarnon Dusk', image='treyarnondusk.jpg'), array(location='Carnewas', image='carnewas.jpg'), ); $numlocations=sizeof($location); $row = (rand(0,($numlocations-1))); $num=$row+1; echo img src=\openingpage/graphics/.$location[$row][image] .\ alt=\\ /p.$location[$row][location]./p; ? Or you can go completely over the top and have the array consisting of as many 'pages' as you like, selecting randomly as above. You can do the latter by linking to pages, by changing the CSS, etc etc. It's not perfect of course, but it doesn't use cookies, it doesn't need JS, it's simple, and it's robust. HTH, -- Bob www.gwelanmor-internet.co.uk *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] Serving Different Content to Returning Visitors
Huh... I had considered using PHP for something similar. I honestly wouldnt have thought to use it like that. I appreciate it you have given me a great idea. If it works ill post my results :) --D On 7/27/07, Designer [EMAIL PROTECTED] wrote: Daniel Kendrick wrote: I am curious if there is a way to serve up different pages to returning visitors so its different than that of a first time visitor. If PHP is an option, you can produce a different 'effect' by having an array and randomly selecting the content. At it's simplest level this can just be an image, like this: ?php $location = array ( array(location='Treyarnon Bay', image='treyarnon.jpg'), array(location='Trevose Head', image='trevose.jpg'), array(location='Padstow', image='padstow.jpg'), array(location='Constantine bay', image='constantine.jpg'), array(location='Showery Tor', image='showerytor.jpg'), array(location='Bedruthan', image='bedruthan.jpg'), array(location='Treyarnon Dusk', image='treyarnondusk.jpg'), array(location='Carnewas', image='carnewas.jpg'), ); $numlocations=sizeof($location); $row = (rand(0,($numlocations-1))); $num=$row+1; echo img src=\openingpage/graphics/.$location[$row][image] .\ alt=\\ /p.$location[$row][location]./p; ? Or you can go completely over the top and have the array consisting of as many 'pages' as you like, selecting randomly as above. You can do the latter by linking to pages, by changing the CSS, etc etc. It's not perfect of course, but it doesn't use cookies, it doesn't need JS, it's simple, and it's robust. HTH, -- Bob www.gwelanmor-internet.co.uk *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] Serving Different Content to Returning Visitors
On 27/07/07, Daniel Kendrick [EMAIL PROTECTED] wrote: I am curious if there is a way to serve up different pages to returning visitors so its different than that of a first time visitor. I would like to avoid cookies all together. But if I must I must. I'm assuming you're talking about immediate page content, as opposed to allowing visitors to log in? I can't think of any reliable way of doing this without cookies, and even that's not fail-safe since some people have their system set to not accept cookies or to delete them immediately on browser close. Cheers, Seona. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] Serving Different Content to Returning Visitors
Daniel Kendrick wrote: I would like to avoid cookies all together. But if I must I must. You'll need cookies. (well you could sort of determine new vistors by IP address but only in a way that wouldn't be as reliable -- there are many cases of NAT users sharing a single IP, or with AOL users having their IP change while browsing and you couldn't detect this). .Matthew Cruickshank http://holloway.co.nz/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] Serving Different Content to Returning Visitors
Daniel Kendrick wrote: I am curious if there is a way to serve up different pages to returning visitors so its different than that of a first time visitor. Sure. :-) I would like to avoid cookies all together. But if I must I must. The only alternative to cookies is to force the user to authenticate to your application, after which -- if you don't want to use a session cookie -- you'll have to do url rewriting. -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] Serving Different Content to Returning Visitors
Yeah I didnt think so. I knew Id be baking cookies I just was wondering about a cookieless way or not. sigh Alright continuing as planned. --D On 7/26/07, Matthew Cruickshank [EMAIL PROTECTED] wrote: Daniel Kendrick wrote: I would like to avoid cookies all together. But if I must I must. You'll need cookies. (well you could sort of determine new vistors by IP address but only in a way that wouldn't be as reliable -- there are many cases of NAT users sharing a single IP, or with AOL users having their IP change while browsing and you couldn't detect this). .Matthew Cruickshank http://holloway.co.nz/ *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***