CPG + SMF + Operab browser, how to? CPG + SMF + Operab browser, how to?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

CPG + SMF + Operab browser, how to?

Started by mircesco, May 14, 2007, 09:29:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mircesco

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

Nibbler

Changing

if (currentfr && !window.opera){

to
if (currentfr){

in Gallery.template.php

Seems to fix the problem.

mircesco


Joachim Müller

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.


Joachim Müller

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?

mircesco

This is a good question:

QuoteDoes anyone know wether Coppermine can be wrapped into SMF in this way without using an IFRAME?

Nibbler