Current time: 07-26-2014, 11:09 AM Hello There, Guest! (LoginRegister)


Post Reply 
Thumbnail of attachment in threadlist
04-26-2011, 06:21 PM
Post: #11
RE: Thumbnail of attachment in threadlist
(04-25-2011 03:48 AM)Yaldaram Wrote:  
(04-24-2011 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;
PHP Code:
<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?
Find all posts by this user
Quote this message in a reply
04-29-2011, 04:48 AM
Post: #12
RE: Thumbnail of attachment in threadlist
I like this.

Yaldaram I tried that code and just get a error page
Find all posts by this user
Quote this message in a reply
04-29-2011, 06:52 AM (This post was last modified: 04-29-2011 06:52 AM by Yaldaram.)
Post: #13
RE: Thumbnail of attachment in threadlist
What error did you get ?

[Image: 16mJ9bI]
MyBBsmsAPP | MyStatus | ProProfile
Visit this user's website Find all posts by this user
Quote this message in a reply
04-29-2011, 09:32 AM
Post: #14
RE: Thumbnail of attachment in threadlist
I get no error codes but nor do I get the thumbnails
Find all posts by this user
Quote this message in a reply
04-29-2011, 09:38 AM
Post: #15
RE: Thumbnail of attachment in threadlist
Can you post your forum's URL please ?

[Image: 16mJ9bI]
MyBBsmsAPP | MyStatus | ProProfile
Visit this user's website Find all posts by this user
Quote this message in a reply
04-29-2011, 04:29 PM
Post: #16
RE: Thumbnail of attachment in threadlist
It's http://www.wildphotoforum.com/
Find all posts by this user
Quote this message in a reply
04-29-2011, 04:53 PM
Post: #17
RE: Thumbnail of attachment in threadlist
(04-29-2011 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

[Image: 16mJ9bI]
MyBBsmsAPP | MyStatus | ProProfile
Visit this user's website Find all posts by this user
Quote this message in a reply
04-30-2011, 10:07 AM (This post was last modified: 04-30-2011 10:30 AM by Johnasc.)
Post: #18
RE: Thumbnail of attachment in threadlist
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:

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

...should be:

PHP Code:
<a href="{$thread['threadlink']}">{$att_thumbnail}</a
Find all posts by this user
Quote this message in a reply
04-30-2011, 12:29 PM
Post: #19
RE: Thumbnail of attachment in threadlist
That's because you probably have edited this part;
PHP Code:
if($thumbnail)
            {
                
$attachment_thumbnail "<div style=\"float:left\"><img src=\"./uploads/{$thumbnail}\" /></div>";
            } 

[Image: 16mJ9bI]
MyBBsmsAPP | MyStatus | ProProfile
Visit this user's website Find all posts by this user
Quote this message in a reply
05-28-2011, 12:23 AM
Post: #20
RE: Thumbnail of attachment in threadlist
does this still work
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication