coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: mircesco on May 14, 2007, 09:29:46 AM

Title: CPG + SMF + Operab browser, how to?
Post by: mircesco on May 14, 2007, 09:29:46 AM
Hello

I can't see gallery using Opera browser, it's work fine in IE 6 and 7 or Firefox 1.5. See here:

http://www.socio.ro/gallery.html


I found this thread but i don't understand german and babelfish doesnt give me a proper translation: http://forum.coppermine-gallery.net/index.php?topic=25877.msg170662#msg170662

Thanks
Title: Re: CPG + SMF + Operab browser, how to?
Post by: Nibbler on May 14, 2007, 12:50:52 PM
Changing

if (currentfr && !window.opera){

to
if (currentfr){

in Gallery.template.php

Seems to fix the problem.
Title: Re: CPG + SMF + Operab browser, how to?
Post by: mircesco on May 14, 2007, 01:05:20 PM
Yes, that's it! Thank you
Title: Re: CPG + SMF + Operab browser, how to?
Post by: Joachim Müller on May 14, 2007, 05:13:11 PM
Quote from: mircesco on May 14, 2007, 09:29:46 AM
I found this thread but i don't understand german and babelfish doesnt give me a proper translation: http://forum.coppermine-gallery.net/index.php?topic=25877.msg170662#msg170662
:o The thread you refer to is not in German as far as I can see, but in English.
Title: Re: CPG + SMF + Operab browser, how to?
Post by: mircesco on May 14, 2007, 06:08:22 PM
Sorry, this is the link: http://forum.coppermine-gallery.net/index.php?topic=28113.msg131333#msg131333. Thanks for your help
Title: Re: CPG + SMF + Operab browser, how to?
Post by: Joachim Müller on May 14, 2007, 07:37:41 PM
The posting you refered to is
Quote from: DirkM on February 24, 2006, 08:58:41 PM
Hallo,

es hängt mit dem Javascript zusammen.

Dieser Code verhindert das laden in Opera!
if (currentfr && !window.opera){
currentfr.style.display="block"


Wenn man für das .opera irgendwas anderes schreibt bsp. "!window.nix" wird die Galerie auch in Opera geladen.
Ist irgendwie nicht die feine englische ;) aber es funktioniert auch wenn mit nen kleinen Schönheitsfehler (Menü ist in Englisch)

Weiß jemand, ob CPG ohne iframe auf diese Art eingebunden werden kann?

Here's a rough translation:
Quote from: DirkM on February 24, 2006, 08:58:41 PM
Hello,

This is related to JavaScript

This code blocks loading in Opera!
if (currentfr && !window.opera){
currentfr.style.display="block"


If you replace ".opera" with something else, e.g. "!window.nothingParticular", the gallery will be loaded in Opera as well.
This is of course a crude hack, but at least it works (with a small disadvantage though: the menu is in English only).

Does anyone know wether Coppermine can be wrapped into SMF in this way without using an IFRAME?
Title: Re: CPG + SMF + Operab browser, how to?
Post by: mircesco on May 14, 2007, 08:00:52 PM
This is a good question:

QuoteDoes anyone know wether Coppermine can be wrapped into SMF in this way without using an IFRAME?
Title: Re: CPG + SMF + Operab browser, how to?
Post by: Nibbler on May 14, 2007, 09:11:33 PM
Not without a lot of work.