MyBB Community Forums

Full Version: Thumbnail of attachment in threadlist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8
(2011-04-25, 03:48 AM)Yaldaram Wrote: [ -> ]
(2011-04-24, 08:38 PM)Johnasc Wrote: [ -> ]This works really well on the image galleries on my nature photography forum... is there a way to make the resulting thumbnail a clickable link to the thread, just like the thread title?

Thanks!

Replace {$attachment_thumbnail} with the following;
<a href="{$thread['threadlink']}">{$attachment_thumbnail}</a>

Thanks Yaldaram. I inserted this code and now the thumbnail display has stopped functioning - when I revert to the original code, it still does not resume working. I haven't changed anything else so I am at a loss as to why this would happen. Do you have any idea what may be causing this?
I like this.

Yaldaram I tried that code and just get a error page

What error did you get ?
I get no error codes but nor do I get the thumbnails
Can you post your forum's URL please ?
(2011-04-29, 04:29 PM)Johnasc Wrote: [ -> ]It's http://www.wildphotoforum.com/

Please, at least give credit to Quacktacular. You are using his theme and Removed copyright notice: You are using this theme: http://community.mybb.com/thread-76405.html
Apologies to Quacktacular, I have put an acknowledgement into the forum footer to give credit for the theme.
I just realised what the issue is:

<a href="{$thread['threadlink']}">{$attachment_thumbnail}</a>

...should be:

<a href="{$thread['threadlink']}">{$att_thumbnail}</a>
That's because you probably have edited this part;
if($thumbnail)
            {
                $attachment_thumbnail = "<div style=\"float:left\"><img src=\"./uploads/{$thumbnail}\" /></div>";
            }
does this still work
Pages: 1 2 3 4 5 6 7 8