Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-01-12 13:53:47

paxrex33
Member
Registered: 2007-10-25
Posts: 15

How to detect if a page was already visited

I have an interesting issue here.
My client want an animation to be shawn to the user only the first time he visits the main page of the site.
If the user visits some other section and comes back to the main page the animation should not be shown.

Does anyone know how to do it?

Offline

#2 2011-01-12 13:57:21

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: How to detect if a page was already visited

Set a cookie. This tip shows you one way.


Code is topiary

Offline

#3 2011-01-12 17:53:06

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: How to detect if a page was already visited

And another example here


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB