Topic: Problem: buildgallery.php resets vaules in gallery.xml

I have searched the forum, but not found any topic related to this.

I have a problem with the thumbnail menu every time I update the gallery, gallery.xml resets most of the variables and applies default settings.

The new picture is added and displayed correctly, but the settings for
the thumbs are altered, see code below. I doesn't matter if i run buildgallery.php från IE ocg FF, the result is the same.

I use SV combined with GrayBox, but the problem is related only to SV since the problem occured before is started to use Graybox. I don't know if this could be related to the webserver, I don't know much about it besides that it's hosted by Web10 [http://web10.se/].

Thanks in advance!
Best regards,
Johan

Link:
http://wse152484.web22.talkactive.net/index.php?id=4
Click the picture with the smoke to show the SV gallery.


Code before update:
<?xml version="1.0" encoding="UTF-8" ?><simpleviewerGallery maxImageWidth="640" maxImageHeight="640" textColor="0xFFFFFF" frameColor="0xffffff" frameWidth="20" stagePadding="5" thumbnailColumns="7" thumbnailRows="1" navPosition="top" title="" enableRightClickOpen="true" backgroundImagePath="" imagePath="" thumbPath="">
    <image><filename>salladglas.jpg</filename></image>
    <image><filename>back.jpg</filename></image>
    <image><filename>sallad.jpg</filename></image>
    <image><filename>semlor.jpg</filename></image>
    <image><filename>kockrock.JPG</filename></image>
    <image><filename>jordgubbsdessert.jpg</filename></image>
    <image><filename>jordgubbar.jpg</filename></image>
    <image><filename>fisk_musslor.jpg</filename></image>
    <image><filename>carpaccio.jpg</filename></image>
    <image><filename>brodstang.jpg</filename></image>
    <image><filename>ammis.jpg</filename></image></simpleviewerGallery>

Code after update:
<?xml version="1.0" encoding="UTF-8" ?><simpleviewerGallery maxImageWidth="640" maxImageHeight="640" textColor="0xFFFFFF" frameColor="0xffffff" frameWidth="20" stagePadding="40" thumbnailColumns="3" thumbnailRows="4" navPosition="left" title="SimpleViewer Title" enableRightClickOpen="true" backgroundImagePath="" imagePath="" thumbPath="">
    <image><filename>kantarellsnitt.jpg</filename></image>
    <image><filename>salladglas.jpg</filename></image>
    <image><filename>back.jpg</filename></image>
    <image><filename>semlor.jpg</filename></image>
    <image><filename>sallad.jpg</filename></image>
    <image><filename>kockrock.JPG</filename></image>
    <image><filename>jordgubbar.jpg</filename></image>
    <image><filename>jordgubbsdessert.jpg</filename></image>
    <image><filename>fisk_musslor.jpg</filename></image>
    <image><filename>carpaccio.jpg</filename></image>
    <image><filename>brodstang.jpg</filename></image>
    <image><filename>ammis.jpg</filename></image></simpleviewerGallery>

Re: Problem: buildgallery.php resets vaules in gallery.xml

Anyone..?

Re: Problem: buildgallery.php resets vaules in gallery.xml

You have to change these settings in the code of the buildgallery.php file and not in the xml file.


P

Re: Problem: buildgallery.php resets vaules in gallery.xml

Ahh, of course, thanx P!

I guess I got confused due to the text "Edit the Build script using a text editor (e.g. NotePad, Text Edit). Set gallery options where indicated in the script. Here is a list of the XML gallery options with their descriptions." which doesn't mension the php-file... But now it's all good smile

Re: Problem: buildgallery.php resets vaules in gallery.xml

No prob jop,

Maybe you can help me with my problem:

I am using the SV Pro in combination with a mySQL and PHP site. I have managed to make an admin webpage where I can delete the image I want in different folders on the server. Problem is that the thumb of that image will not be removed. What can I do to make sure that when I delete an image, the according thumb will be deleted at the same time?

thanks in advance


P