Quote:
Originally posted by Lordmusic
So basically this hack just takes the images ever posted in a forum and displays them on a page? Is there any way to edit the images, remove the naughty ones, add ones not posted and so forth? Perhaps a way for people to submit?
|
It generates thumbnails for all GIFs/JPGs/PNGs/BMPs in your attachment table. It stores those thumbnails in a new table called thumb (I have no plans to store thumbs as files). It provides links to the full size attachment, as well as, the post the attachment appeared in. The links are currently opened in a seperate window, so you can keep the gallery open and jump to the individual posts. The way for people to submit is to post an attachment in the forum. You'll see I have a copy of the ForumJump box at the top of the page. The user can scroll through forums and chose "different galleries." gallery.php accepts params: userid & forumid. So, this is one virtual gallery:
http://www.noows.com/gallery.php?s=&...ws=5&galcols=2
This is another:
http://www.noows.com/gallery.php?s=&...ws=5&galcols=2
And this is my "personal" gallery (I modded my copy of memberlist template to provide a link to every users gallery):
http://www.noows.com/gallery.php?s=&userid=1
The links to the original post would be your way of "removing naughty ones." To submit new ones, the user just has to make a new post/attachment in the appropriate forum. I really don't see the need to code seperate admin/edit functionality into the gallery. Would just cause users more confusion in the end. Perhaps a link that would allow users to directly reply to an image in another window?