Author Topic: fristersoft.mine.nu (custom features)  (Read 16894 times)

0 Members and 1 Guest are viewing this topic.

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
fristersoft.mine.nu (custom features)
« on: April 05, 2004, 20:56:47 »
http://fristersoft.mine.nu

This is actually my third go-around with album.pl, but I finally feel it's worth a post here. I originally started playing with version 5.7.

Some of the things I've customized:

  • Auto-size photo display for the current browser window
  • All photos are stored as jp2 files.
    • If you view from a Windows platform, the site will ask you to install the Lurawave jp2 plugins.
    • If you view from a Linux platform, conversion back to jpg occurs on the fly, via ImageMajick.
    • jp2 files give me small storage requirements while maintaining image quality
  • All thumbnails are png files
  • Only some members can upload photos and add ratings
  • Membership and login control is integrated with Account Manager Lite -- see the Technology page for link
  • Have three levels of membership
    • Family - can upload and can view all photos
    • Friend - can upload and can view all photos except those designated as family
    • Guest - can view the same photos as Friend, but can not upload
  • Nonmbers can view all other photos
  • Provide the option of storing login cookies permanently or only for the current session

Things to do:
  • Add more current photos (have 100's)
  • Merge in to version 6.4 of album.pl
  • Separate admin script from regular script so non-admins can't get to it
  • Use arrays in cookies so there's only one cookie left for my site
  • Figure out how to shroud photos and NOT shroud thumbnails
  • Add https support for login function and membership requests.
  • Add "lost password" request functionality
  • Make it automatically multilingual
  • Let visitor choose color and font scheme (and store it on visitor's browser)[li]
Enjoy! Please post your comments or leave them in my guestbook.

J.J. Frister


Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: fristersoft.mine.nu (custom features)
« Reply #1 on: April 06, 2004, 13:17:22 »
Nice work! I especially like the ability to have user groups for different levels of access!

Offline adwiseman

  • album.pl Contributor
  • ***
  • Posts: 53
  • Karma: +3/-0
    • akwiseman
Re: fristersoft.mine.nu (custom features)
« Reply #2 on: April 06, 2004, 15:57:53 »
Hay Mike, I realy like the feature of the auto size when viewing pictures, And having this as a cfg option with the other defaults.  Any chance of adding this to the list fo to does?  Perhaps frister is willing to share her code?

User groups would be neat also, although I have no need for them.

BTW, Frister, you server time did not reset after daylights savings time.  Your 1 hour behind.

Adam Wiseman
http://www.akwiseman.com/cgi-bin/album.pl

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: fristersoft.mine.nu (custom features)
« Reply #3 on: April 06, 2004, 17:26:24 »
I have to admit, I didn't install the plugin, so I never got to see the auto-resized photos... Is it like the fullscreen slideshow feature, or something different?

Offline adwiseman

  • album.pl Contributor
  • ***
  • Posts: 53
  • Karma: +3/-0
    • akwiseman
Re: fristersoft.mine.nu (custom features)
« Reply #4 on: April 07, 2004, 13:18:06 »
The picture sizes to the current window size.  So I will always see the picture set 1 inch inside the borders of the album.pl page.  Meaning, it doesn't matter if I use 800X600 or 1400X1200 resolution, it will always fit my screen.  Same as full screen slide show, but without the full screen.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: fristersoft.mine.nu (custom features)
« Reply #5 on: April 07, 2004, 13:29:17 »
Cool... I wonder how it knows the dimensions of the photo... I.E. how it knows to scale a 100x600 photo differently from a 600x100 photo...

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: fristersoft.mine.nu (custom features)
« Reply #6 on: April 07, 2004, 13:53:24 »
adwiseman: that's right. and btw, thx for the clock note. ntp was failing.

Mike: If it's ok with you, I'll gladly send a zip of my album.pl to anyone who asks.

I find the original dimensions with ImageMagick. The resizing is done in javascript. Can't find the orginal source, but here's something very similar http://javascript.internet.com/bgeffects/full-size-image.html

I have my offset set so max horizontal is window - 45 and max vertical is window - 145. That way I preserve display of menus, titles, breadcrumbs, etc. And, I added logic to preserve image proportions.

J.J.Frister

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: fristersoft.mine.nu (custom features)
« Reply #7 on: April 07, 2004, 14:56:44 »
Yeah, I have no problem with that! Open source all the way! :)

How do you get the original image dimensions? Or do you?

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: fristersoft.mine.nu (custom features)
« Reply #8 on: April 08, 2004, 13:45:05 »
Original image dimensions found using your subroutine getPhotoDimensions()

But, since I made extensive changes to BuildObject(), not only for the auto-size, but also for the jp2 embedding, maybe you'd rather look in my copy of album.pl at http://fristersoft.mine.nu/temp/jf_album.zip



Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: fristersoft.mine.nu (custom features)
« Reply #9 on: April 12, 2004, 11:31:41 »
LOL, ok so you used the existing subroutine... makes sense... :)

How are you finding it for speed? I was concerned that calling IM every time a photo was viewed would create too much overhead... Are you noticing any problems?

Thanks for the source!

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: fristersoft.mine.nu (custom features)
« Reply #10 on: April 12, 2004, 15:07:15 »
Don't really notice the speed difference. I have a slow server to begin with    :-\  (P-III 300 overclocked to 433)

Maybe I should try timing it when displaying jpg, as opposed to jp2.

J.J.

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: fristersoft.mine.nu (custom features)
« Reply #11 on: April 12, 2004, 15:18:34 »
OK, I timed it. Auto-sizing adds about 1 second to the response time, regardless of wether I display jpg or jp2.

J.J.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: fristersoft.mine.nu (custom features)
« Reply #12 on: April 13, 2004, 11:49:10 »
Ok, thanks for the info. That sounds about right based on what I'd seen in previous (but simplistic) tests. So maybe not something you'd want for a very large, very busy album but it's definitely a nice feature for those who can use it!

Thanks!

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: fristersoft.mine.nu (custom features)
« Reply #13 on: April 20, 2004, 22:55:38 »
OK, so I merged in all my changes into version 6.4  :)

You can find it at http://fristersoft.mine.nu/temp/jf_album.zip

In addition to what I wrote earlier,
  • I hope my changes are now less disruptive to Mike's original code
  • Even if you know the exact URL parms for a restricted album/photo, and you are not logged in, you can't get to it.
  • Moving/Deleting links only moves/deletes the link, not the actual photo
  • Green themed style sheet
  • Reversed thumb fading - it fades with the cursor over it, instead of being faint when intially displaying.

I did not include the WebFX tree menu code nor the Account Manager Lite code in the zip file. One is supposed to get it from their home pages and not by redistribution.

J.J.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: fristersoft.mine.nu (custom features)
« Reply #14 on: April 21, 2004, 12:56:56 »
I'm blown away! That's some awesome coding! You even commended your code! :D

It may take me a while to figure out what and how you did everything, but thanks for sharing! If you don't mind, I may roll some of your changes into the standard download, so everyone can benefit from your work. (With credit, of course. ;)) Probably the only things that I wouldn't use are the ones that are reliant on jp2 and Access Manager, to keep the requirements down.


Anyway, thanks for the great work!