#387 A different way to view individual media - Lightbox-Album

mySQL Version
open
nobody
5
2007-05-13
2007-05-13
Brian Holland
No

About 2 months ago I said I was working on a different way to view individual media, incorporating the lightbox_plus technology into a PGV module.

With many thanks to Nigel [nigelo] for enormous help, and patience, we have arrived with a first pass.

A new "Album" tab has been created for the indi page.
When not logged in, and if not the Admin, the Album tab replaces the Media tab.
If Admin, both Album and Media tabs are available.

Essentially the media is collected and split into four rows of thumbnails (Photo, Document, Census, and Other)

The media is sorted based upon the gedrec "TYPE" setting (details in the album_readme)
Any media with no "TYPE" goes into the "Other" row, as well as any media (PDF files, and audio and video TYPES) which cannot be handled by "lightbox".

Rows Photo, Document, and Census use the lightbox viewer, and the Other row uses the normal popup display window of PGV.

3 core files have been modified (individual.php, individual_ctrl.php, and functions_print_facts.php)

It has been tested only on 4.1 beta 4, and 4.1 SVN, so I have provided both quick and advanced installations, depending on the version you have.

It will not work with PGV 3.3.8 (sorry) and may need additional hacking for 4.0 (I will work on 4.0 depending on the release of 4.1 stable)

Try before download?

http://www.windmillway.f2s.com/genealogy/individual.php?tab=7&pid=I7

It has been tested with sites with multiple gedcoms.

All files and installation instructions are in the
Album V1-00c.zip

Brian Holland

