Support Forums

Old 01-26-2009, 06:38 PM   #1
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 70
Rep Power: 3
DGiscombe is on a distinguished road
Default how intensive would this be?

My client wants to display ads depending on what country is selected, and I know full well that this is a bad idea as I'm sure a lot of categories with (0) next to it .

The only way I can think to make this happen is to make the countries as parent categories (23 of them!) and make a set of child/parent categories under each of them (64 I think).

So that makes it about 138 or categories. Will this seize the site up, or should I just advise them to buy a very very good dedicated server?
DGiscombe is offline   Reply With Quote
Old 01-26-2009, 07:07 PM   #2
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,337
Rep Power: 40
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

The number of categories that you have isn't really going have much affect on the server or the script. I wouldn't be concerned there.

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 01-26-2009, 07:46 PM   #3
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,780
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

Really the only affect I have seen with tons and tons of categories is to turn of the number of category listings. The way these are pulled out is pretty intensive. Of course if you are getting a lot of ads it may be wise to use some type of server caching and so forth.
__________________
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 01-27-2009, 03:34 PM   #4
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 70
Rep Power: 3
DGiscombe is on a distinguished road
Default

Is there an easier way to duplicate a batch of categories and setting them to a different parent?

At the moment I'm pressing the duplicate button, changing the slug to make it unique and changing the parent.

Is there an SQL solution to this?
DGiscombe is offline   Reply With Quote
Old 01-27-2009, 03:53 PM   #5
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,780
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

I am sure that is possible. Although if you know a little php the best way may be to have your main categories but limit the listings displayed based off the country the selected. To go that route you would just look in the Listings class "getAllListings()" and modify the query.
__________________
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 01-27-2009, 03:59 PM   #6
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 70
Rep Power: 3
DGiscombe is on a distinguished road
Default

I wouldn't know how to do that.

I'll carry on with this method then, 1200 to go :|
DGiscombe is offline   Reply With Quote
Old 01-27-2009, 06:13 PM   #7
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,337
Rep Power: 40
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

The easiest method would be if you have access to the mysql database directly with phpMyadmin. Just make the list in Excel. Save as a csv file. Import it in phpMyAdmin.

That's how I always set up new classifieds sites, because it's so much faster and easier to work with in Excel.

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh 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



All times are GMT -4. The time now is 04:31 PM.


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