Here is how I have successfully integrated the SEO script with WP-SimpleViewer.
(1) Open 'simpleviewer-seo.php' in a plain text editor
(2) Replace line 13:
$doc->load( 'gallery.xml' );
... with:
$doc->load($gallery_filename);
(3) 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>";
(4) Upload 'simpleviewer-seo.php' to your 'wp-content/plugins/wp-simpleviewer/' folder
(5) Open 'wp-content/plugins/wp-simpleviewer/wp-simpleviewer.php' in a plain text editor
(6) Replace lines 820 - 832:
return <<<EOF
<script type="text/javascript">
var flashvars$gallery_id = {};
flashvars$gallery_id.galleryURL = "$gallery_file_url";
simpleviewer.ready(function () {
simpleviewer.load("flashContent$gallery_id", "$width", "$height", "$bgcolor", $useFlash, flashvars$gallery_id);
});
</script>
<div id="flashContent$gallery_id" >SimpleViewer requires JavaScript and the Flash Player.
<a href="http://www.adobe.com/go/getflashplayer/">Get Flash.</a></div>
EOF;
... with:
ob_start();
include 'simpleviewer-seo.php';
$include = ob_get_clean();
return <<<EOF
<script type="text/javascript">
var flashvars$gallery_id = {};
flashvars$gallery_id.galleryURL = "$gallery_file_url";
simpleviewer.ready(function () {
simpleviewer.load("flashContent$gallery_id", "$width", "$height", "$bgcolor", $useFlash, flashvars$gallery_id);
});
</script>
<div id="flashContent$gallery_id" >SimpleViewer requires JavaScript and the Flash Player.
<a href="http://www.adobe.com/go/getflashplayer/">Get Flash.</a>
$include
</div>
EOF;
(7) Upload the file to the original location ('wp-content/plugins/wp-simpleviewer/wp-simpleviewer.php')
Steven Speirs
SimpleViewer Support Team