Support Forums

Show new listings of only one category / Disable prices

This is a discussion on Show new listings of only one category / Disable prices within the TemplateCodes forums, part of the Third Party Support category; Hi everyone, In my accordion sidebar, instead of showing all most viewed listings, I'd like to show only new listings ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 11-19-2010, 08:09 AM   #1
Customer
 
Join Date: Nov 2010
Location: Just outside Paris, France
Posts: 11
Rep Power: 4
Miander is on a distinguished road
Default Show new listings of only one category / Disable prices

Hi everyone,

In my accordion sidebar, instead of showing all most viewed listings, I'd like to show only new listings of one single category.
I already changed most viewed to new listings.

Say I have 3 cats : Cat1, Cat2 and Cat3.

How can I show only new listings of Cat1 ?


Also, as my website won't exactly be about buying and selling objects, but more of a jobboard, I don't want prices to show under my featured - new - top listings on my homepage (smkorby has a good image of what I'm talking about in his thread)

I have tried preventing all users - even admins - to see prices, but they still appear on the home page...
__________________
Designer v4.2.1 - Neo Blue Template

Last edited by Miander; 11-19-2010 at 08:13 AM.
Miander is offline   Reply With Quote
Old 11-19-2010, 08:22 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,361
Rep Power: 85
seymourjames is a jewel in the rough
Default

To stop prices being shown you need to edit

modules/custom_plugins/plugins/function.css_listings_horizontal.php

this line $show_price = 'Y';

You will need to modify the code on your other request in

modules/templatezones/templates/accordion.tpl

The specific part is calling the a plugin. You would need to modify this to pick out the category you want. Again you should be able to work this out from the instructions on how to make a list from just one category.

{css_listings_horizontal number=5 type="top" list="true" truncate=true truncate_end="17" truncate_suffix="..."}
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 11-19-2010, 08:27 AM   #3
Customer
 
Join Date: Nov 2010
Location: Just outside Paris, France
Posts: 11
Rep Power: 4
Miander is on a distinguished road
Default

Wow, you're fast !
And thorough !

Thanks a lot.
__________________
Designer v4.2.1 - Neo Blue Template
Miander is offline   Reply With Quote
Old 11-19-2010, 09:03 AM   #4
Customer
 
Join Date: Nov 2010
Location: Just outside Paris, France
Posts: 11
Rep Power: 4
Miander is on a distinguished road
Default

Okay, I'm sorry, I'm loosing my mind.

I meant multiple categories. Is there a way to show listings of multiple, but not all categories ?
I na�vely thought a parent category would show listings in its sub-categories.

So I have :
Cat1
> SubCat1
> SubCat2
> SubCat3
Cat2

I want to show listings of SubCat1, 2 and 3 in the accordeon. Is that possible ?

(Sorry I made you repeat what you already said in the instructions, David...)
__________________
Designer v4.2.1 - Neo Blue Template
Miander is offline   Reply With Quote
Old 11-19-2010, 12:40 PM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,361
Rep Power: 85
seymourjames is a jewel in the rough
Default

No, the plugin will not do this in a single call. You would need to modify it to showlistings from just some categories. an idea which should work. You could use the plugin call several times in the accordion, one for each category you want and to display just one link. That may work.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 11-20-2010, 03:53 AM   #6
Customer
 
Join Date: Nov 2010
Location: Just outside Paris, France
Posts: 11
Rep Power: 4
Miander is on a distinguished road
Default

Ok that works. Thanks !
__________________
Designer v4.2.1 - Neo Blue Template
Miander is offline   Reply With Quote
Reply

Tags
disable prices , listings , single category

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show listings from every category jonten123 Customizations 2 12-30-2009 03:20 PM
Show listings in that category 4.1.6 damiun Technical Support 1 10-15-2009 08:38 AM
How to show listings on browse category page? rdouglas Technical Support 3 06-24-2009 07:11 AM


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


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