At the time of posting, WP-SimpleViewer was on a previous version which is why the line numbers no longer match up.
Also, some internal variable names were changed so the modifications now required are as follows:
File: 'simpleviewer-seo.php'
(1) Replace line 13:
$doc->load( 'gallery.xml' );
... with:
$doc->load($gallery_url);
(1) Replace line 42:
print "<li style=\"list-style-type: none;\"><p><a href=\"$imgpath$largephoto\" target=\"_blank\"><img src=\"$imgpath$photo\" alt=\"$altcaption\" title=\"$altcaption\"/></a><br />$caption</p></li>";
... with:
print "<li style=\"list-style-type: none;\"><p><a href=\"$largephoto\" target=\"_blank\"><img src=\"$photo\" alt=\"$altcaption\" title=\"$altcaption\"/></a><br />$caption</p></li>";
File: 'wp-simpleviewer.php'
Replace lines 950-961:
return <<<EOF
<!--START SIMPLEVIEWER EMBED-->
<script type="text/javascript">
var flashvars$gallery_id = {};
flashvars$gallery_id.galleryURL = "$gallery_url";
simpleviewer.ready(function () {
simpleviewer.load("sv-container$gallery_id", "$gallery_width", "$gallery_height", "$background_color", $use_flash, flashvars$gallery_id);
});
</script>
<div id="sv-container$gallery_id"></div>
<!--END SIMPLEVIEWER EMBED-->
... with:
ob_start();
include 'simpleviewer-seo.php';
$include = ob_get_clean();
return <<<EOF
<!--START SIMPLEVIEWER EMBED-->
<script type="text/javascript">
var flashvars$gallery_id = {};
flashvars$gallery_id.galleryURL = "$gallery_url";
simpleviewer.ready(function () {
simpleviewer.load("sv-container$gallery_id", "$gallery_width", "$gallery_height", "$background_color", $use_flash, flashvars$gallery_id);
});
</script>
<div id="sv-container$gallery_id">$include</div>
<!--END SIMPLEVIEWER EMBED-->
EOF;
Apologies for not noticing this sooner and for any inconvenience caused.
I have tested this myself and it now works as expected.
Steven Speirs
SimpleViewer Support Team