Support Forums

active listings under category list

This is a discussion on active listings under category list within the Technical Support forums, part of the Technical Support Forums category; Hello everybody, At the end of my page category.php?cat=animals-pets there is a list of the different animals-pets advertisements. I would ...


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 06-09-2009, 09:00 AM   #1
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 15
magicosta is on a distinguished road
Default active listings under category list

Hello everybody,

At the end of my page category.php?cat=animals-pets there is a list of the different animals-pets advertisements.

I would like to modify the presentation of these adverts for each category.

Which template I have to edit to customize that?

Thank you for your help
magicosta is offline  
Old 06-09-2009, 09:01 AM   #2
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 15
magicosta is on a distinguished road
Default

Sorry, I forgot to mention that I run v 4.1.3 dev default template!!
magicosta is offline  
Old 06-09-2009, 09:05 AM   #3
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by magicosta
Hello everybody,

At the end of my page category.php?cat=animals-pets there is a list of the different animals-pets advertisements.

I would like to modify the presentation of these adverts for each category.

Which template I have to edit to customize that?

Thank you for your help
If you edit your forum profile you can put you 68C version details in your forum signature that will it will appear at the bottom of all your posts and you wont have to keep typing it.

As to your question, im not certain I am following you. You have a category called animals-pets and within it some sub cats. Are you wanting to have those subcats each have its own look and feel?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-09-2009, 09:36 AM   #4
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 15
magicosta is on a distinguished road
Default

Thank you Larry, I will do it.

What I have done already is, I have change line 94 ( if(isset($sec)){$options['section']=$sec;} ) and line 28 ( $showlistings='Y'; ) in category.php to display all active listings under category list.

So, when I click on "browse" I arrive on page "category.php" which is dispaying all the categories. Then, I click on Animals/Pets and arrive on page category.php?cat=animals-pets. In that page, there is of course all the sub-categories for Animals/Pets section and under all the sub-categories, there is a mixed of animals adverts.

I would like to customize the way that it is displaying, text, image and cells.

Well, If I can do that for both, categories and sub-categories, it is much better of course.

I have joined an image.


Thank you for your help
Attached Images
File Type: jpg Yahoo207.jpg (80.2 KB, 14 views)
magicosta is offline  
Old 06-09-2009, 10:13 AM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

I think what you are looking for is the showlistings.tpl template.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-09-2009, 02:10 PM   #6
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 15
magicosta is on a distinguished road
Default

Thank you Larry.

I am trying to find out the code to modify the presentation in showlistings.tpl but till now I am not successfull!!

Which lines I have to look at?

Thanks for your help
magicosta is offline  
Old 06-09-2009, 02:19 PM   #7
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by magicosta
Thank you Larry.

I am trying to find out the code to modify the presentation in showlistings.tpl but till now I am not successfull!!

Which lines I have to look at?

Thanks for your help
That depends on exactly what you are trying to do.

All of the ads are contained in a table. The fields that are displayed is largely based on how you have the settings for the user group who is viewing the web site.

A table is created at line 58 of the template, followed by a standard html table row and then table header cells based on the admin settings for the user group. The header cells are closed, table row closed and then at line 87 you have the following...

{foreach from=$results item="entry"}

The data for the ads is passed to the template as an array. This arrays is looked at one dimension at a time and for each dimension a new table row is created. For each variable that the user group is supposed to see a table cell is created holding the variable. The table data cell closed, row closed and the next dimension of the array is handled and the above steps repeated.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-09-2009, 07:02 PM   #8
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 15
magicosta is on a distinguished road
Default

Thanks very much for your explanations.

I got now my problem sorted out.
magicosta is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display ALL active listings under category list marketingsolutions Technical Support 44 10-14-2009 03:27 PM
Listings in admin are active... but expired?? Tim_A Technical Support 1 03-03-2009 10:51 AM
Listings not made active automatically when updating nagrap2 Technical Support 2 01-22-2009 01:04 PM
Listings 'Not Active' tdisraeli Technical Support 6 10-03-2008 01:37 PM


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


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