Tuesday, July 13, 2010

Link to certain start folder of a gallery

I see in previous post that there is a way to link to certain start pages of
a gallery. I would like to make a direct link to a certain starting point,
while have just one gallery

http://www.sitename.com/galleryPage.htm?startCategory=home
http://www.sitename.com/galleryPage.htm?startCategory=work
http://www.sitename.com/galleryPage.htm?startCategory=car

I this possible?

Answer

Yes, it's possible, in the version 1.4.2 or higher.

Assign Category name to each folder in the Gallery User Interface in
Dreamweaver.
Add this code to the end of the page with the WebStunning photo gallery:

<script type="text/javascript">
function parseGetVars() {
var ar = new Array();
var q = unescape(top.location.search.substring(1));
var pairs = q.split(/\&/);

for (var i=0;pairs[i];i++) {
var nv = pairs[i].split(/\=/);
ar[nv[0]] = nv[1];
}
return ar;
}

function startWhenReady(){
var wso = swfobject.getObjectById('WSgallery');
if(document.readyState){
if(document.readyState=="complete" && wso.GetVariable("readystate")=="ready"){
wso.JS_startCategory(stCat);
}else{
setTimeout("startWhenReady()",200);
}
}else{
if(wso && wso.GetVariable("readystate")=="ready"){
wso.JS_startCategory(stCat);
}else{
setTimeout("startWhenReady()",200);
}
}
}

var gVars = parseGetVars();
var stCat = gVars['startCategory'];
if(stCat)startWhenReady();
</script>

Friday, February 5, 2010

Photo Gallery - more than 1 page in a website that has a photo gallery

Hi There,

I have 2 separate web pages I am putting a photo gallery. I complete the 1st page and insert the photo gallery into the second page and it gives me the same file for the 1st page. If I replace the images on the 2nd page, it over-writes the first page. How do I create 2 separate web pages with unique photos for each? For instance page 1 has Gallery, page 2 has Gallery2.


Answer:


Hi,
the gallery saves all settings in two XML files in the "Gallery_files" folder (by default):
"image_list.xml" and "config.xml".

So if you have "page 1" and "page 2" in the same folder, they possibly
rewrite the same XMLs in the same "Gallery_files" folder.

In the current version of the gallery you can select any
location for gallery files.


Gallery tab => Files => Config XML Path
Gallery tab => Files => XML Image List Path

Make sure that each instance of the gallery has unique "playlist.xml" (and "config.xml").

Regards
Dmitry
webstunning.com

Friday, January 15, 2010

FLV player and playlist position

I did notice that when you put the player & the play list horizontally (side by side) in the layout, then re-update for newly added media, the player & the playlist default to stacking vertically instead of staying in previous position on dreamweaver layout page. Is this fixable?


Answer:


Yes,
you need to add styles in CSS file or in the head of your page

e.g.

<style>
#webstunning_video_player{
       float:left;
}
#webstunning_playlist{
       float:left;
}
</style>

then the player and the playlist will remain in the desired position.

Regards
Dmitry
webstunning.com