Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#47 plugin PhotoAlbum 1.2

1.3.x
closed
None
7
2012-10-11
2003-01-02
Ted Vinke
No

Since I recently starting using phpWiki, I felt the need
for displaying a lot of photos on the wiki. I looked at how
the other plugins were created, took my old php manual
from the bookshelf and tried to create a plugin who does
(or anyway is going to do ) just what I need.

I called it the PhotoAlbum plugin and is yours to shoot
holes in it, since I'm not a very experienced php
programmer. But I am enthusiastic!

Check
http://jouwfeestje.com/phpwiki/index.php/PhotoAlbum
for an example.

Usage:

<?plugin PhotoAlbum src=http://server/textfile
mode=[column|row] desc=true sort=false height=50%
width=50% ?>

The textfile is in the same folder is the pictures and can
look like this:

photo-01.jpg; Me and my girlfriend
photo-02.jpg
christmas.gif; Merry Christmas!

TODO:
- parse any local directory for pictures
- specify picture(s) as parameter(s)
- 'advanced' options such as limit pictures on one page,
use more pages, thumbnail function which enlarges
pictures on same page...
- implement more layout options, such as usage of
tables. Currently row mode with descriptions isn't very
nice. :(

Discussion

  • Ted Vinke
    Ted Vinke
    2003-01-02

     
    Attachments
  • Carsten Klapp
    Carsten Klapp
    2003-01-05

    Logged In: YES
    user_id=369655

    Hi Ted,

    I added img 'alt' tag support, created a usage page
    "PhotoAlbumPlugin" from your source notes and checked it
    into CVS.

    I'd like to see local directory support (not necessarily to
    remove the textfile requirement, just to avoid using http in
    the src) whenever you get around to upgrading this.

    Tables of course would be tricky because everyone uses a
    different browser window size and monitor.

    Very nice idea for a plugin, code looks very good it works
    great for me. Thanks!

    Carsten

     
  • Ted Vinke
    Ted Vinke
    2003-01-08

    Logged In: YES
    user_id=678929


    In version 1.2 a lot has been added: various display styles
    like WinXP thumbs, list and tiles styles and fixed album
    location support proposed by Philip J. Hollenback. Reading
    from local directory still has to be implemented.

     
  • Ted Vinke
    Ted Vinke
    2003-01-08

    PhotoAlbum 1.2

     
    Attachments
  • Reini Urban
    Reini Urban
    2004-02-27

    Logged In: YES
    user_id=13755

    I'm currently applying your version 1.2
    for the next release.

    I will implement local directory browsing also, maybe the
    needed gd trickery also.

     
  • Reini Urban
    Reini Urban
    2004-02-27

    Logged In: YES
    user_id=13755

    in CVS with localdir support.