Does anyone use Simple Gallery?

I've got round it by putting the gallery in an iframe on the page...Not too keen on cheating but it validates as Transitional - reckon I should just leave it?
 
im a little lost on what the problem is?

totally crazy as i used this on a friends site ages ago, and just today i decided to finally try and finish the website so am working with it as i type.

Tell me of the problem and i will try and help.
 
http://www.yorkshirejunkies.co.uk/new/music-event-reviews-grimupnorth-may07.php

The gallery won't load but http://www.yorkshirejunkies.co.uk/new/site-gallery/grimupnorth-may07/viewer.swf displays fine.

Code:
<div id="flashcontent">
SimpleViewer requires Macromedia Flash. 
<a href="http://www.macromedia.com/go/getflashplayer/">
Get Macromedia Flash.</a> If you have Flash installed, 

<a href="http://www.yorkshirejunkies.co.uk/new/site-gallery/grimupnorth-may07/index.html?detectflash=false">click to view gallery</a>
</div>
	  	
<script type="text/javascript">  		
var fo = new SWFObject("http://www.yorkshirejunkies.co.uk/new/site-gallery/grimupnorth-may07/viewer.swf", "viewer", 
"580", "435", "7", "#181818");		  	
fo.write("flashcontent");	  	
</script>
 
seems like ahopefully a very simple problem. as far as i can tell you haven't got the xml file for the gallry so it can't load as its not being told what to load.

what files and what folders do you have in the simpleviewer folder?

I have:

folders:




  • images
  • thumbs
files:

  • photo.html (though this can be whatever you want, its the same as the code you provided already)
  • photo.xml (this agin doesn't matter on the name jsut as long as you update what points to it in photo.html to the correct name your using)
  • swfobject.???, (i actually don't know the extension of this file but its a javascript file, i don't kow what this does but you wont need to rename it or anything but its needed as far as i can see)
  • viewer.??? (again don't know the extension, just know its a flash movie file and again dont' change its name)
photo.html code -
You seem to be missing the part at the bottom which points to the xml file. have a look at yours and mine and compare what your missing.
Code:
<head>
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">	
	/* hide from ie on mac \*/
	html {
		height: 100%;
		
	}
	
	#flashcontent {
		height: 500px;
		width: 100%;

	}
	/* end hide */

	body {
		height: 100%;
		margin: 0;
		padding: 0;
			color:#ffffff;
	}
</style>

</head>


<body>
			  
	<div id="flashcontent">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="photo.html?detectflash=false">click to view gallery</a>.</div>	
	<script type="text/javascript">
		var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#787778");	
		fo.addVariable("preloaderColor", "0xffffff");
		fo.addVariable("xmlDataPath", "photo.xml");	
		fo.write("flashcontent");	
	</script>	

</body>

</html>

photo.xml code
Code:
<?xml version="1.0" encoding="UTF-8"?>
<simpleviewerGallery maxImageWidth="480" maxImageHeight="480" textColor="0xFFFFFF" frameColor="0xffffff" frameWidth="7" stagePadding="40" thumbnailColumns="3" thumbnailRows="3" navPosition="left" title="" enableRightClickOpen="true" backgroundImagePath="gallery-bg.jpg" imagePath="" thumbPath="">


<image>
	<filename>01.jpg</filename>
<caption><![CDATA[<br/><u><a href="images/01.jpg">Click here to see the full Image</a></u>]]></caption>	
</image>
<image>
	<filename>02.jpg</filename>
<caption><![CDATA[<br/><u><a href="images/02.jpg">Click here to see the full Image</a></u>]]></caption>	
</image>
<image>
	<filename>03.jpg</filename>
<caption><![CDATA[<br/><u><a href="images/03.jpg">Click here to see the full Image</a></u>]]></caption>	
</image>
<image>
	<filename>04.jpg</filename>
<caption><![CDATA[<br/><u><a href="images/04.jpg">Click here to see the full Image</a></u>]]></caption>	
</image>
<image>
	<filename>05.jpg</filename>
<caption><![CDATA[<br/><u><a href="images/05.jpg">Click here to see the full Image</a></u>]]></caption>	
</image>
<image>
	<filename>06.jpg</filename>
<caption><![CDATA[<br/><u><a href="images/06.jpg">Click here to see the full Image</a></u>]]></caption>	
</image>
<image>
	<filename>07.jpg</filename>
<caption><![CDATA[<br/><u><a href="images/07.jpg">Click here to see the full Image</a></u>]]></caption>	
</image>
<image>
	<filename>08.jpg</filename>
<caption><![CDATA[<br/><u><a href="images/08.jpg">Click here to see the full Image</a></u>]]></caption>	
</image>


</simpleviewerGallery>
 
Last edited:
Got it sorted, however to keep my gallery layout i'm going to have to save the xml file, create the new one when new images are loaded, download it, reapply the changes then upload.

Sometimes it seems it works, other times it dosen't.

Got it working at the moment like:

http://www.yorkshirejunkies.co.uk/new/music-event-reviews-grimupnorth-may07.php

Going to try and that background black - do you have to do a full size background image or can you repeat it?

Cheers.
 
Back
Top Bottom