Support Forums

Features Ads

This is a discussion on Features Ads within the Technical Support forums, part of the Technical Support Forums category; Is there a way to show featured ads under different categories or is it only possible to show them on ...


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 02-02-2009, 10:56 PM   #1
Junior Member
 
Join Date: Feb 2009
Posts: 27
Rep Power: 7
loudmouthclassifieds is on a distinguished road
Default Features Ads

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
loudmouthclassifieds is offline  
Old 02-03-2009, 12:03 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,467
Rep Power: 130
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Sure you can use the featured listings plugin in any of your template files:
Feature Listings Horizontal - 68 Classifieds
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 02-03-2009, 11:40 PM   #3
Junior Member
 
Join Date: Feb 2009
Posts: 27
Rep Power: 7
loudmouthclassifieds is on a distinguished road
Default

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
loudmouthclassifieds is offline  
Old 02-04-2009, 08:26 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,229
Rep Power: 128
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 loudmouthclassifieds
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
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

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 02-19-2009, 01:11 PM   #5
Junior Member
 
Join Date: Aug 2008
Posts: 5
Rep Power: 0
berg is on a distinguished road
Default

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
berg is offline  
Old 03-16-2009, 11:01 PM   #6
Junior Member
 
Join Date: Mar 2009
Posts: 16
Rep Power: 6
bedouin is on a distinguished road
Default a partial solution

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;
}
with this modified code
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;
}
Even though it is not the most elegant solution, I tried it and it seems to work...
Perhaps it can help create a true user-friendly plugin or get included in some future release.

Cheers!
bedouin is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
V4 new features question pepe420 Technical Support 9 12-30-2007 05:40 AM
comparison of v3 vs v4 features vissa Technical Support 1 10-18-2007 08:34 AM
v4 New Features bikesource Technical 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


All times are GMT -4. The time now is 01:10 AM.


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