Anyone have some code they can paste over to make the first full size image of each listing display? An example is this -
http://www.oceanlakesclassifieds.com...-Highrise.html
Something like this would make the listing pages stand out.
I found this thread -
http://www.68classifieds.com/forums/...ht=viewlisting but it's almost a year old, and seems to be for v3
This is what I've come up with next, but gives me an error when I display the page.
Code:
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="761">
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> <script type="text/javascript" language="javascript">
function showPic (whichpic) {
if (document.getElementById) {
document.getElementById('placeholder').src = whichpic.href;
if (whichpic.title) {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
} else {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
}
return false;
} else {
return true;
}
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80%">
<p align="center">
<img id="placeholder" src="photos/img_1442.jpg" alt="" class="imageborder" width="400" height="300" /></p>
<strong><p align="center" id="desc">[[title]]</p></strong>
</td>
<td>
<DIV STYLE="height:320px; width:170px;overflow:auto">
<div align="center">
{* This the image display portion *}
{if $viewphotos=="Y"}
{if $data<>""}
{html_table_adv loop=$data cols=$cols table_attr='width="100%"'}
<a onclick="return showPic(this)" href="{$smarty.const.URL}/viewimage.php?photo=[[id]]" title="[[title]]">
<img src="thumbs/small_[[image]]" hspace="5" vspace="5" border="0" class="imageborder" width="150" height="113" /></a>
{/html_table_adv}
{else}
<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" />
{/if}
{/if}
{* This ends the image display portion *}
</div>
</div>
</td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
</table>