Fullscreen VR and Gallery2

---------------------------------------------------------------------------------------------------

I have been able to add a fullscreen Flash option to my VR photography with Gallery2.

Open file: modules/core/classes/GalleryAnimationItem.Class

Add this line of code 2 different times:


(Please note you will need to rewrite some of the “quote” marks below if you copy and paste- the font in my blog does not read properly with HTML and PHP.)

document.write(\’  <param name=”allowfullscreen” value=”true” />\’);

So the code now reads:

// <![CDATA[
if (window.ActiveXObject) {
document.write(\'<object id=”animation”\’);
document.write(\’        %s\’);
document.write(\’        width=”%s”\’);
document.write(\’        height=”%s”\’);
document.write(\’        autoplay=”true”\’);
document.write(\’        ‘ .
‘pluginspage=”http://www.apple.com/quicktime/download/”\’);
document.write(\’        codebase=”http://download.macromedia.com’ .
‘/pub/shockwave/cabs/flash/swflash.cab#version=5,0,30,0″\’);
document.write(\’        ‘ .
‘classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″>\’);
document.write(\’  <param name=”allowfullscreen” value=”true” />\’);
document.write(\’  <param name=”movie” value=”%s” />\’);
document.write(\’  <param name=”quality” value=”high” />\’);
document.write(\’  <param name=”salign” value=”TL” />\’);
document.write(\’  <param name=”swliveconnect” value=”true” />\’);
document.write(\’  %s\’);
document.write(\'</object>\’);
} else {
document.write(\'<object id=”movie”\’);
document.write(\’        %s\’);
document.write(\’        type=”%s”\’);
document.write(\’        data=”%s”\’);
document.write(\’        width=”%s”\’);
document.write(\’        height=”%s”>\’);
document.write(\’  <param name=”allowfullscreen” value=”true” />\’);
   document.write(\’  <param name=”movie” value=”%s” />\’);
document.write(\’  <param name=”quality” value=”high” />\’);
document.write(\’  <param name=”salign” value=”TL” />\’);
document.write(\’  <param name=”swliveconnect” value=”true” />\’);
document.write(\’  %s\’);
document.write(\'</object>\’);
}
//]]>

Feel free to leave feedback and opinion below.

 

Comments and Thoughts

 



XHTML: You can use these tags if you like:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


 

Archives