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 |
#12
|
||||
|
||||
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 |
#13
|
|||
|
|||
Quote:
|
#14
|
||||
|
||||
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 --> |
#15
|
||||
|
||||
Is there a way to check the attachment for its extension ?
Wondering how to get round the non image attachment situation. |
#16
|
||||
|
||||
oh wow! something i've been dreaming for months... I'll install it once my host move is over :P
|
#17
|
|||
|
|||
This looks good and I could certainly use it on my forums (http://www.modthesims2.com/)
One thing though I need clarifying: It's mentioned that it takes the first attachment.. what if the first attachment is not an image? Does it display no attachment available? If so, then would there be a way of looping until it does get the first image available only in the first post on the thread? I'm guessing this would add another query though. Regards, Delphy |
#18
|
|||
|
|||
Quote:
|
#19
|
|||
|
|||
Okay thanks for the reply. I've had a few thoughts about how to achieve this with the minimum of queries, so I'll take a look at the hack
|
#20
|
|||
|
|||
Nice, already had it running at http://www.pagodentreff.de/diskussio...splay.php?f=22 but I never released it because I thought nobody will ever use it
Mine chooses randomly from any picture which is attached to the first post. |
#21
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|