Embedding & Integration

valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-10 20:17

the end user sees the userName, so touching the username isn't a solution for the username collision issue.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-09-29 01:10

Announcement:

Good news:
- $data = GalleryEmbed::handleRequest(); now contains also $data['themeData'] which is the contents of the 'theme' variable of the smarty templates. drupal uses this already to build its own menu based on g2 item links.

- uploadapplet, Gallery Remote and slideshowapplet now work in mode.embed.only = true

 
flosell

Joined: 2005-10-03
Posts: 1
Posted: Mon, 2005-10-03 16:26

I just experimented with a geeklog integration, nothing professional, but it works:
for adding the geeklog users to the G2 userdatabase use this PHP-Script:

<?
require_once(dirname(__FILE__) . '<includepath>');
$ret = GalleryEmbed::init(array(
'embedUri' => '<embedUri>', embedPath => '<embedPath>', 'relativeG2Path' => '<relativeG2Path>',
'loginRedirect' => '' , 'activeUserId' => ''));

if ($ret->isError()) {
echo "init error";
echo $ret->getAsHtml() ;
exit;
}

$db = mysql_connect("<dbhost>","<dbuser>","<dbpassword>");
mysql_select_db("<table>",$db);
$request="select username from gl_users where not (username = 'Admin' OR username = 'gast')";
$result = mysql_query($request);
while($row = mysql_fetch_array($result)) {
echo "Creating G2 User $row[username]...<br>";
$ret = GalleryEmbed::CreateUser($row["username"],array('username' => $row["username"]));

if ($ret->isError()) {
echo "user create error";
echo $ret->getAsHtml() ;
exit;
}
}
?>

to integrate G2 in Geeklog, make a StaticPage with this code:

global $_CONF, $_USER;
require_once(dirname(__FILE__) . '<includepath>');
$ret = GalleryEmbed::init(array(
'embedUri' => '<embedUri>', embedPath => '<embedPath>', 'relativeG2Path' => '<relativeG2Path>',
'loginRedirect' => '' , 'activeUserId' => ''));

$g2data = GalleryEmbed::handleRequest();
if ($g2data['isDone']) {
exit; // G2 has already sent output (redirect or binary data)
}
echo $g2data['headHtml'];
echo $g2data['bodyHtml'];
// Use $g2data['headHtml'] and $g2data['bodyHtml']
// to display G2 content inside embedding application
// if you don't want to use $g2data['headHtml'] directly, you can get the css,
// javascript and page title separately by calling...

// if (isset($g2moddata['headHtml'])) {
// list($title, $css, $javascript) = //GalleryEmbed::parseHead($g2moddata['headHtml']);
// }

Still to write is a modification for the geeklog user management so that the userdbs are automatically synced.
I know that one could code this much better, but i just wanted to get it to work, and it does.
Feel free to modify this or throw it to the trash and post a better version, this was mine.
If you need some documentation, use Docs/EMBEDDING and http://dev.gallery2.org/modules/GalleryAPI/apidoc/GalleryCore/Classes/GalleryEmbed.html helped me.

 
cschlatt

Joined: 2005-05-24
Posts: 17
Posted: Wed, 2005-10-05 02:13

That is indeed very good news, I ever wondered how I could access the 'theme' variable. Now the only thing that's still missing is the possibility to choose the G2 theme using embed.php ;-)

Many thanks,
Christian

 
MichelleC

Joined: 2005-04-16
Posts: 42
Posted: Wed, 2005-10-12 14:38

A couple notes on integrating with Drupal 4.6:

The enhanced Gallery module is kind of hidden on the issues page. I've been using this version for a while and it's really nice. The best part about it is that you don't need to use a custom theme to make the sidebars behave.

I'm working on a sort of suite of modules to make it easier to bring G2 into Drupal nodes. So far, I have the g2_filter module which lets you type [G2:999] into any node and have it pull in an image block for item 999. You still need to get your image into G2 the normal way and find the item ID, so it's not that good for end users. The next step is to create a module along the lines of img_assist where you can upload into Gallery and insert into your node all at the same time. I'm hoping to do that in about a month if no one beats me to it.

The g2_filter module isn't included with the gallery module, yet, so I'll attach it here for now.

Michelle

 
yonie

Joined: 2005-02-21
Posts: 9
Posted: Thu, 2005-10-13 17:34

