Support Forums

Editting search listings fields

This is a discussion on Editting search listings fields within the v3.1 Questions & Support forums, part of the Legacy Help & Support category; How do I go about editting the search listig table fields? I've tinkered around with showlistings.tpl with limited success... I'd ...


Go Back   68 Classifieds Forums > Archives > Legacy Help & Support > v3.1 Questions & Support

Reply
 
Thread Tools Display Modes
Old 09-10-2006, 10:24 PM   #1
Senior Member
 
Join Date: Aug 2006
Posts: 121
Rep Power: 16
spaceboy is on a distinguished road
Default Editting search listings fields

How do I go about editting the search listig table fields?

I've tinkered around with showlistings.tpl with limited success...

I'd like to change the font size, width, color and alignment of the various columns... which goes beyond the power of the default css file. Also, I need to fix the way the "short description" currently still shows the text of the css style class.

What is the best way to assign new unique css classes to each column? The way I've done it works, but seems to nullify the highlight, bold, featured modifications to the style. Where do I find the class="{$entry.class}" code?

This is what I've done so far... it's a bit of a mess:

http://www.theabletrader.com/search.php just click "search"
__________________
Lindsay

developer v3.1.5 and v4
abletrader.com

Last edited by spaceboy; 09-11-2006 at 10:43 AM.
spaceboy is offline   Reply With Quote
Old 09-11-2006, 10:24 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,106
Rep Power: 120
Eric Barnes is a jewel in the rough
Default

Quote:
Where do I find the class="{$entry.class}"


That is assigned through the searchresults.php, category.php, and toplistings.php files. If you have the developer edition you can open them and probably search for something like $row['class'] or just search for featured and that should point you in the right direction.
__________________
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 09-12-2006, 02:23 AM   #3
Senior Member
 
Join Date: Aug 2006
Posts: 121
Rep Power: 16
spaceboy is on a distinguished road
Default

I'm still confused... I'm assuming class="{$entry.class}" is a css defined class used in several files? Is this correct?

If so, in which file is it's style define? is there another css file somewhere?
__________________
Lindsay

developer v3.1.5 and v4
abletrader.com
spaceboy is offline   Reply With Quote
Old 09-12-2006, 09:58 AM   #4
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,344
Rep Power: 44
Maffo is just really nice Maffo is just really nice
Default

Ok, in searchresults.php, category.php and toplistings.php 68 looks at your database to see if the advert is highlighted ,bolded or featured.

If you wish to change these you can a:

In the style sheet look for

PHP Code:
/* Featured Listings
 * td.featured handles the display of featured listings
 *
*/
td.featured{
    
background-color:#F1F1F1;
}
/* Highlighted Listings
 * td.highlighted handles the display of highlighted listings
 *
*/
td.highlighted{
    
/*background-color:#CAE6CE;*/
    
background-color:#FFF7D2;

Or the other method is to simply remove the {$entry.class} and put in your own class="myclass"

Hope this helps
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 09-12-2006, 10:02 AM   #5
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,344
Rep Power: 44
Maffo is just really nice Maffo is just really nice
Wink

Also you have an error in your code on showlistings.tpl

PHP Code:
<td class="highlighted"><a href="listing/4/Lifestand_Standing_Wheelchair.html"><strong>Lifestand Standing Wheelchair</strong></a>
          
          <
br />
          
         class=
"highlighted">The best standing wheelchair on the market wEmotion power-assistwheels.  &nbsp; <a href="listing/4/Lifestand_Standing_Wheelchair.html">more...</a></td
This is the code form your page. You can see that after the first hyperlink closes </a> you have a <br> and then class="highlighted">. You need to go in and remove this from the code
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extrafields to be displayed on the search results and category listings page objelland v3.1 Questions & Support 1 01-13-2007 09:50 AM
Aligning the "zip code," etc. search fields spaceboy v3.1 Modules & Modifications 5 09-09-2006 03:27 PM
Ad Preview, Search Custom Fields, and more summer v3.1 Suggestions and Feedback 1 08-09-2006 03:24 PM
Search Ranges on Custom Fields philmaw v3.1 Questions & Support 2 08-03-2006 08:55 AM
Search on Extra Fields LR v3.1 Questions & Support 10 07-28-2006 09:45 AM


All times are GMT -4. The time now is 02:58 AM.


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