2 themes sharing 1 Gallery database

barrychum

Joined: 2007-08-02
Posts: 2
Posted: Thu, 2007-08-02 14:10

Hi,

I want to create 2 gallery addresses that use different themes, but the websties will share the same gallery database and images.

example,
http://www1.abc.com is using theme "matrix"
http://www2.abc.com is using theme "carbon"
but both of these 2 websites will be using the same MySQL database and the images in /var/www/html/g2data.

How can this be done?

Thanks in advance.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2007-08-02 14:39

2 options:
http://codex.gallery2.org/Gallery2:Multisite
&
http://codex.gallery2.org/Gallery2:Modules:multiroot

Both have advantages and disadvantages.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
barrychum

Joined: 2007-08-02
Posts: 2
Posted: Thu, 2007-08-02 22:03

Thank you very much floridave. I checked the Multisite and the multiroot modules. The Multisite module does not seem to do what I need, it use the same codebase for different URL entry points for different database. The multiroot seems to be doing what I need but I could not find an option so that different themes are used for different URL. The module allows using differnt user account for different URL, but it cannot associate a different theme to either the URLs or the user accounts.

I am new to Gallery so I hope someone can help me with this.

Thanks again.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2007-08-02 23:22

Every album can use a different theme as well as color pack. So each multiroot can have a different theme.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
sgatlantis

Joined: 2007-09-15
Posts: 3
Posted: Sat, 2007-09-15 18:59

Probably not the most efficient (or even "correct" way of doing this, but I found out that it's much easier to simply copy the whole gallery script directory under the second domain and as long it is on the same server, the only thing that you need to change are the themes, as you please. Worked fine for me.