Help with two coppermine/1 mySQL installation. Help with two coppermine/1 mySQL installation.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Help with two coppermine/1 mySQL installation.

Started by TheProfessor, November 23, 2004, 01:37:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheProfessor

Hi!

I'm using coppermie for my website. The website itself has two versions, one for Mozilla/Netscape which makes good use of transparent .pngs and an Internet Explorer version which uses .jpgs. I've finished the Firefox version

http://thelaststand.hl2files.com/media/

and I'm trying to install the IE version. When I come up to the mySQL database information screen during installation it says that "cpg132_albums" already exists, as it should really.

What I'm trying to do is setup the two galleries to use the same database so I just have to upload files to one for both to change. Any ideas?
Thanks in advance for any help,
J.-F.

Tranz

Just use a different prefix, instead of cpg132. Maybe cpg132a, or something that lets you know which version the gallery is for: cpgie

TheProfessor

Even if the prefixes are different, are the galleries the same? I.E. if I upload some pics in the Firefox version of the gallery, do those pics appear in the IE gallery as well?

Tranz

No, they will contain different information because they will go to different tables with different prefixes. Are you installing them into different folders, too?

TheProfessor

Yep, its being installed in .../forums/ and .../forumsIE. Would it be possible to download the contents of /forums (Firefox version) and upload to /forumsIE and simply change the theme information?

Tranz


kegobeer

What's the purpose for having two almost identical websites?  Just to take advantage of transparent PNG images for your theme?

If that's all you want to do, it would probably be easier to do a browser check in init.inc.php, set a variable (or a constant) to TRUE (for non-IE) or FALSE (IE), then wherever you want the transparent PNG displayed, just check for TRUE and display your PNG.

Or, you could check out http://www.koivi.com/ie-png-transparency/ to display PNG images correctly on all browsers.  I've used it with Coppermine successfully.  Very easy to implement.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

I agree with what kegobeer said - having two different installs is overkill - just use a traditional browser fork/switch.

Joachim

kiig

just an inspirational note : I have my Coppermine in one folder (/somewhere/fotosite), - using database 'foto'. Then I copied the entire folder /somewhere/fotosite to /somewhere/fotosite_test, - retaining all db connections, - so I ended up with 2 different coppermine installations, - SHARING the same database.

I wanted to test out new themes and modifications, - without affecting the 'original site', - but with all the data/images/comments intact.

For testing purposes this works perfect.

Kim Igel
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

Tranz

The thing with that is if you are "testing" config, it would affect the real gallery because some settings are stored in the database.

But if you don't need to fiddle with config with your test gallery, it's all good.

kiig

yup, - it's normally 'theme-related', - changing colour, borders, stuff like that, - only touching ../theme/... files. But you're right.
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)