im integrating gallery2 inside a closed community site. this has worked perfectly for quite some time. since i upgraded the preview builds to the 1.0.0 final, i am having problems with http headers being double-sent. the problem only occurs when the '&g2_highlightId=xxx' option is added to the url.

so if i open these two url's, only the lower one would work:

http://domain/index.php?g2_view=core.ShowItem&g2_itemId=xxx&g2_highlightId=xxx
http://domain/index.php?g2_view=core.ShowItem&g2_itemId=xxx

when i try and open the top one i get this message:

Warning: Cannot modify header information - headers already sent by (output started at [file echoing http headers]) in [gallery2dir]/modules/core/classes/GalleryPhpVm.class on line 124

this is new to me, and it started somewhere since one of the last versions (i update pretty regularly, say once every 2 weeks). i could of course hack out the section in the gallery2 code where the http headers are being sent, but maybe im just missing some change or i should add some option to the integration code.

anybody have a clue whats going on? im using the sourceforge gallery2 full sourcecode now.

you can also reach me via email on yonie at yonie dot org.

 
valiant

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

i'm not aware of any related changes.

what header?

and headers are usually sent when you start outputting html / data. or if you force to send the headers at some point. g2 doesn't force to send the headers.

 
yonie

Joined: 2005-02-21
Posts: 9
Posted: Sun, 2005-10-16 09:16

the headers i mean are the HTTP headers. i cannot specify which header is being sent by gallery, because i cant seem to find the part of gallery code that handles the 'g2_highlightId='-option.

i embed gallery inside my application and i only use the ['bodyHtml'] from the g2 embed class after the handleRequest() call, so im wondering why gallery would be sending HTTP headers at all while its being embedded.

 
yonie

Joined: 2005-02-21
Posts: 9
Posted: Sun, 2005-10-16 09:23

ok i have at least found a way to fix the problem. before now, i was already sending html data to the client and calling handleRequest somewhere halfway down the page. if i move the handleRequest call to a point where no data has been sent yet it seems to work. it seems the header that was being sent causing the problems was a redirect header.

even though this has never cause problems before with previous versions, i shouldve done the handleRequest before outputting starts anyway.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-16 16:28

yeah, HTTP headers of course. but what HTTP header exactly?

Quote:
ok i have at least found a way to fix the problem. before now, i was already sending html data to the client and calling handleRequest somewhere halfway down the page.

of course you shouldn't send anything before ::handleRequest.

Quote:
it seems the header that was being sent causing the problems was a redirect header.

yeah, G2 does a lot of redirects.

also make sure to obey the 'isDone' result of handleRequest. if $data['isDone'] == true, exit;

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Fri, 2005-10-28 19:36

I have finally gotten around to packaging up my Geeklog integration plugin...

You can find it through my Geeklog software page.

- Andy Maloney

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-10-29 03:02

great :)

i've added it to the list.
feel free to create a new Geeklog + G2 topic and i'll make it sticky.

 
ranjeetsodhi

Joined: 2004-01-24
Posts: 11
Posted: Sun, 2005-11-06 03:38

How do I embed Gallery within Expression Engine? Any assistance would be welcome.
Thanks.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-11-06 05:24

no idea. don't even know express engine and it seems noone has started such an integration.
so unless you know express engine (its code) very well and are willing to code the integration yourself, i can't help you.
all i can do is answer a few questions if the docs/EMBEDDING / the sample integration wrapper are not help enough.

 
ranjeetsodhi

Joined: 2004-01-24
Posts: 11
Posted: Sun, 2005-11-06 15:43

No worries, I switched from trying to get full on integration - I am using the random image block and the PHP code that can be imbedded within my Expression Engine pages to allow for a few pictures to be displayed.
Thanks.

 
mirela

Joined: 2005-12-18
Posts: 6
Posted: Sun, 2005-12-18 18:01

Hello,

I am trying to integrate G2 with my own custom made site, but I have issues with:
- login - I would like to login once and get admin rights in all sections (custom built and gallery)
- look-and-feel - need to customize it so that it looks just like my own site.

Could anyone provide some useful information on how to achieve this? The most important is the login.

Thank you!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-12-18 19:17

mirela, please start a new topic to ask your questions.

 
spankee

Joined: 2004-06-12
Posts: 51
Posted: Fri, 2006-01-06 06:21

Xoops has integration with gallery2.

