Support Forums

Adjustment needed to viewlisting.tpl

This is a discussion on Adjustment needed to viewlisting.tpl within the Technical Support forums, part of the Technical Support Forums category; yoursite/templates/yourtemplate/viewlisting.tpl It's calling the old files so just strip out the .php extension in the following four places; Code: {if ...


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 10-22-2007, 08:28 AM   #1
Just get on with it!
 
michael's Avatar
 
Join Date: Jan 2007
Location: Milton Keynes, England
Posts: 461
Rep Power: 29
michael is just really nice michael is just really nice
Default Adjustment needed to viewlisting.tpl

yoursite/templates/yourtemplate/viewlisting.tpl

It's calling the old files so just strip out the .php extension in the following four places;

Code:
 
{if $preview!="Y"}
 {* Display the breadcrumb *}
 {include file="categories/breadcrumb.tpl.php"}
 {* Are you an administrator? *}
 {if $smarty.session.userlevel==1}
  {include file="viewlisting/listingadminlinks.tpl.php"}
 {/if}
{/if}
{* Now show the main table *}
<table class="tableborder">
 <tr>
   <th colspan="2"><strong>{$title}</strong></th>
 </tr>
 <tr>
  <td valign="top">
  <table width="100%" border="0" cellpadding="0" cellspacing="3" class="norm">
       {if $viewseller=="Y"}
   <tr> 
    <td><strong>{$smarty.const.LANG_SELLER}:</strong></td>
    <td>
     {if $preview!="Y"}
      <a href="viewmember.php?member={$owner}">{$username}</a>
     {else}
      {$username}
     {/if}
    </td>
   </tr>
   {/if}
   {if $viewaddress=="Y"}
   <tr>
    <td><strong>{$smarty.const.LANG_ADDRESS}:</strong></td>
    <td>{$address}</td>
   </tr>
   {/if}
   {if $viewcity=="Y"}
   <tr>
    <td><strong>{$smarty.const.LANG_CITY}:</strong></td>
    <td>{$city}</td>
   </tr>
   {/if}
   {if $viewstate=="Y"}
   <tr>
    <td><strong>{$smarty.const.LANG_STATE}:</strong></td>
    <td>{$state}</td>
   </tr>
   {/if}
   {if $viewcountry=="Y"}
   <tr> 
    <td><strong>{$smarty.const.LANG_COUNTRY}:</strong></td>
    <td>{$country}</td>
   </tr>
   {/if}
   {if $viewphone=="Y"}
   <tr> 
    <td><strong>{$smarty.const.LANG_PHONE}:</strong></td>
    <td>{$phone}</td>
   </tr>
   {/if}
   {if $viewprice=="Y"}
   <tr> 
    <td><strong>{$smarty.const.LANG_PRICE}:</strong></td>
    <td>{$price|format_money}</td>
   </tr>
   {/if}
   {if $viewdate=="Y"}
   <tr>
    <td><strong>{$smarty.const.LANG_DATE_ADDED}:</strong></td>
    <td>{$dateadded|date_format:$dateformat}</td>
   </tr>
   {/if}
   {if $viewexpiration=="Y"}
   <tr> 
    <td><strong>{$smarty.const.LANG_EXPIRATION}:</strong></td>
    <td>{$expirationdays} Day(s)</td>
   </tr>
   {/if}
   {if $url<>""}
   <tr> 
    <td><strong>{$smarty.const.LANG_EXT_URL}:</strong></td>
    <td>{$url|linkurl:30}</td>
   </tr>
   {/if}
   {if $viewhits=="Y"}
   <tr> 
    <td><strong>{$smarty.const.LANG_VIEWS}:</strong></td>
    <td>{$hitcount}</td>
   </tr>
   {/if}
   {* Extra Fields *}
   {foreach from=$extrafields item=extras}
   <tr>
    <td><strong>{$extras.title}:</strong></td>
    <td>
     {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 *}
   {if $description<>""}
   <tr> 
    <td colspan="2"><strong>{$smarty.const.LANG_DESCRIPTION}: </strong><br />{$description|nl2br}</td>
   </tr>
   {/if}
  </table>
<br />
      </td>
        <td valign="top">
      {if $viewphotos=="Y" && $data <> ''}
     {foreach from=$data item=image}
       <p><a href="#" onMouseOver="window.status='View Large Image';return true" onMouseOut="window.status='';return true" onClick="window.open('{$smarty.const.URL}/viewimage.php?photo={$image.id}&width={$image.width}&height={$image.height}','_popup','width={$image.width},height={$image.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.image}" hspace="5" vspace="5" class="image" border="0" alt="{$image.title}" /></a><br />{$image.title}</p>
    {foreachelse}
    <img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" />
     {/foreach}
   {else}
    <img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" />
      {/if}
      <p> </p>
   </td>
  </tr>
</table>
{if $preview!="Y"}
 {include file=viewlisting/listingextras.tpl.php}
{/if}
<p> </p>
{if $pmon=="Y" && $smarty.session.uid > 0}
{elseif $allowcontact=="Y" && $display=="Y"}
 {include file=contact/contactowner.tpl.php}
{/if}
__________________
M Michael
V4.1.9 Developer - Modified 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline  
Closed Thread

Thread Tools
Display Modes



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


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