Thumbnail of attachment in threadlist
#11
(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?
Reply
#12
I like this.

Yaldaram I tried that code and just get a error page

Reply
#13
What error did you get ?
Reply
#14
I get no error codes but nor do I get the thumbnails
Reply
#15
Can you post your forum's URL please ?
Reply
#16
It's http://www.wildphotoforum.com/
Reply
#17
(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
Reply
#18
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>
Reply
#19
That's because you probably have edited this part;
if($thumbnail)
            {
                $attachment_thumbnail = "<div style=\"float:left\"><img src=\"./uploads/{$thumbnail}\" /></div>";
            }
Reply
#20
does this still work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)