state: alpha 2
contact: greyhair
project page: http://xoopsgallery.org/

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-01-06 21:27

cool :)
but on that page i don't see a g2/xoops demo and the download link which redirects to http://www.greyhair.net/xg2/xg2-alphafiles.zip doesn't work either.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-01-07 16:00

Announcement:

What?
The parameters of GalleryEmbed::init() have been changed in our development CVS branch BRANCH_API_DEV which will be merged into HEAD (source of our nightly snapshots and Gallery 2.1).

Existing integrations will not work correctly with the new GalleryEmbed::init() function, small changes are required.
The reason for the changes were (as discussed):
- Simplifying the parameters / the ::init() call is more intuitive now
- G2 and the embedding application are now allowed to be on different subdomains

When?
The CVS merge is scheduled for Monday. So don't recommend using nightly snapshots for your integration unless you have already updated your integration code.
Gallery 2.1, the next official release that includes these changes, is planned for (probably late) February.
If you want to take a look at the new code before Monday/Tuesday, you can use "cvs checkout -r BRANCH_API_DEV gallery2" to get the new code. Don't forget to switch back to HEAD after the merge!

What was changed?
embedUri + embedPath + relativeG2Path have been replaced by embedUri + g2Uri, both absolute paths, starting with a slash.
For details of the new specs, please see:
http://codex.gallery2.org/index.php/Gallery2:Integration_Howto#New_.28Gallery_2.1.29_Specs_for_GalleryEmbed::init.28.29

Additionally, a dedicated GalleryEmbed API was introduced. Now you can track the GalleryEmbed API instead of the core module version to make sure that your integration is compatible with a specific Gallery 2 installation.
Just add apiVersion => array(1, 0) to your GalleryEmbed::init() parameters and G2 will return an ERROR_PLUGIN_VERSION_MISMATCH if it's incompatible.

Note that a lot of other things have changed in the BRANCH_API_DEV too. Another announcement by the G2 dev team will inform you of the details.

How can I detect when to use the old init() parameters and when to the new parameters?
I'd check for the core module version (since we didn't have a GalleryEmbed API before).
If the core module version is older than 1.0.14, then you'd have to use the old GalleryEmbed::init() parameters. For simplicity, I'd show a message when the old version has been detected. Recommend to upgrade to Gallery 2.1 (or nightly snapshots until 2.1 has been released) and I wouldn't handle the old case anymore.

 
spankee

Joined: 2004-06-12
Posts: 51
Posted: Sat, 2006-01-14 10:40

The integration for Dragonfly has changed sites. The demo, support forum, tutorials and download can now be found here... http://dragonflied.com

About Xoops, I checked the download and it does redirect but it also does download. There is no demo available yet. I contacted the author and he is working on it.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-01-14 11:36

thanks for the information. the xoops d/l link is working now.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-01-30 01:27

Announcement:
- I've written some development documentation. it's far from complete, but it's a beginning
- all important information was moved to the codex, the first post of this topic gives just a short overview over the links:
http://gallery.menalto.com/forum/g2_integration
see:
http://codex.gallery2.org/index.php/Gallery2:Embedding
http://codex.gallery2.org/index.php/Gallery2:Integration:Available_Integrations
http://codex.gallery2.org/index.php/Gallery2:Embedding:Integration <<-- docs

Feel free to contribute and extend the docs! Thanks :)

 
johnmont

Joined: 2006-03-20
Posts: 17
Posted: Wed, 2006-03-29 01:02

All the doc and instructions are great for embedding, but I'm having problems with the following now:

print $ret->getAsHtml();

I'm getting errors in php that i'm calling a member function in a non-object.

I'm sorry, but I"m not fully versed enough at php/objects/classes to comprehend what has changed == and what I need to change.

 
swiftmed

Joined: 2006-04-01
Posts: 3
Posted: Sat, 2006-04-01 19:35

Hello,

it seems a lot of people have followed the instructions and their embedded gallery has worked perfectly, but not for me unfortunately. I have chosen to embed gallery2 into my girlfriends website but i keep getting errors. i was hoping someone would be able to tell me where im going wrong please?

the embedded page is [link removed] - , the standalone gallery is at [link removed].

i have attached my index page incase someone is able to tell me where im going wrong.
I look forward to hearing from you, and thank you for your time. i really appreciate your advice. thank you.

Andy MacDonald
[link removed]

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-04-07 00:11

