Author Topic: Album.PL integration with file attachment MOD in YABB  (Read 3361 times)

0 Members and 1 Guest are viewing this topic.

Offline ST

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
Album.PL integration with file attachment MOD in YABB
« on: January 03, 2003, 13:56:38 »
I posted this thread just now on boardmod:

http://boardmod.yabbforum.com/yabb/YaBB.pl?board=hacks;action=display;num=1041619472;start=0

The gist is to have the file attachment MOD upload right into the users gallery. That way when someone wants to look at all of a users photos they've seen over the years on a YABB board, they can just go to that users album instead ofsearching through numerous YABB threads.

Seems like a good idea, but I might be the only one who thinks so.

I think it is more of an issue with the file attachment mod then album.pl. Although I am not sure how album.pl would handle files just appearing in users albums. I'll go try to upload an image directly into an album to see what happens.

PS. Just rolled out album.pl 6 on a new site. Looks great. I have an old one running V5.6 that I have been thrilled with. As always GREAT WORK......

PS. Just noticed you have the file attach mod on here....Maybe I just typed something already discussed...My apologies. Will search now to see if I am truly a bonehead.

Regards,
Scott T

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album.PL integration with file attachment MOD in YABB
« Reply #1 on: January 03, 2003, 20:07:11 »
Hi Scott,

Thanks for pointing this out - I hadn't heard it before, but hey, it makes a lot of sense!

Any photos dumped in the album by the attachment mod will be automatically displayed, no worries there. I designed the script to be robust enough to accept files from any source - I unload my digital camera directly into my album...

I'm sure it's just a one liner change to the attachment mod, so in my copious free time ;D I may take a look and see if I can figure out out...

Cheers and thanks!

P.S. I've moved my attachment directory here to "att" under the album... Am going to give it a test run with this post...

[attachment deleted by admin]

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album.PL integration with file attachment MOD in YABB
« Reply #2 on: January 03, 2003, 20:08:14 »
The proof is in the pudding! :)

The above photo can be viewed through the album here:

http://perl.bobbitt.ca/cgi-bin/album.pl?album=att

Nice idea man!

Offline ST

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
Re:Album.PL integration with file attachment MOD in YABB
« Reply #3 on: January 03, 2003, 20:39:33 »
Cool, Glad you understood what I meant. album.pl and YABB are about the 2 best scripts on the net. I'm a bug fan.

On a side note, do you find YabbSE has any advantages to the .PL version? Is there any major difference?

ST

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album.PL integration with file attachment MOD in YABB
« Reply #4 on: January 03, 2003, 21:06:52 »
It's not as simple as I thought. :(

But I won't give up yet...

As for advantages to SE over regular YaBB, there are a few (latest posts shown on forum page, built-in mods, etc).

Mostly I just wanted to see if I could get album.pl to work with a database. ;D

Cheers

Offline ST

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
Re:Album.PL integration with file attachment MOD in YABB
« Reply #5 on: January 05, 2003, 12:54:11 »
It really looks like the file attachment mod needs to create a directory based on the user name, but I'm just a code hack, no real skills.

For now I am just having the FA mod dump everything in one directory. The only pain about that is if I decide at some point to move those pics into the correct user directories, the pic in the original message post will show as attachment removed.

Still not a bad deal. The 2 working together is pretty nice.

Again thanks for the script Mike, I've really enjoyed it.


Regards,
ST

PS.  Just noticed that if I upload via the FA mod, those uploads are not displayed in the recent uploads view. Now this is a new album, so I may have some config bugs to work out on my end. If you upload directly to the album directory not via the album.pl script, does the recent view get updated?

ST
« Last Edit: January 05, 2003, 13:27:36 by ST »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album.PL integration with file attachment MOD in YABB
« Reply #6 on: January 05, 2003, 13:40:35 »
Uploads not done though the album script aren't logged and therefore don't show up in the recent uploads. I've thought a lot about how to change this (and even if it makes sense to change it) but I haven't come up with a clear answer...)

I had the attachment mod partly changed, but then deleting a post with an attachment would fail, etc. I may take another crack at it, but to do it "cleanly" would take some work...

Offline matt_rogers

  • album.pl Hacker
  • ****
  • Posts: 117
  • Karma: +2/-0
  • Currently sitting in front of a computer.
    • Three Steps To A Reef Aquarium
Re:Album.PL integration with file attachment MOD in YABB
« Reply #7 on: January 15, 2003, 02:20:38 »
The concept is really cool. Ideally I would love to see it look to see if your photo album exists, if not ask if you would like to set one up or give you the option to upload just to the default file attachement directory.


(I have been thinking of YaBB SE thing too, but I have a lot of mods I would lose in the converter. YaBB2 is supposed to have Perl/MySQL thing going on, but I would still lose mods. Leaning towards 2 though.)

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Album.PL integration with file attachment MOD in YABB
« Reply #8 on: January 15, 2003, 16:15:57 »
Yeah, I haven't done any more work on this lately... Been way too busy! Still, I like the idea, and hope that someone runs with it even if I don't end up doing it...