|
|
#1 |
|
Genius At Work
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 692
Rep Power: 17 ![]() |
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 |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110 ![]() |
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 |
|
|
|
|
|
#3 |
|
Genius At Work
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 692
Rep Power: 17 ![]() |
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. |
|
|
|
|
|
#4 |
|
Genius At Work
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 692
Rep Power: 17 ![]() |
Hi,
How can i only show one sellers items for the plugins such as featured listings? Cheers
__________________
Nick Bowers 68c v4.09 Developer |
|
|
|
|
|
#5 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,776
Rep Power: 110 ![]() |
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 |
|
|
|
|
|
#6 |
|
Genius At Work
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 692
Rep Power: 17 ![]() |
Once again Eric you have saved the day
Thank you Nick
__________________
Nick Bowers 68c v4.09 Developer |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |