picasagallery

NP_picasagallery.php

A picasaweb-based image gallery for Nucleus

General Plugin info
Author: omeslo
Current Version: 0.93
Download: http://www.omeslowhand.com/index.php?itemid=33&catid=2
Demo: http://www.omeslowhand.com/index.php?special=picasagallery
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?t=17210

Installing

Due to added functionality, the installation procedure has changed a bit. Please follow these steps:

1) Upload the code to your plugins directory.

2) Install the plugin in your admin section

3) Put this in your <head> section (typically head.inc) : <%plugin(picasagallery, loadjs)%>

4) Create a static page and put <%plugin(picasagallery)%> where you want the gallery to be displayed

5) Insert <%plugin(picasagallery, ,random)%> where you want the random picture (e.g. sidemenu.inc)

6) Go to the plugin options and enter any picasa username

7) Call your static page, and the gallery should be displayed

Note: If you set ‘Use authentication’ in the plugin options to ‘yes’, the first time the gallery is called, you will be directed to picasaweb, where you will have to grant access to the plugin. A permanent security token will be downloaded and stored in the database. Using this token, designated users will have access to picasaweb’s restricted albums.

And another note: If you are upgrading from an older version, you will have to uninstall the plugin, upload the latest version overwriting the older files and re-install again.

How to use the plugin

After installing, just enter any Picasaweb username in the plugin options and all associated public albums will be displayed on your webpage. All editing is done through picasaweb. They made a much better interface for that than I could ever do so this plugin is mainly aimed at displaying those pictures on your website in a nice and comprehensible manner.

This is what it’s gonna look like:

Here’s your albums overview :contributing:albumview.jpg

And here the thumbnail view. :contributing:pictureview.jpg

:contributing:pictureview2.jpg

And this is what the search results page will look like :contributing:searchresults.jpg

:contributing:searchresults2.jpg

Available SkinVars and/or TemplateVars

  • see installation

Options

well.. just have a look. :contributing:opt.jpg

Tips and Tricks

Wishlist

  • Community search; the ability so search all picasaweb users’ pictures
  • Adding (and deleting for admins) comments through the API. (edit: this cannot be done. Will have to use the nucleus commenting system)
  • One-click integration of images in blog items

Bugs

If you find any, please post a comment here: http://www.omeslowhand.com/index.php?itemid=30&catid=2

Or in the appropriate forum thread (see above)

History

  • 0.90 [06-04-2008]
    • initial version
  • 0.90a [07-04-2008]
    • (bugfix) album content not displayed when it contains only 1 picture
    • (compatibility) works with either cURL or allow_url_fopen enabled, defaults to cURL
    • (bugfix) a few minor bugfixes and enhancements
  • 0.90b [07-04-2008]
    • (bugfix) no albums displayed when only one album present
    • (bugfix) albums not displayed when renamed in picasaweb
  • 0.91 [09-04-2008]
    • (feature) pagination: number of thumbnails per page can be configured
    • (feature) picture search through the API
  • 0.92 [14-05-2008]
    • (feature) Show/hide restricted albums by userlevel
    • (feature) Image preloading
    • (feature) Added some extra configuration options
    • (general) Major code cleanup/rewrite
    • (compatibility) allow_url_fopen no longer supported, cURL libraries required
  • 0.93 [15-06-2008]
    • (feature) Show a random picture (e.g. in sidebar) from any public album
    • (feature) Added option to horizontally align thumbnails left or right
    • (feature) Admin area
    • (performance) Only load javascripts on gallery pages
    • (request) Added option to center all highslide popups in the viewport
    • (bugfix) No comments or info was shown for restricted albums
    • (bugfix) Search results show restricted pictures
    • (security) Refused deeplinking to restricted albums
 
picasagallery.txt · Last modified: 2008/06/16 00:27 by omeslo