johnmont
first check
if ($ret) {
// aha, it is a error status object
print $ret->getAsHtml();
}

 
johnmont

Joined: 2006-03-20
Posts: 17
Posted: Fri, 2006-04-07 00:29

yes...thank you so much. I did eventually figure that one out, but thanks for the response.

I'm making some really great headway on integrating groups in VBulletin in Gallery. It'll be quite nice as that's a huge key. I found some great info in the SMF+G2 integration which is just what I needed! Also making configuration and debug output much friendlier for integration.

I noticed some group changes in 2.1 as well...things like fetchGroup as opposed to loadGroup in the coreAPI.

its been fun. fun? not quite the right word. but it has been enjoyable once I figured out the structure ;-)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-04-07 04:11

there was never something like loadGroup. however, good that you got it working.

 
johnmont

Joined: 2006-03-20
Posts: 17
Posted: Fri, 2006-04-07 04:27

Yeah...sorry....I should have been more clear.

There was a post in the SMF thread -- where Oldiesmann lists some code -- which includes a call to "GalleryCoreApi::loadGroupsForUser()" . The rest of the post was pretty much spot on.

That threw me for a loop. But as you say, I'm just glad I got it working.

 
Therla

Joined: 2006-04-12
Posts: 1
Posted: Wed, 2006-04-12 16:52

Hi there

I've been reading all the posts in this forum and to be honest I feel like I should just dig a hole and burry my head in the sand. I don't understand a word anyone is saying lol.

Basically what I want to do is: I am using phpnuke and I have a block on my site for 'Screenshots of the Day' and I want to link the RandomHighlight from my Gallery to this block so that whatever RandomHighlight appears in the Gallery it will show up on the front page of my website.

But now I see that this is not just straighforward linking of a image file. I've viewed the source code and I've searched high and low as to where this random image is stored but alas I can't find it.

So I have now resorted to asking the professionals for help :)

Helppppp!!!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-04-14 03:50

Therla

please ask your question on www.nukedgallery.net (gallery integration support for phpbb and phpnuke) or in this forum in a new topic. this thread here is reserved for general embedding discussions and less for support questions.
thanks.

 
pbolomey

Joined: 2006-05-04
Posts: 7
Posted: Mon, 2006-05-08 11:28

Hi,

I need some help with this issue that you describe above. I have embeded the pnGallery 2 moduke onto my PostNuke site and I get the same issue http://domain.com/some/path/index.php?module=otherindex.php?module=gallery2?somehg2parameters

I saw the code you posted and I understand that but where do I put that code and what goes in the 'embedPath' => '/some/path', 'activeUserId' => ...., ...,...) part.

Thanks
Pablo

 
chilll
chilll's picture

Joined: 2006-05-23
Posts: 15
Posted: Tue, 2006-05-23 12:58

hi,

I'm in a situation where I have to integrate G2 with our customer-self-service pages.

G2 users should be created/deleted via the self-service pages. And also, from users point of view - there should be no G2 login screen. Instead there is a link to Gallery in self service page that either logs in in the background or accepts self-service-page session id and uses that.

Question. There are many docs, sutff and API's regarding G2 integration and embed. However, I can't find the right one for my case. Can anyone lead me to the right direction?

Thanks,

 
DiscoDaveCAN

Joined: 2006-05-23
Posts: 1
Posted: Tue, 2006-05-23 17:59

My install of gallery2 went well until I went to save the config after initilization. The pngallery2 admin page gives the following error:

The current configuration could not be verified successfully. Here is the error message:
I could not find a G2 installation! Please correct the path!

When I press the update config button I get this error:
Fatal error: Call to a member function on a non-object in /home/slmha/public_html/modules/pnGallery2/pnGallery2helper.php on line 772

I choose to install to the default path, but chose to put the gdata folder to be outside my webroot (this the problem?). I used the install doc from http://noc.postnuke.com/docman/view.php/266/114/pnGallery2%20documentation.txt

gallery2 2.1.1a is installed on pn762

 
chilll
chilll's picture

Joined: 2006-05-23
Posts: 15
Posted: Thu, 2006-05-25 09:04
chilll wrote:
hi,

I'm in a situation where I have to integrate G2 with our customer-self-service pages.

G2 users should be created/deleted via the self-service pages. And also, from users point of view - there should be no G2 login screen. Instead there is a link to Gallery in self service page that either logs in in the background or accepts self-service-page session id and uses that.

