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 |
#2
|
||||
|
||||
Nice idea... I assume this adds only 1 query to forumdisplay?
|
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
does this require image software to be running on the server, ie GD image?
|
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
how come u released this - considering i just paid for it 2 days ago ?? - it was supposed to of been a custom paid hack ?
Also the files ive downloaded here are the exact as i have from the paid hack In the readme file it says `Notes: THIS IS A CUSTOM HACK - DO NOT REDISTRIBUTE IT PLEASE!` Also it has faults - if a rar or zip is attached and not an image u end up in forum display a red X - and so far is no known way to fix it. If u add multiple attachemnts it used to show all the attachments as seperate posts but not sure if fixed in your version as i was sent an addon to fix this. Edit ok read the txt file and seems u was the author - but i bet aint the only one to of paid for this - this week.Paid 2 days ago - 2 days later its released lets see if anyone else fell for it. |
#7
|
|||
|
|||
This was always meant to be released. It was a bought hack, the expense was shared, and then it was to be released. Sorry if you felt otherwise, as it was never an issue.
|
#8
|
||||
|
||||
A simple yet great hack, thanks for sharing Dechevious
|
#9
|
||||
|
||||
How does it handle multiple attachments? For example if someone posted 5 images on a single posting.
//edit - Also, what about other images posted in the thread besides the first post? Are they displayed somehow as well? |
#10
|
|||
|
|||
Quote:
Quote:
|
#11
|
||||
|
||||
I'm having a problem getting the thumbnails to display, and I'm not sure where to look to troubleshoot. The thumbnails display fine in the post, and I have set the forum id in the forumdisplay file. It's showing thumbnail not available for threads without attachments (I believe it's threads that have a threadicon).
I tried removing the last else bit, that shows the threadicon if there is no attachment. Also tried rebuilding thumbails. Any suggestions? http://buffy-boards.com/forumdisplay.php?f=19 Edit: I discovered the problem - it was that I needed to have a default icon enabled for the forum. I don't have any idea why that makes a difference...lol...but it does |
#12
|
|||
|
|||
Quote:
|
#13
|
||||
|
||||
Thanks for this! I tried for the longest time to code it myself but lol, not a coder
I think maybe if you have no set default icon (via your admincp options), you just need to rearrange the conditional in the threadbit template in order to get it to work without having a threadicon specified. Like move that '<if condition="$show['threadicon']">' bit. But I haven't played around with that or anything so I don't know. Edit: Okay, yes, if you have no default post icon selected in your admincp, I used this code for the threadbit template and it works: Code:
<!-- Start: idolpx and dechevious Thumbnail in Forum Display Hack - 20041220 --> <if condition="$show['threadicons']"> <td class="alt2" align="center" valign="middle"> <if condition="$displaythumbs"> <if condition="$thread['attachmentid']"> <a HREF="attachment.php?attachmentid=$thread[attachmentid]"> <img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" border=0> </a> <else /> <img src="images/clear.gif" width=75 height=56 border="0"></if> <else /><if condition="$show['threadicon']"> <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /></if></td> </if> </if> <!-- End: Start: idolpx and dechevious Thumbnail in Forum Display Hack - 20041220 --> |
#14
|
||||
|
||||
Is there a way to check the attachment for its extension ?
Wondering how to get round the non image attachment situation. |
#15
|
||||
|
||||
oh wow! something i've been dreaming for months... I'll install it once my host move is over :P
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|