The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Easy Image Gallery
It's just an idea and I don't know how possible it is but...
So you have a forum with a list of threads. Those threads are labled with titles (text). You go into the thread and there is a picture that was attached using the "attach file" option. The board is set to display that picture. Hey great people can see the picture and comment on it too. Now what if instead of having the text title the system automatically created a thumbnail of that picture to diplay in the thread view. Now when you go to that forum there is a list of thumbnails going down the screen instead of thread titles. Click on the thumbnail and it takes you to that post where the picture shows up. Hey now that forum is an image gallery. What do you think? Can anyone do it? Is it possible? |
#2
|
|||
|
|||
This would require installing some type of image manipulation software on the server, either GD, or image magic (probably the best choice) or gimp, but sure, this can be done.
|
#3
|
|||
|
|||
Quote:
Ok so I lied. You will need GD. However, most versions of PHP nowadays come with it already. If you don't have it, beg your host to install it. You need to find this near line 630 in forumdisplay.php: PHP Code:
PHP Code:
The last thing you'll need to do is edit your forumdisplay template finding this string: Quote:
Quote:
|
#4
|
||||
|
||||
Thanks for doing this. Unfortunately for me it doesn't seem to work.
http://ve.roxics.com/board/forumdisp...?s=&forumid=11 Is it because there is no GD installed on the server? How would I know? What is GD exactly? BTW where you said you have to change the "forumdisplay" template it's actually the "forumdisplaybit" template. |
#5
|
||||
|
||||
Also just out of curiousity, would there be a way to make it work with multiple forums to have multiple galleries?
|
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
Question for Eander: even if the PHP has a GD support, what if the GD support only comes with libpng? Whould it still be able to re-size the gif and jpeg images?
I don't think GD has any support for GIF at all. |
#8
|
|||
|
|||
GD isn't actually resizing it. All it's doing is getting the sizes by the getimagesize() command, then adding a width="xxx" height="xxx" parameter to the <img> tag. It's all IE doing the resizing, but the numbers it is resized to are determined by GD.
|
#9
|
|||
|
|||
I see
Well, you don't need GD to have the getimagesize function to work. In fact, this function is used in several files in vbulleting. If you just change the height and width attributes of the image, it's not the same as re-sizing the image itself. Also, in order to do what was originally requested in this tread, you must create thumbnail images at the same time an image is uploaded and store them somewhere separately, you can't just create thumnail images in real-time, it will take too much time. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|