Question. There are many docs, sutff and API's regarding G2 integration and embed. However, I can't find the right one for my case. Can anyone lead me to the right direction?

Thanks,

Actually, my case is even worse. I need some G2 functionality over XML-RPC (or SOAP), coz the other application that needs to be embeded with G2 is not PHP program. Does any of you happen to know if there is any XML-RPC API's for G2 with some basic stuff like createUser, deleteUser and login. Thanks,

 
nskousen

Joined: 2006-10-25
Posts: 1
Posted: Wed, 2006-10-25 16:33

So i'm wanting to do integrate gallery into a custom PHP site and I'm having a hard time figuring out how to do this. Basically, it is just a family website where each family and child will have their own album and be able to create their own sub-albums. I understand I can have a single login that will work for the site and for Gallery and have my site handle the login and pass the user to gallery. What i'm having trouble with is understanding how to incorporate gallery into my site. For example, when you click on a link to see a persons album, I want to onlysee that person's album and based on their username be able to upload photos only to their album. How can I do this? Are there some easier tutorials or more informative documentation that explains how to tell Gallery to return a certain album?

Thanks!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-11-05 14:53

chilll
please take a look at the xml rpc module in gallery-contrib's svn repository.

nkousen

there are no further docs than documentation -> embedding & integration. and you can copy code from the existing integrations (joomla, drupal, xaraya, wordpress, ...).
for your specific questions, please open a new forum topic.

 
Vanny

Joined: 2006-02-10
Posts: 8
Posted: Wed, 2006-11-29 00:21
DiscoDaveCAN wrote:
My install of gallery2 went well until I went to save the config after initilization. The pngallery2 admin page gives the following error:

The current configuration could not be verified successfully. Here is the error message:
I could not find a G2 installation! Please correct the path!

When I press the update config button I get this error:
Fatal error: Call to a member function on a non-object in /home/slmha/public_html/modules/pnGallery2/pnGallery2helper.php on line 772

I choose to install to the default path, but chose to put the gdata folder to be outside my webroot (this the problem?). I used the install doc from http://noc.postnuke.com/docman/view.php/266/114/pnGallery2%20documentation.txt

gallery2 2.1.1a is installed on pn762

Im getting a similar problem when trying to save configuration settings;
Fatal error: Call to a member function on a non-object in /home/fhlinux180/v/vangordon.co.uk/user/htdocs/lucc/modules/pnGallery2/pnGallery2helper.php on line 772

have tried the usually all curing method of uploading the offending files (pnGallery2Helper.php) which has made absolutley no difference!

the error relates to the following script;

if (!$ret->isSuccess()) {
$msg = 'G2 did not return a success status upon an init request. Here is the error message from G2: <br />' . $ret->getAsHtml();
/*
if ($raiseexceptions) {
xarErrorSet(XAR_SYSTEM_EXCEPTION, 'FUNCTION_FAILED', new SystemException($msg));
}
*/
return array(false, $msg);
}

does the REM'd out bit make any difference?

Whats the solution here?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-12-03 00:54

you're using there very old code which doesn't work in Gallery 2.1 or later.

the proper pattern now is:

if ($ret) {
die($ret->getAshtml());
}

$ret is null in case of success. $ret is a GalleryStatus object in case of an error.

 
EoN604

Joined: 2006-11-30
Posts: 8
Posted: Sun, 2006-12-03 13:29

I notice a recurring theme on most of the threads. It is people asking specifically about user integration. I think that this is an absolutely critical part of an application such as Gallery, and yet there doesnt seem to be any "step throughs" or mods. Can I suggest that posting very specific (to line number detail) MOD style instructions, OR provide A WORKING EXAMPLE of the code changes? I seriously feel this is necessary.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-12-03 14:27

did you actually look at:
1. http://codex.gallery2.org/index.php/Gallery2:Embedding
2. learning from existing integrations, it's all open source
3. http://codex.gallery2.org/index.php/Gallery2:Embedding:Integration
specifically (explanations + pseudo code):
http://codex.gallery2.org/index.php/Gallery2:Embedding:Integration#User_Management
and:
http://codex.gallery2.org/index.php/Gallery2:Embedding:Integration#An_entry_point

Anyway, as I said, in your case using the existing phpbb integration from www.nukedgallery.net seems appropriate.

 
Jiveturkey

