2 domains, 2 templates, one installation

Hello, can somebody tell me how i can use one installation for 2 domains with different templates.

Example1.com comes up with "the hot red template"

Example2.com comes up with "the cool blue template"

But both are working with the same database, and have the same content.

Greets Jan

Quote · 20 Mar 2010

install dolphin twice, edit the header.inc.php so that they both point to the same database. upload the template and set it in admin panel

Regards,

DosDawg

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 20 Mar 2010

Dolphin has built in redirection. So a single install is designed to work with one domain. This is for a couple of reasons. One is the licensing which is tied to a domain, the other is to prevent logon cookie problems.

So there are 2 ways to do this.

Option 1) To setup 2 installs with the second one reconfigured to use the first ones database and storage directories. This is a total pain in the neck to do. It is time consuming and will cause problems when modding the sites to keep everything in sync. This will also require a license for each domain if you want to run without the boonex ads.

Option 2) Modify inc\header.inc.php to detect the domain just before the redirect code to set the skin cookie then it redirects to the primary domain. So the site basically operates on one domain, and the second just sets a cookie to tell dolphin what skin to use.

Both of these options will required someone that knows what they are doing with dolphin and can code in php. There is no simple solution that can just be dropped into place.




https://www.deanbassett.com
Quote · 20 Mar 2010

install dolphin twice, edit the header.inc.php so that they both point to the same database. upload the template and set it in admin panel

Regards,

DosDawg

That will not work as expected. All data will need to be shared as well. Both copies have to use the same directories for photos, music, video, ect.

https://www.deanbassett.com
Quote · 20 Mar 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.