splash/popup prior to initial umbraco site load Options
jHodgkinson
Posted: Thursday, May 22, 2008 4:01:50 AM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
has anyone done anything like this before or have ideas on how to do this? i.e. httphandler and/or multiple default files in IIS (exclude initial splash from umbraco httphandler and then redirect after initial display), etc... just thinking out loud here, previous ideas may be wrong approach...

many thanks in advance...
drobar
Posted: Thursday, May 22, 2008 4:32:19 AM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,698
Location: KY, USA
Just thinking out loud here myself...

Did you want to have the splash for website visitors? Or when people log into the umbraco UI?

Anyway... a few late night ideas...

What if you were to set default.aspx to be a lower priority in IIS's "default documents" list than, say, myloader.aspx? In your 'myloader.aspx' file, you could check to see who the referrer was. If it is unset or from somewhere other than your site, show your splash. Otherwise, send them to the default.aspx page directly so the splash is only shown once.

Another possibility might be to add some code to your site's home page to do something similar. Back in the old days of full-page flash intros to websites you had to figure out a way to know if you should show the flash or not. There were some pretty common ways to handle it. Maybe they would be resurrected for your use?

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
jHodgkinson
Posted: Thursday, May 22, 2008 5:02:09 AM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
Doug - that's kind of along the lines of what I was initially thinking. I was also thinking possibly storing a boolean flag/value in session of whether the user had viewed the initial default page or not and then redirect to the default page (and/or include skip intro button that would also trigger the session value to persist). Also maybe write some javascript to re-size and fade in/out the intro splash as well...

I was also thinking of doing some type of http handler that would also check the session flag status and either load the splash.aspx or default.aspx.

Another thought was to create some type of macro where you could specify your splash page via content picker, drop it in the homepage (or any other page per say), session flag detection would occur and then either redirect to splash (ending the context response) or if boolean flag exists, do nothing and load the page.. that way you never would have to touch IIS and could easily add/remove splashes via the CMS...

I think I like the macro approach. Does that sound feasible?
drobar
Posted: Thursday, May 22, 2008 4:19:16 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,698
Location: KY, USA
Yeah, the macro on the home page is the way to go. Set a cookie or session variable so people don't get annoyed and you've got is solved.

(funny how a little sleep makes one's mind clearer!)

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
jHodgkinson
Posted: Tuesday, May 27, 2008 5:02:21 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
I believe I have an initial variant of this working... I ended up spliting the functionality into two macros: Dropin Splash, Display Splash.

the "Dropin Splash" macro is added to the homepage (or whatever page you want the splash detection added). You then can set the splash node, session id (in case multiple splashes/instances running through site), whether or not you only want the splash displayed once or every time the user visits the page during the user session) and also allow the ability to allow search crawlers/bots/etc to bypass the splash in order to not interfere with proper search engine optimization (SEO) and the indexing of the page:



the "Display Flash" macro is added to the actual page you want used as the splash page. From this page you can set the homepage node (or whatever page you want to redirect to after the user clicks the skip/next button), button text, button css class). The homepage node logic was added in case a user randomly stubbles upon the splash page and then clicks on the skip/next button - ensures/forces final redirect location..




so basically initial request to homepage (or whatever page you have the splash dropin logic added) redirects to splash page:




and once the user clicks button on splash, page is flagged and homepage is now viewable (depending on view once property):



jHodgkinson
Posted: Tuesday, May 27, 2008 7:17:41 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
added SEO-friendly feature to above logic/macros...
fed
Posted: Wednesday, May 28, 2008 2:21:13 AM

Rank: Aficionado

Joined: 3/30/2008
Posts: 109
Location: Sweden
Great work, can you provide us with a package?
jHodgkinson
Posted: Wednesday, May 28, 2008 3:29:13 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
I also added the ability to use an image button as well as the standard button. Just check "use Image Button" and then specify an image to use from the mediapicker...





I can't promise how long I'll have this available but below is a link to the package. If you do use this (or anyone else), please let me know if you run into any issues or problems or have suggestions on making this better. Many thanks!

http://www.ncbar.org/download/snaps/splash/Umbraco_Splash_1.0.zip


fed
Posted: Thursday, May 29, 2008 11:56:23 AM

Rank: Aficionado

Joined: 3/30/2008
Posts: 109
Location: Sweden
Great work, will try it out as soon as possible!
jHodgkinson
Posted: Thursday, May 29, 2008 4:14:59 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
I also have another variation where you can specify the browser window width/height size for the splash screen - it resizes for the splash and then reverts back to the browser original sizes on redirect out of the splash page... kind of a cheesy way to emulate a popup effect... not sure if I like this method yet or not...
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.