Embedded Gallery2

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Lars
Regular
Posts: 9
Joined: Mon Jun 26, 2006 12:53 pm

Embedded Gallery2

Post by Lars »

Hallo zusammen
ich versuche die Gallery 2 mit dem Plugin zu installieren. Ich habe eine statische Seite eingerichtet und wenn ich den Link klicke komme ich auch zur Gallery. Aber wenn ich auf den Anmelde Button der Gallery klicke komme ich wieder zur Starseite von serendipity.

Hat jemand eine Idee was ich falsch mache?

Gruss Lars
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Embedded Gallery2

Post by garvinhicking »

Hi!

Kannst Du uns die URL zu dem Problem nennen? Evtl. ist es ein mod_rewrite / .htaccess problem...

Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lars
Regular
Posts: 9
Joined: Mon Jun 26, 2006 12:53 pm

Post by Lars »

garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Oh, okay, also nicht online. Das ist dann natürlich etwas schwierig zu debuggen.

Wie lautet denn die URL auf die Du klickst für die gallery anmeldung, wo du dann auf der serendipity startseite landest?

Wie genau und mit welchem plugin hast du die gallery eingebunden? Denn da gibt es ja mehrere möglichkeiten. Evtl. ist es auch ein Problem deiner Gallery2-Version, die die Links nicht absolut zu seinem eigenen Pfad setzt...?

Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lars
Regular
Posts: 9
Joined: Mon Jun 26, 2006 12:53 pm

Post by Lars »

Ich versuche das Plugin Gallery2 Embed zu benutzen:
http://spartacus.s9y.org/index.php?mode ... ERVICES_en


Ich bin gerade nicht an dem PC. Ist ein bischen blöd... aber ich weiss dass der Link etwa so aussieht:

http://localhost/serendipity/index.php? ... ?xxxxxxxxx

nach dem Fragezeichen kommt ein grosser Zeichenstring.

Hast du irgend welche Ideen die ich wenn ich wieder am PC bin ausprobieren kann?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Wenn der Link wirklich so geht dass zweimal "?..." darin enthalten ist, dann liegt dort ein Bug vor von Gallery2, der den 'embedUri' Pfad nicht korrekt auswertet um statt "?" eher ein "&" auszugeben. Nutzt Du die aktuellste Version von Gallery2? Evtl. müsste man dort einen Bugreport anstoßen.

Abhilfe könnte da schaffen wenn Du mod_rewrite auf deinem server nutzen kansnt. Dann könntest du in dem s9y plugin einfach einen Pfad wie "/Gallery2.html" eintragen und dann wäre das erste "?" nicht tragisch.

Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lars
Regular
Posts: 9
Joined: Mon Jun 26, 2006 12:53 pm

Post by Lars »

Ich werde es versuchen und poste dann was raus gekommen ist. Danke für deine Hilfe.

Gruss Lars
Lars
Regular
Posts: 9
Joined: Mon Jun 26, 2006 12:53 pm

Post by Lars »

ich habe den Fehler gefunden weiss aber nich wie beheben :-) der link zum Anmelden sieht folgender masen aus:

http://summitstriker.no-ip.info/serendi ... Name=Album


das Problem ist der / bei [subpage]=/gallery wenn ich den slash von hand wegnehme funktioniert der Link....
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, das subpage könnte an der g2embed konfiguration liegen. Kannst Du einen Screenshot machen oder schreiben wo du welche Werte beim plugin eingetragen hast?

Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lars
Regular
Posts: 9
Joined: Mon Jun 26, 2006 12:53 pm

Post by Lars »

Gallery 2 Embed Plugin:

Gallery 2 System Directory: F:\XAMPP\xampp\htdocs\gallery2\
Gallery 2 HTTP Path: /gallery2/
Serendipity Embed File Name: gallery


Statische Seiten:

Permalink: /serendipity/index.php?serendipity[subpage]=gallery
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Maybe you could try a small thing. Edit your serendipity_event_g2embed.php file.

There is this code:

Code: Select all

                    if (empty($serendipity['GET']['subpage'])) {
                        $serendipity['GET']['subpage'] = $nice_url;
                    }
Try to change this to:

Code: Select all

                    if (empty($serendipity['GET']['subpage'])) {
                        $serendipity['GET']['subpage'] = str_replacE('/', '', $nice_url);
                    }
And tell me if that changes things for you?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lars
Regular
Posts: 9
Joined: Mon Jun 26, 2006 12:53 pm

Post by Lars »

English or German?

I tryed your suggestion but nothing happen. The slash is still there.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm. Were is this link emitted exactly? Can I see it online somewhere?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lars
Regular
Posts: 9
Joined: Mon Jun 26, 2006 12:53 pm

Post by Lars »

garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, this output really comes from Gallery2. You must ask them about the Embed mode and why the link is being formatted like that.

You can show them the s9y sourcecode of the plugin and tell them your variables for the "embedUri" and "g2Uri" variables.

But my knowledge with G2 ends here, and I'm afraid this thing needs to be fixed in their code.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply