Go Back   NiceCoder Community Forums > Nicecoder Products > IndexU > v3.2
Register Projects FAQ Members List Mark Forums Read

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2005, 11:56 PM
Registered User
 
Join Date: Nov 2004
Posts: 36
player77 is on a distinguished road
Default Running multiple domains from 1 database

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
  #2 (permalink)  
Old 07-12-2005, 04:32 PM
Registered User
 
Join Date: Jul 2002
Location: California
Posts: 57
AllenNance is on a distinguished road
Default

When you find out if it's possiable be sure to first purchase multiple licenses.
  #3 (permalink)  
Old 07-12-2005, 04:46 PM
Active Member
 
Join Date: Aug 2002
Location: Germany
Posts: 1,186
Frank71 is on a distinguished road
Default

Not needed...
Frank
  #4 (permalink)  
Old 07-12-2005, 08:59 PM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

with a single database, the only way I could think to do it would be to have a field in the appropriate tables ( idx_link, idx_category, etc ) so that you could modify the SQL query to add a WHERE clause using that field.

No small task.



.
__________________
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

.
  #5 (permalink)  
Old 07-13-2005, 04:23 AM
Active Member
 
Join Date: Aug 2002
Location: Germany
Posts: 1,186
Frank71 is on a distinguished road
Default

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
  #6 (permalink)  
Old 07-13-2005, 10:17 PM
Registered User
 
Join Date: Nov 2004
Posts: 36
player77 is on a distinguished road
Default

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
  #7 (permalink)  
Old 10-11-2005, 07:04 AM
Registered User
 
Join Date: Jul 2005
Posts: 87
vittle is on a distinguished road
Default

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.
  #8 (permalink)  
Old 10-11-2005, 01:54 PM
Registered User
 
Join Date: Nov 2004
Posts: 36
player77 is on a distinguished road
Default

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
  #9 (permalink)  
Old 10-24-2005, 06:58 AM
Registered User
 
Join Date: Jul 2005
Posts: 87
vittle is on a distinguished road
Default

Code:
Content visible to License Owner only.


cool! Sounds like a good way to do it!
Closed Thread

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
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

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 04:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate