Support Forums

Old 02-02-2009, 10:56 PM   #1
Junior Member
 
Join Date: Feb 2009
Posts: 15
Rep Power: 1
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   Reply With Quote
Old 02-03-2009, 12:03 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,694
Rep Power: 108
Eric Barnes is a jewel in the rough
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
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 02-03-2009, 11:40 PM   #3
Junior Member
 
Join Date: Feb 2009
Posts: 15
Rep Power: 1
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   Reply With Quote
Old 02-04-2009, 08:26 AM   #4
Moderator
 
 
Join Date: Mar 2006
Posts: 4,039
Rep Power: 98
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by loudmouthclassifieds View Post
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.
(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
Lhotch is offline   Reply With Quote
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   Reply With Quote
Old 03-16-2009, 11:01 PM   #6
Junior Member
 
Join Date: Mar 2009
Posts: 9
Rep Power: 0
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   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 03:51 AM.


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