Page 1 of 1

Splash Page Module?

Posted: Wed Mar 14, 2012 10:13 pm
by Johnnybucks
Hello,

I was wondering if there was a splash page module for CMS.

I don't want to make the splash page the default page because I only want the user to see it once a day and not every time they enter the website URL.

Is there code I can implement? Any help is appreciated!

Thanks

Re: Splash Page Module?

Posted: Thu Mar 15, 2012 12:50 am
by jmcgin51
how about just setting a 24hr cookie, and using template code on the default page to see if the cookie exists, and if it does, you automatically redirect to the real "homepage" (which in this case would be different from the default page)

Re: Splash Page Module?

Posted: Thu Mar 15, 2012 2:10 am
by Johnnybucks
Thank you for the quick reply!

That sounds like it would work, I just don't know how to code something that would do that. If you could point me the right direction it would be much appreciated :)

Re: Splash Page Module?

Posted: Thu Mar 15, 2012 2:37 am
by jmcgin51
if it were me, I would write it all in PHP and include it at the top of my default template by calling a UDT like {check_cookie}.

the pseudocode would look something like this
if (the cookie already exists)
redirect to the desired page
else
create a cookie which will expire in 24 hours (or whatever length of time you decide is appropriate)

If you want more specific help with this, PM me and we can talk.