gallery2 embedding issues

Creating and modifying plugins.
Post Reply
bkcrown
Posts: 2
Joined: Sat Jun 17, 2006 5:44 pm

gallery2 embedding issues

Post by bkcrown »

First off, let me appologize if this isn't the place to post this. I read through the descriptions of the forums, and this seemed to be the best place....
Also, I searched, but could not find what I was looking for. It is possible that I missed it though, so if I did, again, my appologies.

Alright, moving on to the question....

I've been trying to embed gallery2 into my blog, and have been running into issues. I think that the main thing is that I'm not really sure what paths it's asking for.
Gallery 2 System Directory
Absolute path to the Gallery 2 system directory on the server.
This one I got. I just pointed it to /htdocs/gallery2
Gallery 2 HTTP Path
Absolute path to http path were the embedded file will reside.
I'm not sure about this one. It makes it seem like it's asking for a file that I have to make, but I'm not really sure what to do. Any insight?
Serendipity Embed File Name
Absolute path to the file in which gallery 2 will be embedded.
Same with this one. I'm not sure what file it's asking for.

Any help with this would be greatly appreciated.

Have a nice day everyone. :)
dhoefer
Posts: 1
Joined: Fri Jun 16, 2006 11:48 pm

Post by dhoefer »

Hi,

I have the same questions like you. Doesn't matter what I try, nothing appear in the editor to embed a picture or album from gallery.

Is there any documentation for this plugin? I'm searched for, but didn't find anything.

Is there anybody, who has successfull implement this plugin?

Good night, whereever you are :)

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

Post by garvinhicking »

Hi dhoefer!

Actually the "gallery embed" plugin is not there to pick images from a gallery installation to insert into s9y entries, but to show your Gallery installation within the Serendipity layout.

I'll try to walk you through the config settings. Let's say my example G2 installation was installed into /www/gallery2, the blog is in /www/serendipity. The HTTP urls are http://example.com/gallery2 and http://example.com/serendipity.

Let's also say that the final page where I want to view the embedded install is http://example.com/serendipity/index.ph ... =mygallery.

You would need to enter those config values:

Code: Select all

Gallery 2 System Directory: /www/gallery2 [this is where the "embed.php" file lies!]
Gallery 2 HTTP Path: /gallery2 [according to the URL path]
Serendipity Embed File Name: mygallery [like the part of the 'subpage' command - but this could also be a url]
Headline: My Own Gallery
URL shorthand name (Backwards compatibility): 'mygallery'
Font size for the gallery div: 12pt
Width for the gallery div: 100%
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/
bkcrown
Posts: 2
Joined: Sat Jun 17, 2006 5:44 pm

Post by bkcrown »

I believe that I put in everything as you said, though probably not because I am now getting this error:

Code: Select all

Warning: loadg2([editout]/htdocs/gallery2embed.php): failed to open stream: No such file or directory in [editout]/htdocs/serendipity/plugins/serendipity_event_g2embed/serendipity_event_g2embed.php on line 121

Fatal error: loadg2(): Failed opening required '[editout]/htdocs/gallery2embed.php' (include_path='.:/usr/local/lib/php:[editout]/htdocs/serendipity/:[editout]/htdocs/serendipity/bundled-libs/') in [editout]/htdocs/serendipity/plugins/serendipity_event_g2embed/serendipity_event_g2embed.php on line 121
Any idea why that might be comming up?

Have a nice day everyone. :)
TheGuitar666
Posts: 2
Joined: Sun Jun 18, 2006 4:56 pm

Post by TheGuitar666 »

I've successfully embedded my gallery2 into serendipity, nevertheless i have a small issue concerning the layout. The text on the left side (e.g. Filenames) is not wrapped so mostly unreadable if there is more than one picture in the folder and also the text which is directly below the pictures (e.g. viewcount) is somehow displayed wrongly. Any idea how i can fix this easily?

URL is http://www.theguitar.de/serendipity/ind ... lery2.html
(not yet active in my homepage, so don't wonder about the stupid texts :D )
Thanks
André
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Andre: This is a CSS problem; it seems that the styles used in your gallery2 are not loading within the serendipity embed area; you might need to add them into the style.css of your serendipity template, or somehow get gallery2 to emit its stylesheet there.

It might be a better way for you to embed gallery2 via an iframe / the "wrapurl" plugin.

bkcrown: I think you entered a wrong gallery system directory. Look at the full path - the path you entered does not contain the g2embed.php file.

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