Topic: Need advice on conversion

I have been using the free Simpleviewer. Purchased Pro to support multi-line captions.

The existing code is, embedded in a more complex web page, is:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="760" height="617" align="middle">
  <param name="movie" value="viewer.swf">
  <param name="quality" value="high"><param name="SCALE" value="noborder">
  <param name="wmode" value="transparent">
  <embed src="viewer.swf" width="760" height="617" align="middle" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" scale="noborder" wmode="transparent"></embed>

The equivalent for Pro seems to be:

    <script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
    <script type="text/javascript">
    jQuery(document).ready(function () {
        SV.simpleviewer.load('sv-container', '100%', '100%', '222222', true);
    });
    </script>
    <div id="sv-container"></div>

Totally different way of launching the viewer. I am not sure how to translate the old to the new. Can someone provide some guidance?

Re: Need advice on conversion

Translating the old code into new code, you'd have:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
params={};
params.quality="high";
params.scale="noborder";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "760", "617", "transparent", true, null, params);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

(You may not need the 'quality' and 'scale' params but I've included them as they were in your original code.)

In order to update the gallery from the old version (which uses only 1 SWF file) to the current version (which requires several files in order to offer Universal Playback for mobile devices and browsers which do not have Adobe Flash Player installed), open up the existing gallery in svBuilder-Pro and resave the gallery on the 'Publish' screen.
Then, copy the entire contents of your SimpleViewer gallery folder into the folder that contains your HTML page.

The SimpleViewer Embedding Guide can be found here: http://simpleviewer.net/simpleviewer/su … dding.html
Instructions for updating an existing SimpleViewer gallery can be found here: http://simpleviewer.net/simpleviewer/pr … grade.html

Steven Speirs
SimpleViewer Support Team.

Re: Need advice on conversion

Thanks for the help. Got it working. Still needs a bit of tweaking. What controls the width of the gray box around the images? I do not see an option that seems to do that.

My existing page has this:

<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

Is that still necessary?

Re: Need advice on conversion

You can change the frame width of the main images using frameWidth
You can disable the frame by setting imageFrameStyle="NONE"
http://simpleviewer.net/simpleviewer/pr … #mainimage
Options can be found in svBuilder-Pro under 'Customize -> Standard' (Frame Width) and 'Customise -> Main Image' (Image Frame Style).

You can do likewise for the thumbnails with thumbFrameWidth and thumbFrameStyle.
http://simpleviewer.net/simpleviewer/pr … tml#thumbs
('Customize -> Thumbnails' in svBuilder-Pro.)

The script line you posted is not required for (or part of) SimpleViewer.

Steven Speirs
SimpleViewer Support Team.

Re: Need advice on conversion

Again, thanks for the information. Very helpful.

One other question: when I use svBuilder-Pro, it rebuilds the thumbnails. Is there any way to prevent that? I prefer my own cropping to that done by any automated process.

Re: Need advice on conversion

Not that I know of.  The easiest thing to do (being that you are creating your own thumbnails anyway) would be to just replace the 'thumbs' folder after svBuilder has finished saving the gallery.

Steven Speirs
SimpleViewer Support Team.