embed Gallery2 into c5 page

Permalink
Has anyone tried to embed Gallery 2 into thier c5 site, via a page block or some other way?
Frank

wizardontherun
 
snagelcat replied on at Permalink Reply
I don't know if this is the right way to do it, but what I did was, I went to the page I wanted to embed and I copied the whole page into my clipboard,(by highlighting everything, not select all) then I went to the edit mode in C5 and I plopped it in. Then I hit HTML and corrected the links. Well that one page worked great! If the user clicks on anything he finds himself in the other website. Hopes that helps.
Remo replied on at Permalink Reply
Remo
I don't think this is a good solution.

What happens if you add a new gallery? Nothing! You just copied the links, the output of gallery2. You have to copy & paste it everytime you add a new gallery...
snagelcat replied on at Permalink Reply
I don't know if this is the right way to do it, but what I did was, I went to the page I wanted to embed and I copied the whole page into my clipboard,(by highlighting everything, not select all) then I went to the edit mode in C5 and I plopped it in. Then I hit HTML and corrected the links. Well that one page worked great! If the user clicks on anything he finds himself in the other website. Hopes that helps.
frz replied on at Permalink Reply
frz
yeah cutting and pasting html from one site into another sounds pretty difficult to maintain..

i think it'd be better to try to get it runnign on the same install as concrete5 - either as a block, a single page, or just as part of a template file in a theme.
Remo replied on at Permalink Reply
Remo
Integrating that kind of stuff into concrete5 is a bit tricky.

If you have two web applications (not 100% ajax based) you'll always have some url variables. Like gallery.php?gallery=vacation2009 and concrete5.php?action=submit

I've never seen a way that alawys works for such integrations beside the ugly iframe solution..

If someone has a "perfect" solution for this, it would make it quite easy to integrate all kind of stuff, smf etc.

If there are just 2-3 php pages to integrate, it might work by manually processing the variables, but usually it's not that simple.
frz replied on at Permalink Reply
frz
ah. didn't know that was hosted app... yeah - tricky.
Remo replied on at Permalink Reply
Remo
you can install it on your own server but you still have the problem that problem with the variables..
matogertel replied on at Permalink Reply
matogertel
First: Gallery2 has a "Remote" mode, that was created precisely to allow integration of g2 into other applications. You should be able to create a g2 integration block by following the instructions found in the g2 wiki (just search for "Remote" and "integration").
Second: g2 is dead... so not sure if it will be worth the effort. gallery3 is a complete rewrite, so I'm pretty sure any current g2 development will not work on g3.
Remo replied on at Permalink Reply
Remo
Didn't know about that remote mode, but it sounds great!

I'll check it out, as soon as gallery3 is available!
Remo replied on at Permalink Reply
Remo
I just wanted to look how they solved this problem.

When searching for "remote integration", they only thing I find is "gallery remote", a java application to upload pictures so you don't have to use a webinterface....

But after clicking around a few times, I found this page.http://codex.gallery2.org/Gallery2:Embedding:Integration...

This in case someone else is looking for it!
wizardontherun replied on at Permalink Reply
wizardontherun
Not a pretty view.
TomVdP replied on at Permalink Reply
It's there!
http://gallery.menalto.com/gallery_3.0_released?page=1...

Alas, they left out the embedding stuff :-(
element41 replied on at Permalink Reply
I would prefer a portfolio type Gallery that had some security and watermark functions. Most of the open source solutions don't protect from right click downloads.( without extra java added ) I use an external site that is associated with a lab.These sites are popping up all over zenfolio, smugmug, exposure manager. etc
ombre replied on at Permalink Reply
ombre
The simple and easy was is to create a Block whith the
<?php include '(path)/gallery2embedded.php' ?>
in the view file, you don't even have to thoink about the other files needed for a block. (just make sure they're there)

example:http://schirmerturm.ch/cms/index.php?cID=68...

About Gallery3: for me, there isn't enough functionality in it at the moment... so I still use G2