regional home page/shared Db etc

Hi,

Interested in regional home pages but sharing the larger Db. I guess in sub-domains install D7 and have it use common Db but seems like a lot of wasted space with separate installs.  Is there a way to have separate index pages in sub-domains using a common D7 install?

Can D7 use different or search different Db's such as regional and larger population or restricted to one Db for what ever you are going to do?  Or is there a way to partition or separate a Db to search particular sub Db to accomplish.

Don't know too much about what you can or cannot do with Dbs.

Thanks,

Kingston

Quote · 22 Jan 2010

I am also looking to do something like this.

Simple example:

MyDolphin7.com > Default language is English, and United States is the default Country. The profiles that show up in Members, Leaders, Featured... Are from the United States.

MyDolphin7.de > Default language is German, and Germany is the default Country. The profiles that show up in Members, Leaders, Featured... Are from the Germany.

The two sites would share the same database. If you sign up at MyDolphin7.com you are a member of MyDolphin7.de as well.

I know there are going to be issues with the Dolphin Licenses as Boonex links them to the domain name. (I have tested D7, and even sub domains require there own license) Lets just assume for now that 'secondary' sites will run without a License.

Light man a fire keep him warm for a night, light him ON fire & he will be warm the rest of his life
Quote · 22 Jan 2010

I'm dealing with sub-domains with the various extensions forwarding to the sub-domain much like yahoo.ca forwards to ca.yahoo.com.  Of course I'm speaking of previous Dolphin versions but there was confirmation from Boonex that a license woul work for the domain and any sub-domains of the same domain.  That is the reason for the forwarding to subdomains so that my full license would work for all the sub-domains.

I'm still wondering about db structure to make what we want happen... I mean countries can be sorted as D7 does that already but if we could have a unique index them html inserts could be specific for people of that country/language.

Anyone know the answer...

1) sub-domains should work with full license?

2) multiple index pages and Db structures?

Kingston

 

Quote · 22 Jan 2010

This is a start...

edit file inc/header.inc.php around line 23 change:

from:    $site['url']               = "http://www.YourSite.com/"

to:        $site['url']               = 'http://' . $_SERVER['HTTP_HOST'] . '/';

This will allow you to use any domain to show the same site...

I'm still testing it, but so far no issues.

Light man a fire keep him warm for a night, light him ON fire & he will be warm the rest of his life
Quote · 22 Jan 2010

This would appear to require a full install in each domain? 

If we were doing a full install in each domain, then couldn't we just edit the Db reference instead to have all domain installations sharing the same Db.  Then each install could have different customizations like index html inserts, and what is selected to be displayed?

Is this an attempt at the lic issues? I'll get some time this weekend but I'm thinking there should be no reason for sub-domains not to function on the same full lic.

 

 

 

 

Quote · 23 Jan 2010

This is a start...

edit file inc/header.inc.php around line 23 change:

from:    $site['url']               = "http://www.YourSite.com/"

to:        $site['url']               = 'http://' . $_SERVER['HTTP_HOST'] . '/';

This will allow you to use any domain to show the same site...

I'm still testing it, but so far no issues.

This would not require any additional installs.  The $_SERVER['HTTP_HOST']  code inserts the current domain into the config file in the form of www.domain.com  the rest of the code is just to add the http:// before www.domain.com and the / after.

Basically, Dolphin checkes every page load to make sure your on the right domain, and automatically configures URLs based on $site['url']

You can setup your Domain for 'wild card DNS' like *.youdomain.com sends all requests to your server. All of your sub domains will show the same site.

But we don't really want to show 100% the same site. This is only the first step. The then next thing to do / try is changing the actual index page code.

You can do stuff like this (not actual code):

If ($_SERVER['HTTP_HOST'] == "sub1.mydomain.com"){

Show Country1;

Else

Show Defaults;

}

Light man a fire keep him warm for a night, light him ON fire & he will be warm the rest of his life
Quote · 23 Jan 2010

Ok, still have to work on Db issue.  Although multiple install should be able to share a single Db, I'm assuming.

License is an issue but I may have solved it for my subdomains.  I checked and if multiple installs are done in subfolders then only one license required.  Then have subdomain forward to subfolder and have that forwarding cloaked with the subdomain address.  The links to the folders will come from the main index page by selection and that install will not be forwarded so should be easily found by google etc.

I'll have to try it out....

Kingston

Quote · 27 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.