Mark Brookes
02-06-2007, 11:41 AM
Hello,
On earlier threads I learned how to add a thumbnail to the category pages, and even how to make it a clickable link
(Like this in ... /templates/Ocean/link-display.tpl
replace line 1 with
<tr>
{if $config.thumbshot}
<td>
<div class="preview">
<a href="{$link.url}" id="l{$link.id}" target="_blank"><img width="111" height="87" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" alt="" /></a>
</div>
</td>
{/if}
Now I would like to change it so the the thumbnail only displays if the link is a featured or partner or sponsored link.
I managed that by
{if $config.thumbshot}
<td>
<div class="preview">
{if $link.featured AND $config.featured_links}
<a href="{$link.url}" id="l{$link.id}" target="_blank"><img width="111" height="87" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" alt="" /></a>
{elseif $link.partner AND $config.partner_links}
<a href="{$link.url}" id="l{$link.id}" target="_blank"><img width="111" height="87" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" alt="" /></a>
{elseif $link.sponsored AND $config.sponsored_links}
<a href="{$link.url}" id="l{$link.id}" target="_blank"><img width="111" height="87" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" alt="" /></a>
{else}
<a href="<img width="111" height="87" src="http://www.finespeeches.com/wedding-resources-TEST/blank.jpg"></a>
{/if}
BUT I can't get rid of the the box which says "no Preview Picture"
No doubt my attempts are the wrong way to try to do this :) but can someone tell me the right way, please.
Regards
mark
On earlier threads I learned how to add a thumbnail to the category pages, and even how to make it a clickable link
(Like this in ... /templates/Ocean/link-display.tpl
replace line 1 with
<tr>
{if $config.thumbshot}
<td>
<div class="preview">
<a href="{$link.url}" id="l{$link.id}" target="_blank"><img width="111" height="87" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" alt="" /></a>
</div>
</td>
{/if}
Now I would like to change it so the the thumbnail only displays if the link is a featured or partner or sponsored link.
I managed that by
{if $config.thumbshot}
<td>
<div class="preview">
{if $link.featured AND $config.featured_links}
<a href="{$link.url}" id="l{$link.id}" target="_blank"><img width="111" height="87" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" alt="" /></a>
{elseif $link.partner AND $config.partner_links}
<a href="{$link.url}" id="l{$link.id}" target="_blank"><img width="111" height="87" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" alt="" /></a>
{elseif $link.sponsored AND $config.sponsored_links}
<a href="{$link.url}" id="l{$link.id}" target="_blank"><img width="111" height="87" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" alt="" /></a>
{else}
<a href="<img width="111" height="87" src="http://www.finespeeches.com/wedding-resources-TEST/blank.jpg"></a>
{/if}
BUT I can't get rid of the the box which says "no Preview Picture"
No doubt my attempts are the wrong way to try to do this :) but can someone tell me the right way, please.
Regards
mark