Embedding & Integration
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
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 |
![]() |
Announcement: Good news: - uploadapplet, Gallery Remote and slideshowapplet now work in mode.embed.only = true |
|
flosell
Joined: 2005-10-03
Posts: 1 |
![]() |
I just experimented with a geeklog integration, nothing professional, but it works: <? if ($ret->isError()) { $db = mysql_connect("<dbhost>","<dbuser>","<dbpassword>"); if ($ret->isError()) { to integrate G2 in Geeklog, make a StaticPage with this code: global $_CONF, $_USER; $g2data = GalleryEmbed::handleRequest(); // if (isset($g2moddata['headHtml'])) { Still to write is a modification for the geeklog user management so that the userdbs are automatically synced. |
|
cschlatt
Joined: 2005-05-24
Posts: 17 |
![]() |
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, |
|
MichelleC
Joined: 2005-04-16
Posts: 42 |
![]() |
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 |
![]() |
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 when i try and open the top one i get this message:
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 |
![]() |
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 |
![]() |
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 |
![]() |
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 |
![]() |
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
![]()
Joined: 2005-07-31
Posts: 19 |
![]() |
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 |
![]() |
great i've added it to the list. |
|
ranjeetsodhi
Joined: 2004-01-24
Posts: 11 |
![]() |
How do I embed Gallery within Expression Engine? Any assistance would be welcome. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
no idea. don't even know express engine and it seems noone has started such an integration. |
|
ranjeetsodhi
Joined: 2004-01-24
Posts: 11 |
![]() |
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. |
|
mirela
Joined: 2005-12-18
Posts: 6 |
![]() |
Hello, I am trying to integrate G2 with my own custom made site, but I have issues with: Could anyone provide some useful information on how to achieve this? The most important is the login. Thank you! |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
mirela, please start a new topic to ask your questions. |
|
spankee
Joined: 2004-06-12
Posts: 51 |
![]() |
Xoops has integration with gallery2. state: alpha 2 |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
cool |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Announcement: What? Existing integrations will not work correctly with the new GalleryEmbed::init() function, small changes are required. When? What was changed? 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. 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? |
|
spankee
Joined: 2004-06-12
Posts: 51 |
![]() |
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 |
![]() |
thanks for the information. the xoops d/l link is working now. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Announcement: Feel free to contribute and extend the docs! Thanks |
|
johnmont
Joined: 2006-03-20
Posts: 17 |
![]() |
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 |
![]() |
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. Andy MacDonald |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
johnmont |
|
johnmont
Joined: 2006-03-20
Posts: 17 |
![]() |
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 |
![]() |
there was never something like loadGroup. however, good that you got it working. |
|
johnmont
Joined: 2006-03-20
Posts: 17 |
![]() |
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 |
![]() |
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 |
![]() |
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. |
|
pbolomey
Joined: 2006-05-04
Posts: 7 |
![]() |
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 |
|
chilll
![]()
Joined: 2006-05-23
Posts: 15 |
![]() |
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 |
![]() |
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: When I press the update config button I get this error: 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
![]()
Joined: 2006-05-23
Posts: 15 |
![]() |
chilll wrote:
hi, 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 |
![]() |
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 |
![]() |
chilll nkousen there are no further docs than documentation -> embedding & integration. and you can copy code from the existing integrations (joomla, drupal, xaraya, wordpress, ...). |
|
Vanny
Joined: 2006-02-10
Posts: 8 |
![]() |
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: Im getting a similar problem when trying to save configuration settings; 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()) { does the REM'd out bit make any difference? Whats the solution here? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
you're using there very old code which doesn't work in Gallery 2.1 or later. the proper pattern now is: if ($ret) { $ret is null in case of success. $ret is a GalleryStatus object in case of an error. |
|
EoN604
Joined: 2006-11-30
Posts: 8 |
![]() |
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 |
![]() |
did you actually look at: 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 |
![]() |
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. Here's a link to the stand alone gallery. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
you should post joomla integration related issues at: |
|
markusw
![]()
Joined: 2005-07-25
Posts: 11 |
![]() |
Hi, 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 2) Deleting a user in the Gallery 3) User Album Regards Markus |
|
webmastair
![]()
Joined: 2005-06-09
Posts: 25 |
![]() |
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
![]()
Joined: 2005-06-09
Posts: 25 |
![]() |
Sorry, WebmastAir (from CompAir) |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
markusw next time, please create a separate forum topic for your questions. thanks. 1) that depends on your script / use of GalleryEMbed functions. -------------- |
|
webmastair
![]()
Joined: 2005-06-09
Posts: 25 |
![]() |
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 |
![]() |
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. Basically what I need is to tell in the wrappe script where to look for config.php. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
> - how to set embedUri and g2Uri? - http://codex.gallery2.org/Gallery2:Embedding > - 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? -------------- |
|