|
|
#1 |
|
Junior Member
Join Date: Feb 2009
Posts: 15
Rep Power: 1 ![]() |
Is there a way to show featured ads under different categories or is it only possible to show them on the home page?
Thanks....Ray |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,694
Rep Power: 108 ![]() |
Sure you can use the featured listings plugin in any of your template files:
Feature Listings Horizontal - 68 Classifieds
__________________
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2009
Posts: 15
Rep Power: 1 ![]() |
what if you want to post say only the "auto" featured ads in the auto category and only the "pet" featured ads in the pet category?
Thanks....Ray |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Mar 2006
Posts: 4,039
Rep Power: 98 ![]() ![]() |
Thats currently not supported by the plugin but if you know PHP you should be able to use the existing plugin as a base and add that functionality in without too much trouble.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Aug 2008
Posts: 5
Rep Power: 0 ![]() |
I have the same challenge - I want the featured listing(s) for a a specific category to show up in that category, not in all categories because they don't apply and tend to look "over" advertised or like an error.
Right now my site is empty (WakeTrader - New and Used Wakeboard Boats, Wakeboards, and Watersports Gear For Sale) but when I had listings it also seemed like the categories were empty when someone would first arrive because the default text is "We are sorry no items were found. ". I need to change that wording as well. I turned of the counter option because I wanted visitors to go exploring. A few category specific featured listings on the front page of the category/sub-category would definitely help. How many featured listings will show at one time anyway? Is there a way to control that? I've also been thinking of moving the featured listings above the Browse Categories on my main/index page but don't want to totally fill the page with listings and knock the categories way down out of sight. Thanks- Berg |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Mar 2009
Posts: 9
Rep Power: 0 ![]() |
Hi guys,
In order to achieve this functionality, I edited a few lines of code in plugins/function.feature_listings_horizontal.php Simply replace this code (starting on line 78) Code:
$sSQL="SELECT id,title,price FROM ".PREFIX."listings WHERE display = 'Y' AND expiration > NOW()";
if($featured=='Y')
{
$sSQL.=" AND featured = 'Y'";
}
if($owner > 0)
{
$sSQL.=" AND owner=".$owner;
}
Code:
$sSQL="SELECT L.id, L.title, L.price FROM ".PREFIX."listings L WHERE display = 'Y' AND expiration > NOW()";
if($_GET["cat"] != NULL) {
$sSQL="SELECT L.id, L.title, L.price
FROM ".PREFIX."listings L
LEFT JOIN ".PREFIX."categories C ON (L.section = C.id)
WHERE L.display = 'Y'
AND L.expiration > NOW()
AND C.name='".$_GET["cat"]."'";
}
if($featured=='Y') {
$sSQL.=" AND L.featured = 'Y'";
}
if($owner > 0) {
$sSQL.=" AND L.owner=".$owner;
}
Perhaps it can help create a true user-friendly plugin or get included in some future release. Cheers! |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| V4 new features question | pepe420 | v4 Questions & Support | 9 | 12-30-2007 05:40 AM |
| Features | Jessej | v3.1 Questions & Support | 1 | 11-13-2007 09:10 PM |
| comparison of v3 vs v4 features | vissa | v4 Questions & Support | 1 | 10-18-2007 08:34 AM |
| v4 New Features | bikesource | v4 Questions & Support | 1 | 05-25-2007 08:39 AM |
| New Features In Next Release of 68? | bgordon | Pre Sales Questions | 0 | 01-03-2007 05:53 PM |