Thumbnail of attachment in threadlist
#21
(2011-05-28, 12:23 AM)awww Wrote: does this still work

Yes, it should work. Did you tried to do the edits ? If you wish you can PM me ACP details so I could do it myself.
Reply
#22
(2011-05-28, 04:50 AM)Yaldaram Wrote:
(2011-05-28, 12:23 AM)awww Wrote: does this still work

Yes, it should work. Did you tried to do the edits ? If you wish you can PM me ACP details so I could do it myself.

i have it showing pics i just need the code so you can click the pic and it goes to the thread
Reply
#23
It works for me
Reply
#24
(2011-05-28, 06:22 AM)awww Wrote:
(2011-05-28, 04:50 AM)Yaldaram Wrote:
(2011-05-28, 12:23 AM)awww Wrote: does this still work

Yes, it should work. Did you tried to do the edits ? If you wish you can PM me ACP details so I could do it myself.

i have it showing pics i just need the code so you can click the pic and it goes to the thread

Alright, can you please paste the code here you've used it in template ?
Reply
#25
forumdisplay_thread
<tr>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
	<td class="{$bgcolor}{$thread_type_class}">
		{$attachment_count}
		<div>
<a&nbsp;href="{$thread['threadlink']}">{$attachment_thumbnail}</a>
			<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']}</div>
		</div>
	</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
	{$rating}
	<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	</td>
{$modbit}
</tr>

Reply
#26
In the code you posted, just remove the &nbsp; from this line;
<a&nbsp;href="{$thread['threadlink']}">{$attachment_thumbnail}</a>
and make a space in between a and href like this;
<a href="{$thread['threadlink']}">{$attachment_thumbnail}</a>
Reply
#27
fixed and Reped + thanks Big Grin
Reply
#28
Thanks Smile
Reply
#29
how can I do to replace the attachment with the first image of the post?
Reply
#30
(2011-10-13, 10:42 PM)Rino Gaetano 94 Wrote: how can I do to replace the attachment with the first image of the post?

Its already showing the "first attachment".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)