Support Forums

Viewlisting2.tpl problems

This is a discussion on Viewlisting2.tpl problems within the Technical Support forums, part of the Technical Support Forums category; Hi, For my site truckandmachinery.com.au i am trying to modify the viewlisting2 page. A screen shot of what i have ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-28-2008, 04:03 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,040
Rep Power: 29
bowers01 is on a distinguished road
Default Viewlisting2.tpl problems

Hi,
For my site truckandmachinery.com.au i am trying to modify the viewlisting2 page. A screen shot of what i have done is here http://everythingsfree.org/image//im...dmachinery.jpg i ran into a problem with the features bar. I want it to meet with the listingextras2.tpl page(Loging to save favorites ect) The problem is because it is before the extra fields it is in the table, so i can widen the table but then when it is view of a screen with a different resolution it squishes up the listingextras2.tpl page. Eg http://everythingsfree.org/image//im...804notgood.JPG

Does anyone know a way to make the picture(Features) stretch to what it can before messing up the tables?
I have attached the code below.

Cheers,
Nick
www.Truckandmachinery.com.au

{* Display the breadcrumb *}
<p class="breadcrumb">
{if $friendly}
<a href="category/" class="breadcrumb">{$smarty.const.LANG_BROWSE_CATE GORIES}</a>
{else}
<a href="category.php" class="breadcrumb">{$smarty.const.LANG_BROWSE_CATE GORIES}</a>
{/if}
{foreach from=$breadcrumb item="entry"}
{$smarty.const.LANG_CAT_SEPERATOR} {$entry}
{/foreach}
</p>


{* Are you an administrator? *}
{if $smarty.session.userlevel==1}
{include file="viewlisting/listingadminlinks.tpl"}
{/if}
{* Now show the main table *}
<table class="tableborder">
<tr>
<th colspan="3"><strong>{$title}</strong></th>
</tr>

<tr>
<td valign="top" class="pformleft">



<table width="80%" border="0" cellpadding="0" cellspacing="3" class="norm">
{if $viewseller=="Y"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_SEL LER}:</strong></td>
<td class="borderright">
{if $preview!="Y"}
<a href="viewmember.php?member={$owner}">{$username}</a>
{else}
{$username}
{/if}
</td>
</tr>
{/if}
{if $viewaddress=="N"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_ADD RESS}:</strong></td>
<td class="borderright">{$address}</td>
</tr>
{/if}
{if $viewcity=="Y"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_CIT Y}:</strong></td>
<td class="borderright">{$city}</td>
</tr>
{/if}
{if $viewstate=="Y"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_STA TE}:</strong></td>
<td class="borderright">{$state}</td>
</tr>
{/if}
{if $viewcountry=="N"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_COU NTRY}:</strong></td>
<td class="borderright">{$country}</td>
</tr>
{/if}
{if $viewphone=="Y"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_PHO NE}:</strong></td>
<td class="borderright">{$phone}</td>
</tr>
{/if}
{if $viewprice=="Y"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_PRI CE}:</strong></td>
<td class="borderright">{$price|format_money}</td>
</tr>
{/if}
{if $viewdate=="N"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_DAT E_ADDED}:</strong></td>
<td class="borderright">{$dateadded|date_format:$datef ormat}</td>
</tr>
{/if}
{if $viewexpiration=="N"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_EXP IRATION}:</strong></td>
<td class="borderright">{$expirationdays} Day(s)</td>
</tr>
{/if}
{if $url<>""}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_EXT _URL}:</strong></td>
<td class="borderright">{$url|linkurl:45}</td>
</tr>
{/if}
{if $viewhits=="Y"}
<tr>
<td class="borderleft"><strong>{$smarty.const.LANG_VIE WS}:</strong></td>
<td class="borderright">{$hitcount}</td>
</tr>

<tr>
<th colspan="3"><strong>Features</strong></th>
</td>
{/if}
{* Extra Fields *}
{foreach from=$extrafields item=extras}
<tr>
<td class="borderleft"><strong>{$extras.title}:</strong></td>
<td class="borderright">
{if isset($extras.value)}
{foreach key=key item=item from=$extras.value}
{$item}<br />
{foreachelse}
{$extras.value}
{/foreach}
{/if}
</td>
</tr>

{/foreach}
{* End Extra Fields *}
</table>
<br>
</td>
<td valign="top" class="pformleft">
{if $preview!="N"}
{include file=viewlisting/listingextras2.tpl}
{/if}
</td>
</tr>
<tr>
<th colspan="3"><strong>Description</strong></th>
</td>

<tr>
<td <br />{$description|nl2br}</td>
</tr>
<tr>
<td colspan="2" valign="top" class="pformleft">
{* This the image display portion *}
<tr>
<th colspan="3"><strong>Photo's</strong></th>
</td>
{if $viewphotos=="Y"}
{if $data<>""}
{html_table_adv loop=$data cols=$cols table_attr='width="100%"'}
<a href="#" onMouseOver="window.status='View Large Image';return true" onMouseOut="window.status='';return true" onClick="window.open('{$smarty.const.URL}/viewimage.php?photo=[[id]]&wid[[width]]&height=[[height]]','_popup','width=[[width]],height=[[height]],directories=no,location=no,menubar=no,scrollbars= yes,status=no,toolbar=no,resizable=no,left=0,top=0 ,screenx=50,screeny=50');return false"><img src="thumbs/small_[[image]]" hspace="5" vspace="5" class="image" border="0" /></a><br />[[title]]
{/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 *}
</td>
</tr>
</table>
{if $pmon=="Y" && $smarty.session.uid > 0}

{elseif $allowcontact=="Y" && $display=="N"}
{include file=contact/contactowner.tpl}
{/if}
bowers01 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Log In Problems Kazza Technical Support 17 06-03-2008 02:38 PM


All times are GMT -4. The time now is 06:30 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0