Joined: 2006-01-20
Posts: 43
Posted: Tue, 2006-12-05 16:18

I'm having some strange issues.

I upgraded to Gallery 2.1.2, Joomla 1.0.11, the latest bridge and the latest Carbon theme and now when I click on a thumbnail it goes nowhere.

Here's a link to the page with an issue.
http://www.coastercommunity.com/component/option,com_gallery2/Itemid,95/

Here's a link to the stand alone gallery.
http://coastercommunity.com/gallery2/main.php

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-12-06 04:06

you should post joomla integration related issues at:
http://forum.4theweb.nl/forumdisplay.php?f=5

 
markusw
markusw's picture

Joined: 2005-07-25
Posts: 11
Posted: Mon, 2007-01-29 22:03

Hi,
at first I love you all ;-), gallery is the best software ever. Hopefully I post to the right place in this board.

I am currently writing some code for embedding the gallery2 to WBBB 3.0, so everything seems to work fine, a first module is ready. I do have the Gallery embedded in Mamboo and Joomla for a long time now, so I thought not a big deal. Now I do have three problems and I do'nt know how to solve them:

1) Creat User on the fly
When I do create a user on the fly and then directly get the Gallery outbput, the result is without this user. so I need to do a page reload and everything is fine. Any ideas?

2) Deleting a user in the Gallery
When I delete a user only in Gallery an entry remains in the table g2_externalidmap and when the user which is availabel in emAPP comes again to gallery there will be an error.

3) User Album
When user albums should be created at user creation or at first login this will not happen when embedded but if the user which was created on the fly from emAPP logs on directly to gallery the album is there. Any ideas?

Regards Markus

 
webmastair
webmastair's picture

Joined: 2005-06-09
Posts: 25
Posted: Tue, 2007-02-06 17:21

I changed back this code in his usual state and disable the "UTF-8 Translation" in the ACP.

Everything is back ok except when i go directly into G2 to manage albums and users... there is now the same problem «Album: Election Comit頦quot;Cumulus Hoppers"» (My gallery DB is "utf8_unicode_ci").

Did somedbody have an idea to help me ?

WebmastAir (from CompAir)

 
webmastair
webmastair's picture

Joined: 2005-06-09
Posts: 25
Posted: Tue, 2007-02-06 17:24

Sorry,
My message is a mistake... it was for an other post !

WebmastAir (from CompAir)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-02-06 17:49

markusw

next time, please create a separate forum topic for your questions. thanks.

1) that depends on your script / use of GalleryEMbed functions.
2) that's a known issue. please use GalleryEmbed::deleteUser to delete users that have been created through GalleryEmbed.
3) at user creation time should work the same way as with standalone g2.

--------------
Enter the Gallery 2 Theme Contest today!

 
webmastair
webmastair's picture

Joined: 2005-06-09
Posts: 25
Posted: Tue, 2007-02-06 21:54

I don't anderstand what you mind with "...please use GalleryEmbed::deleteUser to delete users that have been created through GalleryEmbed..."

BUT thanks for answer anymore... and yes G2 a great software

(sorry for this... i continue on the right post)

WebmastAir (from CompAir)

 
csager

Joined: 2005-10-06
Posts: 8
Posted: Thu, 2007-03-15 07:45

I have difficulties doing an initial mapping of emApp users to g2. It comes from the fact that the config file is in a different domain than the actual embedding wrapper.
My questions are:
- how to set embedUri and g2Uri?
- what user to set in the init method? (none, admin of g2, ..?)

Basically what I need is to tell in the wrappe script where to look for config.php.
Example: (Wrapper and client homepage are on the same server)
Wrapper script is in uxcs08.swissagenda.net/modul/g2mng/g2_overview.inc
Config file for the client homepage is in www.swissagenda.info/g2/config.php (or /srv/www/swissagenda/g2/config.php)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-03-15 14:35

> - how to set embedUri and g2Uri?

- http://codex.gallery2.org/Gallery2:Embedding
- http://codex.gallery2.org/Gallery2:Integration_Howto#Writing_New_Integration_Code

> - what user to set in the init method? (none, admin of g2, ..?)

do you mean what activeUserId to set when there's no user mapped yet?
when doing the initial import, i'd use GalleryEmbed::init(array('fullInit' => true)); (no user id.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage