The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thumbnail of Attachments on forum display Details »» | |||||||||||||||||||||||||||
Thumbnail of Attachments on forum display
Developer Last Online: Oct 2005
This hack has been requested a number of times, for multiple versions of vBulletin. For whatever reason, it was never done (at least publicly) until now. Heres to wishing each and everyone of you a Merry Christmas, and a prosperous, healthy, and safe, New Year!
What it does: This hack will display a thumbnail of the threads attachment on the forum display. Quite useful if you have forums designated for graphics/photos .. etc. Could also be tweaked to display the posters avatar instead of an attachment. Variable possibilities. (Screenshot attached for further review) and or see it in action at this forum in realtime. If the thread has multiple attachments, it will display the first. If no attachment, a 'no attachment' thumb will appear. Can be assigned for use in any forum you wish it to be active in. Install time is minimal - Less than 5 minutes for the average joe. (Simplicity at it's Finest) 1 file to modify, and 1 template to modify, along with the upload of an image. Known Issues: If the attachment is not an image, a thumbnail will not be shown. (IE: .zip or .rar) If you install it, please click the 'Install' icon - Updates will be sent to those who do. Supporters / CoAuthors Show Your Support
|
Comments |
#62
|
|||
|
|||
Dear Aceman,
The conditional looks like it is working well. I think rather than the repeated text you might consider an icon of some kind with an alt text that says "Only members can view thumbnails" it would clean up the layout a lot. Dear Dechevious, You might want to add this behavior (broken thumbs if you are logged out) to the known behaviors list. Regards, Matt |
#63
|
|||
|
|||
Heya,
The hack works great, but I have 1 weird issue...if a new post is made, the thumbnail doesn't show up, even though it's attached, it shows the 'no thumbnail available'. If I rebuild the attachments after posting it shows up fine. If I attach a attachment to an existing post it shows up fine, without rebuilding the attachments. Any ideas?? |
#64
|
|||
|
|||
Thanks aceman for the code, now it works but with a little change.
This code PHP Code:
PHP Code:
Thanks for the hack guys. |
#65
|
|||
|
|||
HI. Sorry I'm a little lost...are we installing the Dechevious hack or is there one that Delphy has modded that we are using?
Thanks. |
#66
|
|||
|
|||
I've a little problem here, too:
The hack always displays the last attachment of a post, not the first one. Strange, isn't? |
#67
|
|||
|
|||
I used the code to build up a simple gallery, but changed it so, that allways five thumbs are displayed in one row. Now i'm checking how to change the templates, so i can use this hack completly as a gallery.
|
#68
|
||||
|
||||
I love this hack. The thumbnails don't show up in search results, but I'm not too concerned about that.
|
#69
|
|||
|
|||
Quote:
Regards, Matt |
#70
|
|||
|
|||
Has anyone an idea, how to integrate the condition $displaythumbs in postbit?
|
#71
|
|||
|
|||
Here, that's what i've got so far. What do you think of it?
(it's a german site, but i think for showing it, it's enough, isn't it?) http://www.scifi-fan.net/forumdispla...=60&styleid=19 |
#72
|
|||
|
|||
I think it's very interesting and that you're on to something Harald. The page is too wide (too many columns) for your page layout though.
Regards, Matt |
#73
|
|||
|
|||
Yup, but that's because of the size of the attachments. It's no problem to set the columns to 3 or 4 (or set the size of the attachments down).
I'm not finished yet, as i want to change the templates a little bit further. Mostly of adding to the hack of Delphy is template work. There is only some very simple PHP-work to do. |
#74
|
|||
|
|||
This is, what it looks like, with size of thumbs set to 140 (see attachment).
I still trying to find out, how to change the layout for showthread-template, cause i don't have $displaythumbs in showthread.php. I need it for checking only, if i'm in the gallery or not. Any ideas (i'm not the expert in PHP i have to say).? |
#75
|
|||
|
|||
Found out how i had to check it. So now i can use special-templates for the gallery.
|
#76
|
|||
|
|||
Anyone interested in making this hack into a gallery?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|