Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4.1 Questions & Support

Notices

 
LinkBack Thread Tools Display Modes
Old 08-28-2009, 04:59 AM   #1
Junior Member
 
lowis's Avatar
 
Join Date: Aug 2009
Location: Sweden
Posts: 13
Rep Power: 1
lowis is on a distinguished road
Default Costumcats help me

I just to install module customcats, but i would like to add other col for
example states, but i dont know how do it, would you like to tell me step by
step, I am not very good in php code

I want this

Photo State Title Price
__________________
68C V 4.1.5
Template Default
lowis is offline   Reply With Quote
Old 08-28-2009, 03:05 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,191
Rep Power: 120
Eric Barnes is a jewel in the rough
Default

You would need to edit the custom category file you created. It is basically html with the smarty tags added.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-28-2009, 06:15 PM   #3
Junior Member
 
lowis's Avatar
 
Join Date: Aug 2009
Location: Sweden
Posts: 13
Rep Power: 1
lowis is on a distinguished road
Default I did it !!

Well you answear wasnt so clear but i just to edit noprice.tpl and work!

this is the code that I modified I hope that somebody will help in the future.

noprice.tpl:

<table class="main" width="100%">
<tr>
{if $sDisPhoto == "Y"}
<th scope="col">{$smarty.const.LANG_PHOTO}</th>
{/if}
{if $sDisState == "Y"}
<th scope="col">{$smarty.const.LANG_STATE}</th>
{/if}

{if $sDisTitle == "Y"}
<th scope="col"><a href="{$file}?{$querystring_title}" class="sortheader">{$smarty.const.LANG_TITLE}</a> {if $sqlsort=="title"}<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/sort{$oppositesort}.gif" border="0" alt="Sort" />{/if}</th>
{/if}
{if $sDisPrice == "Y"}
<th scope="col">{$smarty.const.LANG_PRICE}</th>
{/if}
<th scope="col">{$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" alt="{$entry.title}" />{else}<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophotosmall.gif" border="0" alt="{$entry.title}" />{/if}</a></td>
{/if}
{if $sDisState == "Y"}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.state}</td>
{/if}

{if $sDisTitle == "Y"}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.title}</td>
{/if}
{if $sDisPrice == "Y"}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.price}</td>
{/if}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>
<a href="{$entry.link}">{$smarty.const.LANG_VIEW_LIST ING}</a>
</td>
</tr>
{foreachelse}
<tr>
<td colspan="9" align="center">{$smarty.const.LANG_SEARCH_NO_RESUL TS}</td>
</tr>
{/foreach}
</table>
__________________
68C V 4.1.5
Template Default
lowis 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



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


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