View Full Version : A better questions :) Adding thumbnails to Feature,Partners,Sponsers on main page.
kmcdowell73
02-13-2007, 09:36 PM
I know, that I have asked this questions but might have been clear as possible. I would like to place the thumbnails, for the items on the Features,Partners,and Sponsers links on the main page. I figured out how to add them on (with the help of others here on the links page.) but I would like to make the thumbnails to display on the frontpage.
using Version 2.0; patched 2.0.2
templete/ SkyStars_BLUE
Any suggestions. The thumnail feature is enable in 2.0 Pro, but its not not displaying the thumbnails on the mainpage.. only on the links.
Dave Baker
02-14-2007, 01:14 AM
Hello kmcdowell73,
Please try it:
***Open templates/yourTemplate/index.tpl and find code***
{foreach from=$partner_links item=link}
<div class="partner-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
***Replace with***
<table>
<tr>
<td valign="top" style="padding-right:10px"><img width="50px" height="50px" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" /></td>
<td><div class="partner-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div></td>
</tr>
</table>
***Save file***
***Open templates/yourTemplate/footer.tpl and find code***
{foreach from=$sponsored_links item=link}
<div class="sponsored-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
***Replace with***
{foreach from=$sponsored_links item=link}
<table>
<tr>
<td><img width="50px" height="50px" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" /></td>
<td><div class="sponsored-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div></td>
</tr>
</table>
{/foreach}
***find code***
{foreach from=$featured_links item=link}
<div class="featured-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
***Replace with***
{foreach from=$sponsored_links item=link}
<table>
<tr>
<td><img width="50px" height="50px" src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r={$link.url}" /></td>
<td><div class="sponsored-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div></td>
</tr>
</table>
{/foreach}
***Save file**
kmcdowell73
03-06-2007, 08:05 PM
That was the code I was looking for!.. Now the thumbsnails are displaying on the main page!.. I 've saved the code too!
Dave Baker
03-07-2007, 03:39 PM
You're welcome kmcdowell73!
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.