Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4 Questions & Support

 
LinkBack Thread Tools Display Modes
Old 04-29-2009, 07:12 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 692
Rep Power: 17
bowers01 is on a distinguished road
Default Show Only Certain Sellers Items on Seperate Domain

Hi,
First off i have contacted a few developers and no one seemed interested.

For my site Buy And Sell Your New And Used Trucks, Buses And Machinery Free - TruckAndMachinery.Com.Au i want to offer people with a store to have their own domain hosted on my webserver connected to the same database.

Like what i have done with my other sites like Buy And Sell New Or Used Factory Equipment, Forklift & Cranes/Lifting - FactoryYard.Com.Au but have the abbility to make it only show certain users listings, then they can have their own template ect.

So all i need is a way to show only certain sellers items, i am guessing it would be done in listing.php but i cant figure it out. I want to do this manually for each domain name/upload so no module is needed and nothign needs to be automatic.

How can i do this?

Cheers
__________________
Nick Bowers
68c v4.09 Developer
bowers01 is offline   Reply With Quote
Old 04-29-2009, 09:13 AM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

Just edit includes/classes/kernel/Listings.php -> getAllListings() function.

Find this:
global $db, $class_tpl, $modules;

Then just below it add:
$options['owner'] = 2; //where 2 is the id of the owner.
__________________
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 04-29-2009, 10:04 AM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 692
Rep Power: 17
bowers01 is on a distinguished road
Default

EDIT: Thank you very much,
Fixed i was uploading to the wrong category, its too late at night.
How can i do the same for the featured listings plugins?
Cheers,
Nick
__________________
Nick Bowers
68c v4.09 Developer

Last edited by bowers01; 04-30-2009 at 05:53 AM.
bowers01 is offline   Reply With Quote
Old 04-30-2009, 06:18 PM   #4
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 692
Rep Power: 17
bowers01 is on a distinguished road
Default

Hi,

How can i only show one sellers items for the plugins such as featured listings?

Cheers
__________________
Nick Bowers
68c v4.09 Developer
bowers01 is offline   Reply With Quote
Old 04-30-2009, 09:35 PM   #5
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

Just edit the plugin and find the actual listing query and then add WHERE owner = 1 to it.
__________________
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 Yesterday, 05:32 AM   #6
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 692
Rep Power: 17
bowers01 is on a distinguished road
Default

Once again Eric you have saved the day
Thank you
Nick
__________________
Nick Bowers
68c v4.09 Developer
bowers01 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
Show all items in category bowers01 v4 Questions & Support 2 11-03-2008 06:42 PM
Displaying featured ads on a seperate webpage lorenww v3.1 Questions & Support 2 08-02-2007 03:08 PM
seperate types of ads Kavin v3.1 Questions & Support 0 07-25-2007 02:45 PM
How can I show sellers store in member.tpl.php darek v3.1 Modules & Modifications 0 12-14-2006 05:27 PM
Seperate listing package for certain usergroups? gdfinternet v3.0 Questions & Support 5 04-25-2006 06:55 PM


All times are GMT -4. The time now is 01:22 PM.


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