Topic: How to disable mobile?
I'm not liking the layout for the mobile version of SV. What embed code do I need to use to disable it? I've already searched everywhere for the solution but couldn't find it.
Thanks!
You are not logged in. Please login or register.
SimpleViewer Forum → SimpleViewer-Pro v2 → How to disable mobile?
I'm not liking the layout for the mobile version of SV. What embed code do I need to use to disable it? I've already searched everywhere for the solution but couldn't find it.
Thanks!
If don't want to use the mobile non-flash gallery get a copy the simpleviewer.swf from the svcore/swf folder and use the following embed code.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "gallery.xml";
var params = {};
params.bgcolor = "222222";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("simpleviewer.swf", "flashContent", "800", "600", "9.0.124", false, flashvars, params);
</script>
Thanks Mike.
I'm using the embed code that uses a baseURL instead of the XML. Here's my original code:
<script type="text/javascript" src="http://www.theimagewell.com/blog/wp-content/gallery/weddings/svcore/js/simpleviewer.js"></script> <script type="text/javascript"> var flashvars = {}; flashvars.baseURL = "http://www.theimagewell.com/blog/wp-content/gallery/weddings/"; jQuery(document).ready(function () { SV.simpleviewer.load("sv-container", "870", "390", "transparent", true, flashvars); }); </script> <div id="sv-container"></div>
It's embedded in a Wordpress header.php file, which is why I needed the flashvars.baseURL. Also, I have several of them loading depending on what category the page is.
So what would my code look like with the simpleviewer.swf called out instead? I tried modifying the code with what you suggested but the page came up blank in my browser.
Also, the simpleviewer.swf file is here: http://www.theimagewell.com/blog/wp-con … viewer.swf
Is that the right file? It's the one that was generated after using svBuilder to create the gallery.
Never mind! I got the right coding. I was missing a line. :)
SimpleViewer Forum → SimpleViewer-Pro v2 → How to disable mobile?
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.