/ October 28, 2006
MSN Icon

I can add thumbnail previews to my phpLD, but picture show on the PR, I don’t know where to add code =(
I editing link.tpl – many hour, but not result.
This is my link.tpl (temlate SpringBreak)

Code:
{strip}
<table width="100%" align="center" cellpadding="0" cellspacing="0" class="linkarea">
<tbody>
   <tr valign="top">

      {* show page rank *}
      {if $smarty.const.SHOW_PAGERANK}
         <td width="40">{include file="pagerank.tpl" pr=$link.PAGERANK}</td>
      {/if}
<td>
<img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.URL|escape|trim}"  alt="{$link.TITLE|escape|trim}" width="119" height="90"  />
</td>

      <td>
         <span align="left" class="linktitle"> <a id="id_{$link.ID}" href="{$link.URL|escape}" title="{$link.TITLE|escape}"
         {* nofollow *}
         {if $link.NOFOLLOW or ($link.RECPR_VALID eq 0 and ($smarty.const.RECPR_NOFOLLOW eq 2 or ($smarty.const.RECPR_NOFOLLOW eq 1 and $link.RECPR_REQUIRED eq 1)))} rel="nofollow"{/if}
         {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>
         {$link.TITLE|escape}</a></span><br />
         <span class="linkshortdesc">{$link.DESCRIPTION|escape}</span>
         <br />
         <span class="linkurl">{$link.URL|escape} [ <a href="{if !$smarty.const.ENABLE_REWRITE}{$smarty.const.DOC_ROOT}/detail.php?id={$link.ID}
            {else}
            {$smarty.const.DOC_ROOT}/detail/link-{$link.ID}.html{/if}" title="{l}Read more about{/l}: {$link.TITLE|escape}">{l}Detail{/l}</a>
            {if $smarty.const.REQUIRE_REGISTERED_USER == 1 and !empty($regular_user_details) and ($regular_user_details.ID == $link.OWNER_ID)}, <a href="{$smarty.const.DOC_ROOT}/submit.php?linkid={$link.ID}" title="{l}Edit or Remove your link{/l}">{l}Review{/l}</a>
            {/if} ]</span>
      </td>
   </tr>
</tbody>
</table>
{/strip}

vegabond answered:

Try it:

Code:
{strip}
<table width="100%" align="center" cellpadding="0" cellspacing="0" class="linkarea">
<tbody><tr>
<td>
<img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.URL|escape|trim}"  alt="{$link.TITLE|escape|trim}" width="119" height="90"  />
</td>

      <td valign="top">
         <span align="left" class="linktitle"> <a id="id_{$link.ID}" href="{$link.URL|escape}" title="{$link.TITLE|escape}"
         {* nofollow *}
         {if $link.NOFOLLOW or ($link.RECPR_VALID eq 0 and ($smarty.const.RECPR_NOFOLLOW eq 2 or ($smarty.const.RECPR_NOFOLLOW eq 1 and $link.RECPR_REQUIRED eq 1)))} rel="nofollow"{/if}
         {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>
         {$link.TITLE|escape}</a></span><br />
         <span class="linkshortdesc">{$link.DESCRIPTION|escape}</span>
         <br />
         <span class="linkurl">{$link.URL|escape} [ <a href="{if !$smarty.const.ENABLE_REWRITE}{$smarty.const.DOC_ROOT}/detail.php?id={$link.ID}
            {else}
            {$smarty.const.DOC_ROOT}/detail/link-{$link.ID}.html{/if}" title="{l}Read more about{/l}: {$link.TITLE|escape}">{l}Detail{/l}</a>
            {if $smarty.const.REQUIRE_REGISTERED_USER == 1 and !empty($regular_user_details) and ($regular_user_details.ID == $link.OWNER_ID)}, <a href="{$smarty.const.DOC_ROOT}/submit.php?linkid={$link.ID}" title="{l}Edit or Remove your link{/l}">{l}Review{/l}</a>
            {/if} ]</span>
      </td>
   </tr>
{if $smarty.const.SHOW_PAGERANK}
<tr>
<td>&nbsp;</td>
<td>
{include file="pagerank.tpl" pr=$link.PAGERANK}
</td>
</tr>
{/if}
</tbody>
</table>
{/strip}

vcools answered: vegabond
Thanks, I think, and edit link.tpl. But link show with different size from picture =(
Please see my screen(first from one category, second from 2 category)
This is editing code

Code:
{strip}
<table width="100%" align="center" cellpadding="0" cellspacing="0" class="linkarea">
<tbody><tr>
<td>
<img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.URL|escape|trim}"  alt="{$link.TITLE|escape|trim}" width="119" height="90"  />
</td>

      <td valign="top">
         <span align="left" class="linktitle"> <a id="id_{$link.ID}" href="{$link.URL|escape}" title="{$link.TITLE|escape}"
         {* nofollow *}
         {if $link.NOFOLLOW or ($link.RECPR_VALID eq 0 and ($smarty.const.RECPR_NOFOLLOW eq 2 or ($smarty.const.RECPR_NOFOLLOW eq 1 and $link.RECPR_REQUIRED eq 1)))} rel="nofollow"{/if}
         {if $smarty.const.ENABLE_BLANK} target="_blank"{/if}>
         {$link.TITLE|escape}</a></span><br />
         <span class="linkshortdesc">{$link.DESCRIPTION|escape}</span>
         <br />
         <span class="linkurl">{$link.URL|escape} [ <a href="{if !$smarty.const.ENABLE_REWRITE}{$smarty.const.DOC_ROOT}/detail.php?id={$link.ID}
            {else}
            {$smarty.const.DOC_ROOT}/detail/link-{$link.ID}.html{/if}" title="{l}Read more about{/l}: {$link.TITLE|escape}">{l}Detail{/l}</a>
            {if $smarty.const.REQUIRE_REGISTERED_USER == 1 and !empty($regular_user_details) and ($regular_user_details.ID == $link.OWNER_ID)}, <a href="{$smarty.const.DOC_ROOT}/submit.php?linkid={$link.ID}" title="{l}Edit or Remove your link{/l}">{l}Review{/l}</a>
            {/if} ]</span>
      </td>
   </tr>
{if $smarty.const.SHOW_PAGERANK}
<tr>
<td>
{include file="pagerank.tpl" pr=$link.PAGERANK}
</td>
</tr>
{/if}
</tbody>
</table>
{/strip}

vegabond answered: Edit these line:

Code:
<td width="120">
<img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.URL|escape|trim}"  alt="{$link.TITLE|escape|trim}" width="119" height="90"  />
</td>

vcools answered: vegabond
Thanks, it’s working =)