Support Forums

Feature Listings Horizontal Limit to Owner

This is a discussion on Feature Listings Horizontal Limit to Owner within the Templates, HTML, CSS, and Design Help forums, part of the General category; I have been trying to filter the results of Feature Listings Horizontal... according to the documentation , the Owner variable ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 12-07-2009, 12:58 PM   #1
Customer
 
Join Date: Jun 2008
Location: Maldives
Posts: 134
Rep Power: 16
business is on a distinguished road
Default Feature Listings Horizontal Limit to Owner

I have been trying to filter the results of Feature Listings Horizontal... according to the documentation, the Owner variable is available. But when I set it to a specific seller, the result does not seem to be filtered. I even modified the file function.feature_listings_horizontal.php and added owner=xxx in the SQL query. But still no change in the result. What do I need to do?
__________________
v 4.2.0 Developer - Default Template
business is offline   Reply With Quote
Old 12-07-2009, 01:36 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

owner= x where x is an integer or use the ownerid variable if it is available.

feature_listings_horizontal number=8 cols=3 owner=X .......
__________________
"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 12-08-2009, 08:55 AM   #3
Customer
 
Join Date: Jun 2008
Location: Maldives
Posts: 134
Rep Power: 16
business is on a distinguished road
Default

I used the code below, but the result it not filtered to the owner 263.

Code:
{feature_listings_horizontal number=8 cols=4 owner=263 featured="N" table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'}
__________________
v 4.2.0 Developer - Default Template
business is offline   Reply With Quote
Old 12-08-2009, 09:03 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
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 business
I used the code below, but the result it not filtered to the owner 263.

Code:
{feature_listings_horizontal number=8 cols=4 owner=263 featured="N" table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'}
I dont beleive the owner variable is built into the default 68C plugin, maybe it is in the templatecode one. This means you will need to edit the default one to handle passing the userid to the script and alter the database query accordingly.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 12-08-2009, 09:18 AM   #5
Customer
 
Join Date: Jun 2008
Location: Maldives
Posts: 134
Rep Power: 16
business is on a distinguished road
Default

could be so..
but the documentation link i referred to in my first post was from 68C Documentation. So I am assuming it is supported in the default module too.
__________________
v 4.2.0 Developer - Default Template
business is offline   Reply With Quote
Old 12-08-2009, 09:20 AM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

I would not know what the default plugin does but the documentation does infer that you can put the owner in.

Feature Listings Horizontal - 68 Classifieds
__________________
"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 12-08-2009, 09:24 AM   #7
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
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 business
could be so..
but the documentation link i referred to in my first post was from 68C Documentation. So I am assuming it is supported in the default module too.
Your right, I just looked at the comments at the top of the plugin and it did not show the owner as a valid variable. However looking down into the code further I do see there is an owner variable defined.


I would open the plugin file and goto around line 87 and look for the following couple lines of code....

PHP Code:
$sSQL.=" ORDER BY rand() LIMIT ".$number;
$result=$db->query($sSQL); 
and then between them echo the contents of the $sSQL variable to see what its using....

PHP Code:
$sSQL.=" ORDER BY rand() LIMIT ".$number;
echo 
"$sSQL";
$result=$db->query($sSQL); 
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
v4.0.x feature listings horizontal with scrolling arrow? hel68c Modules / Plugins / Modifications 4 07-07-2009 03:57 PM
v4.0.x how to random listings in function feature listings horizontal hel68c Modules / Plugins / Modifications 2 07-02-2009 01:27 PM
feature listing horizontal table problems magicosta Technical Support 0 06-06-2009 05:23 PM
How to make Horizontal Feature Listings 3 Rows deep? Bronxgodzilla Technical Support 7 03-06-2009 05:52 AM
css horizontal feature oteenc Modules / Plugins / Modifications 3 01-12-2009 09:57 AM


All times are GMT -4. The time now is 11:48 AM.


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