Support Forums

how intensive would this be?

This is a discussion on how intensive would this be? within the Technical Support forums, part of the Technical Support Forums category; My client wants to display ads depending on what country is selected, and I know full well that this is ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 01-26-2009, 07:38 PM   #1
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 14
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  
Old 01-26-2009, 08:07 PM   #2
Developer & Moderator
 
Mike-N-Tosh's Avatar
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,426
Rep Power: 75
Mike-N-Tosh is just really nice Mike-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
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
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  
Old 01-26-2009, 08:46 PM   #3
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
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
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 01-27-2009, 04:34 PM   #4
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 14
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  
Old 01-27-2009, 04:53 PM   #5
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
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
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 01-27-2009, 04:59 PM   #6
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 14
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  
Old 01-27-2009, 07:13 PM   #7
Developer & Moderator
 
Mike-N-Tosh's Avatar
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,426
Rep Power: 75
Mike-N-Tosh is just really nice Mike-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
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
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  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 06:50 PM.


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