Page 1 of 1

disabled html page - output??

Posted: 04 Mar 2012, 17:22
by paraf
Hi there..

i was just wondering if it's possible to set up a page which is shown up, when the html-gallery ist disabled. if i surf to my site with my iphone - i get a white blank page.. how can i put there some text - like - please enable flash to view this page.

thanks in advance,

tobias

Re: disabled html page - output??

Posted: 05 Mar 2012, 05:38
by Nick
Thanks for the suggestion, good point. Please download imaegevuex27.zip again, and update the following files:

/iv-includes/common.inc.php
/iv-includes/templates/index.gallery.phtml

Re: disabled html page - output??

Posted: 05 Mar 2012, 05:58
by paraf
all right,

thanks a lot for the fast help,
does it works fine with the powerpack installed
or do i have to change something inside the code?

all the best,
tobias

Re: disabled html page - output??

Posted: 05 Mar 2012, 06:25
by Nick
Should work, but if anything, you can patch files manually.

iv-includes/templates/index.gallery.phtml
Find:
Code
swfobject.embedSWF("<?php echo htmlspecialchars(IV_PATH); ?>imagevue2.swf", "imagevue", "100%", "100%", "8.0.0", "<?php echo htmlspecialchars(IV_PATH); ?>expressInstall.swf", flashVars, params, attributes);
Replace with:
Code
if (<?php echo (intval(IS_IPHONE)) ?>) { $('#na').text('Sorry, HTML gallery is disabled, you will need Flash player installed to view this gallery.'); }
else { swfobject.embedSWF("<?php echo htmlspecialchars(IV_PATH); ?>imagevue2.swf", "imagevue", "100%", "100%", "8.0.0", "<?php echo htmlspecialchars(IV_PATH); ?>expressInstall.swf", flashVars, params, attributes); }
/iv-includes/common.inc.php
Code
define('IS_IPHONE',
false !== stripos($_SERVER['HTTP_USER_AGENT'], 'ipad')
|| false !== stripos($_SERVER['HTTP_USER_AGENT'], 'iphone')
|| false !== stripos($_SERVER['HTTP_USER_AGENT'], 'ipod')
);

Re: disabled html page - output??

Posted: 05 Mar 2012, 08:56
by paraf
great...

works good ;-)

Re: disabled html page - output??

Posted: 06 Mar 2012, 04:45
by paraf
a last question:
what shows up, when a browser with no flash opens the site?