Search…

X3 Photo Gallery Support Forums

Search…
 
paraf
Topic Author
Posts: 18
Joined: 03 Nov 2009, 11:44

disabled html page - output??

04 Mar 2012, 17:22

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
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: disabled html page - output??

05 Mar 2012, 05:38

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
firedev.com
 
paraf
Topic Author
Posts: 18
Joined: 03 Nov 2009, 11:44

Re: disabled html page - output??

05 Mar 2012, 05:58

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
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: disabled html page - output??

05 Mar 2012, 06:25

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')
);
firedev.com
 
paraf
Topic Author
Posts: 18
Joined: 03 Nov 2009, 11:44

Re: disabled html page - output??

05 Mar 2012, 08:56

great...

works good ;-)
 
paraf
Topic Author
Posts: 18
Joined: 03 Nov 2009, 11:44

Re: disabled html page - output??

06 Mar 2012, 04:45

a last question:
what shows up, when a browser with no flash opens the site?