Discussion

  • Thomas52
    Thomas52
    2007-05-14

    Logged In: YES
    user_id=1447380
    Originator: NO

    If anyone trys it on 4.0.1, let me know how much hacking it will take.

     
  • Brian Holland
    Brian Holland
    2007-05-15

    Logged In: YES
    user_id=1712962
    Originator: YES

    I have updated the files, and all on PGV 4.1 should now use V1-00d.zip ... V1-00c.zip is now superceded (problems with certain web servers)

    I will be working on PGV 4.0 files today, and will post another update when ready
    File Added: Album V1-00d.zip

     
  • Brian Holland
    Brian Holland
    2007-05-18

    Logged In: YES
    user_id=1712962
    Originator: YES

    Now have support for 4.0.x, as well as 4.1

    I have also split out the quick and advanced install instructions
    to avoid confusion. (V1-00e.zip)

    I have updated the files, and all on PGV 4.0.x or PGV 4.1 should now use V1-00e.zip ...
    V1-00d.zip is now superceded

    File Added: Album V1-00e.zip

     
  • Brian Holland
    Brian Holland
    2007-05-18

    Logged In: YES
    user_id=1712962
    Originator: YES

    IMPORTANT NOTE FOR 4.0.x version

    I found a potential error with 4.0.x if you have googlemaps installed.

    Make sure BEFORE installing Lightbox, that a file called
    defaultconfig.php exists in the modules/googlemap directory
    If it does not, COPY config.php from the same directory
    and rename it to defaultconfig.php.
    You should now have 2 files (with same info)
    One called defaultconfig.php and the other config.php
    Both files are required for lightbox to work
    4.1.x already has both files.

    The installation instructions now reflect this.

    Brian
    File Added: Album V1-00e.zip

     
  • Brian Holland
    Brian Holland
    2007-05-19

     
    Attachments
  • Brian Holland
    Brian Holland
    2007-05-19

    Logged In: YES
    user_id=1712962
    Originator: YES

    A few of you have asked me to "Lightbox" files in the "OTHER" row which are obviously not audio, nor pdf, etc.

    OK this is now done in V1-00f

    File types which are now STILL excluded from using "Lightbox" in the "OTHER" row,
    and will only play with the PGV pop-up window are as follows :

    a) PGV Media TYPES - audio, book, video,
    b) file extention types - .pdf, .mp3, .wma, .wav, .avi, .mpg and .mpeg.

    If I have missed any that you wish in the exclusion zone, let me know

    Otherwise ALL PGV media files with no "TYPE" set will now open with "Lightbox"

    I am working on another release to look at "lightbox" opening URL's, and therefore
    all types excluded in this version, which only will open in a popup window.

    V1-00f.zip supercedes V1-00e.zip

    This will be the last update (emergencies permitting)
    until the next release.

    Brian

    File Added: Album V1-00f.zip

     
  • Brian Holland
    Brian Holland
    2007-05-30

    Logged In: YES
    user_id=1712962
    Originator: YES

    I have now developed version 2.0 of Lighbox-Album.

    This ONLY works with 4.1 (not 4.0 or below)
    The additional features are the editing features found in the normal media tab.

    The editing features now work with any user who can edit, and not just Administrators.

    Files are attached in Album V2.0.zip
    (version V1.00f remains for those with PGV 4.0.x)

    Comments gladly appreciated

    Brian

     
  • Brian Holland
    Brian Holland
    2007-05-30

    Logged In: YES
    user_id=1712962
    Originator: YES

    File Added: Album V2-0.zip

     
  • Brian Holland
    Brian Holland
    2007-08-06

    Logged In: YES
    user_id=1712962
    Originator: YES

    Hi everybody,

    Here is the PGV 4.1 stable version of Lightbox Album (version3.0)
    Download, read the album_readme_first.txt, then use the quick_install.txt

    I have tested on my new 4.1 stable, so I know it works.

    Brian

     
  • Brian Holland
    Brian Holland
    2007-08-06

    Logged In: YES
    user_id=1712962
    Originator: YES

    File Added: Lightbox Version 3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-07

    Logged In: YES
    user_id=1712962
    Originator: YES

    Thanks to Nigel Osborne, I have posted now a correction to the Lightbox V3.0 module for PGV 4.1 stable.
    (Javascript errors on the individual page and unable to toggle the "Events of Close Realtives" option.

    If you downloaded this module before this post, please replace the files as in the Update 1 zip file.
    The new lb_config.php just explains a little better what the $mediatab parameter does.

    If you are downloading the new v3.0 Lightbox module for the first time now, then all is OK (The base zip file is corrected)

    Brian Holland
    File Added: Update 1 for Lightbox V 3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-07

    Logged In: YES
    user_id=1712962
    Originator: YES

    File Added: Lightbox Version 3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-07

    Logged In: YES
    user_id=1712962
    Originator: YES

    Hi All,
    Another small niggle which gave an error when an individual has no media was discovered by Alan Pearce.
    The fix is a new individual.php.
    This is included in both the Complete package, and Update 1.
    If you downloading for the first time, just down load the complete package. (Lightbox V3.0 for PGV 4.1 Stable.zip)
    If you have already installed Lightbox V3.0, just download the Update zip file (Update 1 - Lightbox V3.0 for PGV 4.1 Stable.zip)
    If you have already downloaded the update, and installed, download again (The individual.php file has changed)
    Brian

    File Added: Lightbox V3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-07

    Logged In: YES
    user_id=1712962
    Originator: YES

    File Added: Update 1 - Lightbox V3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-07

    Logged In: YES
    user_id=1712962
    Originator: YES

    File Added: Update 1 - Lightbox V3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-10

    Logged In: YES
    user_id=1712962
    Originator: YES

    This is the last update until the next major version for 4.1 Stable (pending any bugs)
    I have improved the tooltip to include a link to the media details in addition to the scource info (if source info is available).
    The link to media details (mediaviewer.php page) is available on the tooltip when NOT in edit mode.
    (If in Edit mode, then an icon link is present for this)
    This change is mainly for users, and people not logged in.

    The Complete package file has been updated, but if you have already have lightbox for PGV 4.1 Stable installed, use the Upgate 1 zip file, and replace the modules/lightbox/functions/lightbox_print_media_row.php file with the new one supplied.

    Brian
    File Added: Lightbox V3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-10

    Logged In: YES
    user_id=1712962
    Originator: YES

    File Added: Update 1 - Lightbox V3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-19

    Logged In: YES
    user_id=1712962
    Originator: YES

    Just found another small niggle (Thanks Tom Adkins for pointing it out)
    When there was no media associated with an individual, there was no way with the Lightbox Album tab to add new media.
    (particularly infuriating if you had switched the media tab off)
    So now there is.
    This required changes to individual.php and lb_head.php
    Complete package, and update 1 package have been modified accordingly
    Brian
    File Added: Update 1 - Lightbox V3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-19

    Logged In: YES
    user_id=1712962
    Originator: YES

    File Added: Lightbox V3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-21

    Logged In: YES
    user_id=1712962
    Originator: YES

    Another bug.
    Lightbox slide show will not run properly, and certain thumbnails are not clickable.
    My fault, I missed a line of code out on the last update.
    The file affected is lightbox_print_media row.

    The Complete package file has been updated, but if you have already have
    lightbox for PGV 4.1 Stable installed, use the Upgate 1 zip file, and
    replace the modules/lightbox/functions/lightbox_print_media_row.php file
    with the new one supplied.

    Brian

    File Added: Update 1 - Lightbox V3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-21

    Logged In: YES
    user_id=1712962
    Originator: YES

    File Added: Lightbox V3.0 for PGV 4.1 Stable.zip

     
  • Brian Holland
    Brian Holland
    2007-08-21

    Lightbox V3.0 Complete package for PGV 4.1 Stable (21 Aug 2007)