Support Forums

Old 06-14-2006, 04:25 AM   #1
Junior Member
 
Join Date: Jun 2006
Posts: 8
Rep Power: 0
mfarah01 is on a distinguished road
Default Removing fields from showlistings

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.
mfarah01 is offline   Reply With Quote
Old 06-14-2006, 06:11 AM   #2
Junior Member
 
Join Date: Jun 2006
Posts: 8
Rep Power: 0
mfarah01 is on a distinguished road
Default Resolved the problem

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}
mfarah01 is offline   Reply With Quote
Old 06-14-2006, 07:09 AM   #3
Senior Member
 
calaf6's Avatar
 
Join Date: Mar 2006
Location: UK
Posts: 339
Rep Power: 20
calaf6 is on a distinguished road
Default

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.
calaf6 is offline   Reply With Quote
Old 06-14-2006, 07:12 AM   #4
Junior Member
 
Join Date: Jun 2006
Posts: 8
Rep Power: 0
mfarah01 is on a distinguished road
Default

Quote:
Originally Posted by calaf6
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.
Thanks, that would have been much easier
mfarah01 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 09:20 PM.


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