Re: [WSG] Serving Different Content to Returning Visitors

2007-07-27 Thread Designer



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

2007-07-27 Thread Daniel Kendrick
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]
***

RES: [WSG] Serving Different Content to Returning Visitors

2007-07-26 Thread SosCpdGMail
That was a big mistake... sorry.

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de SosCpdGMail
Enviada em: quinta-feira, 26 de julho de 2007 20:22
Para: wsg@webstandardsgroup.org
Assunto: RES: [WSG] Serving Different Content to Returning Visitors

Sorry, im quite new to all that, but cant you look for cached content? Ip
addresses cannot be used I think, because routers and all that, but cached
files will be sure on client machine if he don't clear cache since last
visit.

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Hassan Schroeder
Enviada em: quinta-feira, 26 de julho de 2007 21:14
Para: wsg@webstandardsgroup.org
Assunto: 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]
***



***
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

2007-07-26 Thread Seona Bellamy

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

2007-07-26 Thread Matthew Cruickshank

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

2007-07-26 Thread Hassan Schroeder

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

2007-07-26 Thread Daniel Kendrick

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]
***

[WSG] Serving Different Content to Returning Visitors

2007-07-26 Thread Daniel Kendrick

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.

Thanks for any help,

--D


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

RES: [WSG] Serving Different Content to Returning Visitors

2007-07-26 Thread SosCpdGMail
http://jeremiahgrossman.blogspot.com/2006/08/i-know-where-youve-been.html#wh
ereyoubeen

 

This sound's to be a way.

 

  _  

De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Daniel Kendrick
Enviada em: quinta-feira, 26 de julho de 2007 20:40
Para: wsg@webstandardsgroup.org
Assunto: [WSG] Serving Different Content to Returning Visitors

 

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.

Thanks for any help, 

--D



***
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: RES: [WSG] Serving Different Content to Returning Visitors

2007-07-26 Thread Hassan Schroeder

SosCpdGMail wrote:

Sorry, im quite new to all that, but cant you look for cached content? Ip
addresses cannot be used I think, because routers and all that, but cached
files will be sure on client machine if he don't clear cache since last
visit.


And you'll look for cached content how?

--
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: RES: [WSG] Serving Different Content to Returning Visitors

2007-07-26 Thread Michael Shaw

Hassan Schroeder wrote:

SosCpdGMail wrote:
Sorry, im quite new to all that, but cant you look for cached 
content? Ip
addresses cannot be used I think, because routers and all that, but 
cached

files will be sure on client machine if he don't clear cache since last
visit.


And you'll look for cached content how?

Time how long it takes to receive a large file (eg more than a few 
hundred k) with Javascript. If it is very low surely that indicates a 
very fast connection or a cache hit. I wouldn't stake my life on it but 
it might provide some indication (and annoy any users with slower 
connections.)



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RES: [WSG] Serving Different Content to Returning Visitors

2007-07-26 Thread SosCpdGMail
Sorry, im quite new to all that, but cant you look for cached content? Ip
addresses cannot be used I think, because routers and all that, but cached
files will be sure on client machine if he don't clear cache since last
visit.

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Hassan Schroeder
Enviada em: quinta-feira, 26 de julho de 2007 21:14
Para: wsg@webstandardsgroup.org
Assunto: 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]
***



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RES: RES: [WSG] Serving Different Content to Returning Visitors

2007-07-26 Thread SosCpdGMail


Your post really help to fix the problem. I'm very glad. In a very
hard way, applets can do the job. If you need a how-to, I can loose some
time in. Just ask. Any way, a better choice is already provided with use of
the history contents. A tip for you: Dream. Code. Be more intuitive.

Rafael



-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de Hassan Schroeder
Enviada em: quinta-feira, 26 de julho de 2007 23:10
Para: wsg@webstandardsgroup.org
Assunto: Re: RES: [WSG] Serving Different Content to Returning Visitors

SosCpdGMail wrote:
 Sorry, im quite new to all that, but cant you look for cached content? Ip
 addresses cannot be used I think, because routers and all that, but cached
 files will be sure on client machine if he don't clear cache since last
 visit.

And you'll look for cached content how?

-- 
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]
***



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***