Splash Page Module?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Johnnybucks
Forum Members
Forum Members
Posts: 10
Joined: Fri Jul 17, 2009 5:09 am

Splash Page Module?

Post 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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Splash Page Module?

Post 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)
Johnnybucks
Forum Members
Forum Members
Posts: 10
Joined: Fri Jul 17, 2009 5:09 am

Re: Splash Page Module?

Post 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 :)
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Splash Page Module?

Post 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.
Post Reply

Return to “Modules/Add-Ons”