| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
What would be the best way to go about running multiple sites from 1 indexu database. For example lets say your directory contains categories like xbox, playstation, xbox360, etc and you wanna make a site that is focused only on xbox , how could I turn that particular category of content into another site just using a different template
|
| |||
|
If you want to use a single database you can do several installatiuons all with the same database, but if you want to show only some categories here and others there I don't understand the need for one database ? If you want this you have to cut all functions with global functions like index, hot, new and so on or you must change the sql request of each to a new defintion field you can set in each installation. Search may be easier because you can modify the drop down to your needings. If you ask me, forget the idea and do more installations... Frank |
| |||
|
Esm I had thought about making a sites table and then having a field in the link and category table that determined which sites the link or cat would show on. Main thing I wanna do is take a category and only have that category and its data appear on the domain |
| |||
|
on the 2nd install don't make any change to the database as this will effect your 1st install. Maunaly insert the category and links associated with it into index.html and delete the php tags that would call the other cats.
|
| |||
|
Well what I did was make a field in the links table to determine which sites the link shows on and a table called sites to store the details on all the sites I setup. I went ahead and split the link table up as well so instead of 1 table storing links it stores them in different tables based on category so I dont endup with 50,000 links in idx_link slowing my site down. I added all the configuration in application.php such as site id etc and now all I have to do is upload the main .php files to each site and it all works perfect. Everything I need to edit a site is in a theme folder all on 1 install so very little work to maintain as many sites as i want
|
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Database access problem | motoman | v5.x | 2 | 04-05-2005 01:40 PM |
| yet another unable to select a database | lindrix | v5.x | 6 | 03-21-2005 02:06 PM |
| Running indexu 3.1 under Apache/MacOSX | Mackey | v5.x | 8 | 08-05-2004 11:25 AM |
| Unable to select database | derekaross | v5.x | 1 | 04-28-2004 08:22 PM |
| How do I restore the database without having to run the install script? | malibber | v5.x | 8 | 06-05-2002 11:38 AM |