T O P I C R E V I E W |
Riccardo |
Posted - 24 September 2005 : 11:54:23 It's time to work on a thumbnail gallery like this http://www.virginflyer.com/forum/default.asp This code is really interesting and the others competitor forum still have that possibility..< |
4 L A T E S T R E P L I E S (Newest First) |
Riccardo |
Posted - 25 September 2005 : 10:00:45 thanks for your demonstration..but not resolved my request..< |
dayve |
Posted - 24 September 2005 : 22:54:28 quote: Originally posted by goorootech
The resampled thumbnails are created automatically on-the-fly when a member posts an image?
Jason
They click a paper clip icon when posting. A simple form pops up that allows them to browse to their image and enter a simple caption. When the submit button is clicked, the image is uploaded, a thumbnail is created, a database entry is made and a forum tag is inserted into the post similar to this:
[image=2345]
When the post is viewed, I use a RegEx function (thanks to -gary) that will parse the tag and get the id number, in this case 2345. A query is made using this id to get the location of the thumbnail and regular sized image which is then converted to a link so when it is clicked on the original sized uploaded image is viewed in a popup.
There is some additional JavaScript/CSS used for showing and aligning the thumbnails. If viewed in IE, there are some additional filters used to highlight the thumbnail when it is hovered with the mouse.< |
goorootech |
Posted - 24 September 2005 : 21:24:07 The resampled thumbnails are created automatically on-the-fly when a member posts an image?
Jason< |
dayve |
Posted - 24 September 2005 : 19:22:36 I developed an uploader, thumbnailer, gallery for my forum and have been using it successfully since the beginning of the year. I've always wanted to package it up and make it available but just when I'm ready to try and do that, I make some more modifications. Now it is so tightly integrated with the forum that it would proved to be cumbersome to package it. However, to inspire some of the really good developers here and maybe nudge them in the direction of creating one for the community, here are some demo links on my forum.
Images In Post: http://www.burningsoulsforum.com/forum/topic.asp?TOPIC_ID=13538
The images in this sample post are truly resampled images so the page loads faster and it a lot cleaner. No topic stretching either! When you click on the thumbnail, a nicely centered popup window will display the original image.
Simple Gallery Of Recently Uploaded Images: http://www.burningsoulsforum.com/forum/gallery.asp
The only caveat to doing all of this is that I used C# for my uploading/resampling/inserting into database. I chose C# because it is a lot easier to program for this type of feature and the uploads are quicker and can handle larger files sizes (especially in Windows Server 2003).
I really wish I could just share all the code, but it is really not isolated enough from the forum to do so, but I will start extracting parts of it from time to time to try and make it available. I know I promised this in the past, but so many other things came up and I wasn't sure how stable this was going to be. I think da_stimulator is offering services for installing this feature on forums because I gave him the code, so he might be interested, but for hire. I'll direct him to this post if he doesn't see it soon.
< |
|
|