HELP FOR EMBEDDING

Raven69
Raven69's picture

Joined: 2004-01-16
Posts: 24
Posted: Thu, 2005-03-03 16:34

Please can some share sample code for embedding G2 into php code.

This can be a good starting point for anyone who wants to embed G2 into own sites.

I would appreciate something like:

<html>
<head>
</head>
<body
<?php
GalleryEmbed CODE
....
?>
</body>
</html>

to show:
1. all albums
2. specific album
3. specific pic
4. sidebar
5. header

on a blank page.
can someone help me with this ? PLEASE !!!!

Thank you so much

Greetz RaVen

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-03-03 16:36

docs/EMBEDDING
cvs checkout integration (xaraya, phpnuke, tikipro, drupal, ... integrations)

better docs coming not so soon.

 
Raven69
Raven69's picture

Joined: 2004-01-16
Posts: 24
Posted: Thu, 2005-03-03 16:47
valiant wrote:
docs/EMBEDDING ...

Ich weiss, aber ich möchte das in eine eigene Seite (kein bestehendes CMS) integrieren, und weiss nicht wie ich anfangen soll !!

I know, but I want to integrate G2 into an own site that is no CMS driven one
and don't know where and how to start.

RaVen

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-03-03 17:28

it strongly depends on what you really want.

- If you want to integrate user management of G2 with your website or
- If you're using a content management system / portal or
-> then take a look at EMBEDDING and the existing integration examples (xaraya, phpnuke, drupal, ...) on how the steps of EMBEDDING actually can be implemented.

- Else, you can edit the templates of G2. You can put static html, php and include any header / footer you want in the G2 templates.

I assume from your wishlist that you really want embedding and not just custom templates/layout.

If you study docs/EMBEDDING and the examples from cvs "integration" you will come quite far. I don't have time for more documentation at the moment, sorry.

to download the examples, use cvs
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gallery checkout integration

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-03-03 18:13

If you're too lazy to download the examples, here's a very small wrapper, minimal code to call G2 via embed.php.

@edit: removed typos, works now.

@edit: updated the wrapper with embedPath

@edit: i'm moving the attached file to the embedding and integration topic, first post.

 
Raven69
Raven69's picture

Joined: 2004-01-16
Posts: 24
Posted: Thu, 2005-03-03 18:23
valiant wrote:
...I assume from your wishlist that you really want embedding and not just custom templates/layout....

YES

valiant wrote:
...If you study docs/EMBEDDING and the examples from cvs "integration" you will come quite far. ...

Looking at the index.php of PHPNuke Integration seems to clarify a lot of things.

Thank you for your time and patience

RaVen

P.S.: Thank you again, I will download and try it
P.P.S.: Didn't try it so far but had a look on it and that is exactly what I asked for.
a SMALL piece of code I can handle.

 
mrwilly123

Joined: 2005-07-23
Posts: 57
Posted: Sat, 2005-07-23 05:46
valiant wrote:
If you're too lazy to download the examples, here's a very small wrapper, minimal code to call G2 via embed.php.

@edit removed typos, works now.

@edit updated the wrapper with embedPath

By any chance, do you still have this wrapper? I would very much appreciate it.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-07-23 07:31

mrwilly123, just 3 posts above your post, there's one from me with a main.zip attachement. this is the wrapper file. you can download it by pressing on the link on the right of the post.

 
mayurpatel

Joined: 2005-08-15
Posts: 7
Posted: Mon, 2005-08-15 21:08

nm.

 
JChampion

Joined: 2005-09-03
Posts: 1
Posted: Sat, 2005-09-03 05:33

Just in case you are as confused as I was...the wrapper code posted above (5th message up) by valiant is not visible unless you login...

 
AngusCS

Joined: 2005-09-13
Posts: 10
Posted: Tue, 2005-09-13 10:16

Valiant.

I am sorry, but I think this wrapper is what I want, but it is no more. I am just trying to embed a number of random images in an html page.

Can you post the zip again for us non PHP able Gallery users...

Gus

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-09-13 18:59

take the attachement from the first post of this thread. perhaps it was moved during the import from the old site to the new site.

 
souldaddy

Joined: 2005-10-04
Posts: 6
Posted: Tue, 2005-10-04 03:33

It is corrupted. Doesn't work for me.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-10-05 08:48

no it isn't, just tried it.
use firefox or opera to download attachements from this website. maybe save the file as .zip.