Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6365673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:19:22+00:00 2026-05-25T00:19:22+00:00

I’m using the jQuery EmbedPicasaGallery plugin on my website. Everything is working fine, except

  • 0

I’m using the jQuery EmbedPicasaGallery plugin on my website. Everything is working fine, except I need the ALBUM DESCRIPTION and this plugin gets the TITLE, but not the DESCRIPTION.

I don’t know how to configure the plugin to label the albums with the album description, and
I’m not a programmer so I’m not sure how to change the code if that is what is needed.

I really hope you can help me with an example configuration or something like that.
Thanks for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:19:22+00:00Added an answer on May 25, 2026 at 12:19 am

    It doesn’t appear that the JQuery EmbedPicasaGallery plugin natively supports putting the Picasa album description under the album image at this time.

    However, if you are using the most recent version (1.0.474), and you make a local copy you can adjust the code as follows to do what you need:


    First: Patch jquery.EmbedPicasaGallery.js with these changes:

    --- jquery.EmbedPicasaGallery.js    2011-08-31 10:48:22.424194969 -0400
    +++ jquery.EmbedPicasaGallery.new.js    2011-09-13 20:40:34.785261085 -0400
    @@ -103,6 +103,14 @@
                 opts // add options
             );
    
    +        function callbackWithInfo(opts,callback,idx,info) {
    +            if (opts[callback] &&
    +                $.isArray(opts[callback]) &&
    +                $.isFunction(opts[callback][idx])) {
    +              opts[callback][idx](info);
    +            }
    +        }
    +
             function showOverview() {
                 var $this,
                     meta_opts,
    @@ -129,8 +137,9 @@
    
    
                 function appendImage(i,item){
    -                var title,$div,$img;
    +                var title,$div,$img,desc;
                     title = item.media$group.media$title.$t;
    +                desc = item.media$group.media$description.$t;
                     if (title.match(meta_opts.matcher)){
                         albumCount++;
                         $img = $('<img/>')
    @@ -145,11 +154,22 @@
                             })
                             .click(function () {
                                $album_list.hide();
    -                           showAlbum($this,meta_opts,item.gphoto$id.$t,title,item.gphoto$numphotos.$t);
    +                           showAlbum($this,meta_opts,item.gphoto$id.$t,title,item.gphoto$numphotos.$t,desc);
                             })
                             .hover(
    -                            function () { $(this).css("cursor","pointer")},
    -                            function () { $(this).css("cursor","default")}
    +                            function () {
    +                                $(this).css("cursor","pointer");
    +                                callbackWithInfo(meta_opts,'album_hover',0, {
    +                                    title: title,
    +                                    photoCount: item.gphoto$numphotos.$t,
    +                                    description: desc
    +                                });
    +                                $(this).css("cursor","pointer")
    +                            },
    +                            function () {
    +                                $(this).css("cursor","default");
    +                                callbackWithInfo(meta_opts,'album_hover',1,{});
    +                            }
                             )
                             .append( $img )
                             .append(
    @@ -209,10 +229,16 @@
                         + '&alt=json-in-script&thumbsize=' + meta_opts.size + 'c&callback=?',
                         renderAlbumList
                    );
    -           }
    +            }
             };
    
    -        function showAlbum($this,meta_opts,album,title,photoCount){
    +        function showAlbum($this,meta_opts,album,title,photoCount,desc){
    +            callbackWithInfo(meta_opts,'album_toggle',0,{
    +                title: title,
    +                photoCount: photoCount,
    +                description: desc
    +            });
    +
                 if ( Cache[album] ){
                    Cache[album].show();
                    return;
    @@ -266,7 +292,10 @@
    
                 if (Cache.__overview && !meta_opts.hide_back){
                     $album.append(makeButton(meta_opts.msg_back)
    -                    .click(function(){$album.hide();showOverview()})
    +                    .click(function(){
    +                        callbackWithInfo(meta_opts,'album_toggle',1,{});
    +                        $album.hide();
    +                        showOverview()})
                     );
                 }
                 $this.prepend($album);
    

    This adds two new options to the jQuery.EmbedPicasaGallery.js plugin:

    album_toggle

    • An array of two functions to act as callbacks when an album is opened and closed.
    • Active when a user selects an album from the album list.
    • The first function is called on album open with the album information.
    • The first function is passed an object with the following properties:
      • title
      • photoCount
      • description
    • The second function is called on an album close.

    album_hover

    • An array of two functions to act as callbacks when an album is hovered over.
    • Active when a user is hovering the mouse over an album in the album list.
    • The first function is called when the mouse is hovering over the album image.
    • The first function is passed an object with the following properties:
      • title
      • photoCount
      • description
    • The second function is called when the mouse stops hovering over the album image.

    Next: Initialize the jquery.EmbedPicasaGallery plugin and provide an implementation for each of these callback function options in order to update your info div with the album information.

    Here is an example:

     $(function (){
        var $info = $('#info');
    
        function showInfo(info) {
            $info.html(info.title + " (" + info.photoCount + " photos) " + info.description).fadeIn('slow');
        }
    
        function hideInfo() {
            $info.hide().empty();
        }
    
        //This is the code you would change to use your own gallery,
        //instead of this random public one, see note below.
    
        jQuery("#pics").EmbedPicasaGallery('104892222647195875709', {
            matcher: /(neko\/lepestok_sakuri|нэко \/ котята)/,
            show_more: 20,
            loading_animation: 'css/loading.gif',
            album_title_tag: '<h3/>',
            album_hover: [showInfo,hideInfo],
            album_toggle: [showInfo,hideInfo]
        });
    });
    

    I’ve posted a working example at this jsfiddle page. In it you will see the patched code for jQuery.EmbedPicasaGallery.js, followed by initialization code (you will need to scroll the javascript section to see the initialization code). The initialization code is using a public gallery in which two of the albums had descriptions (This is not my gallery, but one I found on the featured pictures page). If you select an album, the album should display with 15 pictures and the description under the pictures.

    Note:

    At the bottom of the JavaScript panel in the jsfiddle, if you scroll down, you will see this code:

    jQuery("#pics").EmbedPicasaGallery('910489222264719587570', {
        matcher: /(neko\/lepestok_sakuri|нэко \/ котята)/,
        show_more: 20,
        loading_animation: 'css/loading.gif',
        album_title_tag: '<h3/>',
        album_hover: [showInfo,hideInfo],
        album_toggle: [showInfo,hideInfo]
    });
    

    If you replace 104892222647195875709 with your picasa userid, and remove the matcher line, you should see your public Picasa galleries after you click the Run button.

    For example, if your Picasa userid is fecapeluda:

    jQuery("#pics").EmbedPicasaGallery('fecapeluda', {
        show_more: 20,
        loading_animation: 'css/loading.gif',
        album_title_tag: '<h3/>',
        album_hover: [showInfo,hideInfo],
        album_toggle: [showInfo,hideInfo]
    });
    

    Additionally, I’ve provided the patched code as a GitHub gist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have thousands of HTML files to process using Groovy/Java and I need to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.