![]() |
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 :) |
Quote:
|
Thanks for this! I tried for the longest time to code it myself but lol, not a coder :D
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 --> |
Is there a way to check the attachment for its extension ?
Wondering how to get round the non image attachment situation. |
oh wow! something i've been dreaming for months... I'll install it once my host move is over :P
|
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 |
Quote:
|
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 :)
|
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. |
Quote:
|
All times are GMT. The time now is 09:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|