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

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

CPG + SMF + Operab browser, how to?

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

Previous topic - Next topic

0 Members and 2 Guests 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