Topic: SimpleViewer v2 and Picasa

hi

i have problem that that some gallery take more then 10 seconds to get open and in meantime there's no loading image or animation just empty screen with simpleviwer in the center.


why this? and how i can add loading animation or something that tell the guest to wait.

thanks

Vered

Re: SimpleViewer v2 and Picasa

Sounds like you are either trying to load large images into SimpleViewer or load images from another domain and it is taking awhile to fetch them. If the images are large I would suggest trying to reduce the file size.

SimpleViewer does have some loading animations if these do not seem to be enough you would need a copy of SimpleViewer Pro so that you had access to the API to add additional loading indications.

If you would like us to take a look at your site please post the URL of your gallery.

Mike Richards
SimpleViewer Support Team.

Re: SimpleViewer v2 and Picasa

hi

this is the first gallery http://ranm.co.il/gallery1/ and its go till gallery15

sometimes its very very slow

and no loading animation


thanks

Re: SimpleViewer v2 and Picasa

There are a few things slowing down your site. Try running it through Web Inspector or Firebug to see the causes.

- The xml.php call is slow to return. Try replacing with static XML.
- There is a lot of JS being loaded at the top of the file.
- There is a cross domain issue with attempting to load images from a different subdomain. Check here for solution: http://www.simpleviewer.net/simpleviewe … trouble_11

Felix Turner
SimpleViewer Support Team.

Re: SimpleViewer v2 and Picasa

hi again and thanks

how i can replace the xml ?

the image are on picasa

also for the cross domain ....  the images are in picasa not on my hosting.

You can be a bit more specific?

i cant give up any JS .


thanks again

Re: SimpleViewer v2 and Picasa

how i can replace the xml ?

Go to http://ranm.co.il/gallery1/xml.php in your browser, view the source, copy the xml you see into a text editor and save it as gallery.xml. Once you have done that set your embed code to load that file instead.

also for the cross domain ....  the images are in picasa not on my hosting.

Copy the following into a text editor, save it as crossdomain.xml and upload it to the same folder as your gallery.

<?xml version="1.0"?><!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="http://*.ggpht.com/" />
<allow-access-from domain="http://*.ranm.co.il/" />
</cross-domain-policy>

i cant give up any JS .

Loading a lot of  JS files in the head can slow down the load time of your site. You could try loading some of them just before your </body> tag instead.

Mike Richards
SimpleViewer Support Team.

Re: SimpleViewer v2 and Picasa

smile  smile  smile  smile

thanks u all

look now its load in 2 second.

what i did is copy the " view the source, copy the xml you see into a text editor and save it as gallery.xml"

but now i put in the xml all the pic with them name so if ill change the pic in picasa it will not show in the gallery

so how i can change this file php.xml

<?php

// Simpleviewer for Picasa Web ALbums
// get all the details on www.paulvanroekel.nl/picasawebalbums/


    $userid = 'demo';
    $album = 'demo';
    
    
    // build feed URL
     $feedURL = "http://picasaweb.google.com/data/feed/api/user/$userid/album/$album?imgmax=912";
     // $feedURL = "http://picasaweb.google.com/data/feed/api/user/$userid?kind=photo";


    // read feed into SimpleXML object
    $sxml = simplexml_load_file($feedURL);
    
    // customize your gallery
    echo "<simpleviewergallery title=\"$album\" textColor=\"FFFFFF\" galleryStyle=\"CLASSIC\" frameWidth=\"5\" thumbColumns=\"3\" thumbRows=\"3\" >\n"; 


    // iterate over entries in album
    // print each entry's title, size, dimensions, tags, and thumbnail image
    foreach ($sxml->entry as $entry) {
      $title = $entry->title;
      $summary = $entry->summary;
      
      $gphoto = $entry->children('http://schemas.google.com/photos/2007');
      $size = $gphoto->size;
      $height = $gphoto->height;
      $width = $gphoto->width;
      
      $media = $entry->children('http://search.yahoo.com/mrss/');
      $thumbnail = $media->group->thumbnail[1];
      $content = $media->group->content;
      $tags = $media->group->keywords;
  
          


        echo "<image imageURL=\"";
        // url van photo
        echo $content->attributes()->{'url'};
        echo "\" thumbURL=\"";
        // url van thumb
        echo $thumbnail->attributes()->{'url'};
        echo "\">";
        echo "<caption>";
        echo $summary ;
        echo "</caption>";
        echo "</image>";
        echo "\n";

   
        }
        

    echo "</simpleviewergallery>";

?>

to something like this gallery.xml for fliker just for my picasa web album

<?xml version="1.0" encoding="UTF-8"?>

<!-- OPTIONS SUPPORTED BY STANDARD SWF -->
<simpleviewergallery
   
   
   
    title="ויטרינות"
    enableRightClickOpen="false"
    textColor="FFFFFF"
    frameColor="FFFFFF"
    thumbPosition="LEFT"
    galleryStyle="MODERN"
    thumbColumns="3"
    thumbRows="3"
    showOpenButton="false"
    showFullscreenButton="TRUE"
    frameWidth="20"
    maxImageWidth="800"
    maxImageHeight="600"
    imagePath="images/"
    thumbPath="thumbs/"
    useFlickr="true"
    flickrUserName="demo"
    flickrTags="demo"
    languageCode="AUTO"
    languageList=""       
   
>
</simpleviewergallery>

thanks alot

Last edited by vered (2011-01-26 15:52:18)