Topic: Change mobile device look to desktop look

Is there any way to change something in the code to display gallery on mobile device (android phone) the same way as on desktop?

Re: Change mobile device look to desktop look

No. The 'desktop' version of SimpleViewer (the non-Mobile version) requires the full version of Adobe Flash Player which is not available on most mobile devices.
As long as the useFlash Embed Code Parameter is set to 'true' (select the 'Use Flash' checkbox in svBuilder-Pro's 'Customize -> Embed Options' section), SimpleViewer will display the gallery using the Flash Player where possible, falling back to the Mobile Player version where Adobe Flash Player is not available (ie. on mobile devices and in browsers which do not have Adobe Flash Player installed and enabled).

Steven Speirs
SimpleViewer Support Team.

Re: Change mobile device look to desktop look

Hello Steven,

My SimpleViewer Gallery has never worked on mobile devices - not even Android which should support Flash. I am using SV v. 2.3.1 Is this the same issue you are answering with this post? Is there a solution or do I need to look for a different slide show option? Here is an example of one of my pages:

http://art925.com/commissions.html

Thank you,
Naomi

Re: Change mobile device look to desktop look

@naomi

As far as I am aware, the Android version of Adobe Flash Player is not sufficient to display the Flash Player version of a SimpleViewer gallery. However, the gallery should still be displayed by the Mobile Player.

In your gallery's embedding code, you use the following lines (hard-coding the 'www' subdomain).

<script type="text/javascript" src="http://www.art925.com/commissions/svcore/js/simpleviewer.js"></script>
flashvars.baseURL = "http://www.art925.com/commissions/";

... but you quoted your web site address without the 'www' subdomain (http://art925.com/commissions.html).

The Mobile Player (HTML) version of the gallery requires that all the gallery files are on the same domain or subdomain as the web page containing the gallery's JavaScript embedding code. This is due to the same-origin policy.

If you go to your web site via http://www.art925.com/commissions.html (i.e. using the 'www' subdomain), then you should see the gallery displayed on your Android device.

A simple solution would be to use relative paths (rather than absolute paths) in your gallery's embedding code and the gallery will then be displayed on both http://art925.com/ and http://www.art925.com/
Try the following:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="/commissions/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
    var flashvars = {};
    flashvars.baseURL = "/commissions/";
    simpleviewer.ready(function () {
        simpleviewer.load("sv-container", "1200", "700", "666666", true, flashvars);
    });
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

The leading slash in the code above denotes your root directory.

If you are looking for a more configurable gallery for mobile devices, then you might like to take a look at another one of our image viewers: Juicebox. Juicebox is a HTML 5 image viewer and does not use or rely on Adobe Flash at all.
For more information about the differences between SimpleViewer and Juicebox, please see this SimpleViewer news article.

Steven Speirs
SimpleViewer Support Team.

Re: Change mobile device look to desktop look

Hello Steven,

Thank you for pointing out the www. issue. I will see about fixing that.

If I instead decide to go with Juicebox, is there an easy seamless way to convert from SV2, or would I have to create all of the files from scratch? I remember struggling for weeks to get SV going and I don't look forward to changing it again.

Naomi

Re: Change mobile device look to desktop look

If I instead decide to go with Juicebox, is there an easy seamless way to convert from SV2, or would I have to create all of the files from scratch?

You can easily convert SimpleViewer galleries to Juicebox galleries by following the instructions here.
You can download Juicebox-Lite (the free version) from here. It comes with JuiceboxBuilder-Lite and you can use this to convert your SimpleViewer-Pro galleries to Juicebox-Lite (to see how the process works).
(Juicebox-Pro comes with JuiceboxBuilder-Pro and this will convert SimpleViewer-Pro galleries into Juicebox-Pro galleries.)

Steven Speirs
SimpleViewer Support Team.