Gallery2 embedded images not showing up

Creating and modifying plugins.
Post Reply
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Gallery2 embedded images not showing up

Post by Nintendo Gal »

Hello again!

This is probably a pretty simple question, but I wondered why I can't see any images when I navigate to:

http://www.nintendogal.com/index.php?/gallery2.html

My gallery is setup here:

http://www.nintendogal.com/gallery/main.php

In the plugin configuration settings I have the following:

Gallery 2 System Directory
/home/nintendo/public_html/gallery/

Gallery 2 HTTP Path

/gallery/

Serendipity Embed File Name
/index.php?/gallery2.html


I'm fairly certain it's just a / or something I've missed but I'm not sure what at this point.

Thanks for looking!

[Edit] Made the change Garvin suggested, but no change.
Last edited by Nintendo Gal on Sat Apr 14, 2007 6:58 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Gallery2 embedded images not showing up

Post by garvinhicking »

Hi!

Your Gallery 2 HTTP Path is wrong - it should read:

/gallery/

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/
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Post by Nintendo Gal »

Didn't seem to change anything by doing so unfortunately.
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Post by Nintendo Gal »

Sorry to bump, but does anyone have a clue what's going on? >_<

I really can't think of another solution to what I'm trying to do which is why I'm kinda desperate to get this working.

I would like to have a gallery for screenshots instead of just have a stack of images being displayed and looking messy. :: sigh ::
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

It's really strange, the URL to images looks like:

http://www.nintendogal.com/index.php/ma ... alNumber=2

but it should look like

http://www.nintendogal.com/gallery/main ... alNumber=2

instead. I don't really know where the "index.php" comes from. Maybe frmo Gallery2. Maybe you are using a more recent version than the one that this plugin was built with/for...

Are you using serendipity_event_galleryimage for this, or which plugin?

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/
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Post by Nintendo Gal »

Yeah I noticed that it had that extra in there so I tried 2 things, all of which resulted in even more weirdness.

I went into the plugin settings and adjusted it to:

Serendipity Embed File Name
/gallery2.html

Instead of /index.php?/gallery2.html

No change except it was a 404 when going to /gallery2.html.

However something happened with that change that I'm not able revert:

http://www.nintendogal.com/index.php?/gallery2.html

It takes you straight back to the main site instead of trying to load the page.

I have no Mod_URL on either Gallery2 or s9y turned on whatsoever (I triple checked this) so I don't know what's going on there.


The other thing I tried on a test installation was to go into the plugin itself and delete the instances of:

Code: Select all

$serendipity['indexFile']
Which of course didn't help either, was thinking it might though.

The plugin I'm trying to use it:

Gallery2 Embed (gallery2)
Embeds Gallery2 within Serendipity. You must be running the Gallery 2.1 core. Gallery 2.1 RC2a or newer REQUIRED.
version: 0.3

I am running Gallery 2.1 RC2a.

Running s9y:
Powered by Serendipity 1.1-beta5 and PHP 4.4.6 (Yeah I need to upgrade)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, my knowledge of the g2 embedding doesn'T reach so far, but as far as I read the code it does not support an embed Uri with a "?", like "index.php?/gallery2.html" which is why it replaces it with "index.php/gallery...".

I'm sorry, I just have too little knowledge of the plugin. :(

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/
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Post by Nintendo Gal »

I have a feeling my problems would be solved if I didn't have it in the same listing with my main site.

Unfortunately I have my hosting setup as such that it is the main directory and anything else is just an offshoot of it.

:: sigh ::

Thanks for trying, I'll keep banging my head against this to see if I can't solve it.

If anyone else has a suggestion I'd be very open to it.

Or even another way to embed another gallery, doesn't have to be gallery2, just looking for someway to have images look nicer then just having them stack in a news article.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Did you have a look at the iframe-WrapURL plugin? You could try to use that to "fake" an embedded gallery?

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/
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Post by Nintendo Gal »

The problem with that is the side bars would still be displayed. With this plugin I can tell it to snag certain parts, whereas an iframe I don't think you can quite do that.

I had a thought on this:

Code: Select all

  $propbag->add('default',     $serendipity['rewrite'] != 'none'
                                             ? $serendipity['serendipityHTTPPath'] . 'gallery2.html'
                                             : $serendipity['serendipityHTTPPath'] .  '?/gallery2.html');
In the code it tells it

Code: Select all

$serendipity['serendipityHTTPPath']
with the ?/gallery2.html thing at the end. Every page on my site I've noticed does the whole index.php?/blaharticlehere.html. For this I don't want it to have that index obviously, so would it be possible to remove that and/or add something in there that tells it to just be blank?

That way instead of going to index.php?/gallery/gallery2 it would just go to gallery/gallery2 etc etc?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

No, recently the iframe plugin got support to disable sidebars for URLs! :-)

HTH,
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/
Nintendo Gal
Regular
Posts: 44
Joined: Wed Oct 19, 2005 10:09 pm

Post by Nintendo Gal »

Hmm the other problem I can foresee is this creates just one static page correct?

I need something that would allow me to have a gallery for each game and not just a page that contained the entire gallery.

So example being:

Resident Evil 4 WE

That would be its own gallery and also would have a mini gallery in the article itself.

The best way I can describe this is linking somewhere:

http://www.joystiq.com/2007/04/13/phoen ... r-america/

If you look there, you'll see they have a gallery with a few images. Then you click on it and it brings you to an embedded gallery.
Post Reply