|
|
#1 |
|
Junior Member
Join Date: Jun 2006
Posts: 8
Rep Power: 0 ![]() |
Hi
I hope someone can help. I am trying to modify the appearance of the showlistings template. I am trying to remove all but the following fields; Photo, Title, View Listing and insert the Description field between title and view listing. I have tried doing this myself but keep getting smarty \ php errors and so I assume I am going wrong somewhere. Any help would be appreciated. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jun 2006
Posts: 8
Rep Power: 0 ![]() |
Hi all
Played around with the php code and got all the fields removed. Still not certian whether I will add in description so will come back if I decided to do that. Out of interest here is my re-worked code; Code:
{if $sDisPhoto == "Y"}
<th>{$smarty.const.LANG_PHOTO}</th>
{/if}
{if $sDisTitle == "Y"}
<th>{$smarty.const.LANG_TITLE}</th>
{/if}
<th>{$smarty.const.LANG_VIEW_LISTING}</th>
</tr>
{foreach from=$results item="entry"}
<tr>
{if $sDisPhoto == "Y"}
<td{if $entry.class<>""} class="{$entry.class}"{/if}><a href="{$entry.link}">{if $entry.image != ""}<img src="thumbs/small_{$entry.image|escape:"url"}" border="0" />{else}<img src="images/nophotosmall.gif" border='0' />{/if}</a></td>
{/if}
{if $sDisTitle == "Y"}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.title}</td>
{/if}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>
<a href="{$entry.link}">{$smarty.const.LANG_VIEW_LISTING}</a>
</td>
</tr>
{foreachelse}
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2006
Location: UK
Posts: 339
Rep Power: 20 ![]() |
You can do it through the user group settings in admin panel, just clicl on modify the user group and you can choose what each group can see in the browse and actual listing.
|
|
|
|
|
|
#4 | |
|
Junior Member
Join Date: Jun 2006
Posts: 8
Rep Power: 0 ![]() |
Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Required fields not required when adding an ad | pat01 | v3.1 Questions & Support | 2 | 08-14-2006 08:56 AM |
| Extra fields on Category.php | Maffo | v3.1 Questions & Support | 6 | 07-17-2006 06:06 PM |
| Extra Fields in Showlistings.tpl.php | juven14 | v3.1 Modules & Modifications | 15 | 06-20-2006 10:44 AM |