Starting Elgg Integration Project
mrtrombone
Joined: 2007-08-31
Posts: 2 |
![]() |
Hi I am just starting to try and create an Gallery2 plugin for Elgg and am having a few problems. When I open gallery2 straight form my browser everything looks normal. I see this However when I open from Elgg I get the following As you can see I cannot see any images (including the gallery logos) and there is no css. Any help appreciated Cheers |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
something like this: $header_text = ''; $needDone = false; G2B_G2_init(); // call your gallery init function $g2_data = GalleryEmbed::handleRequest(); // gallery data array $needDone = true; // get the javascript and css links from the <head> html from G2 if ( isset( $g2_data['headHtml'] ) ) { $javascript = array(); $css = array(); list( $title, $css, $javascript ) = GalleryEmbed::parseHead( $g2_data['headHtml'] ); foreach( $css as $stylesheet ) $header_text .= $stylesheet."\n"; foreach( $javascript as $script ) $header_text .= $script."\n"; } if ( $needDone ) GalleryEmbed::done(); return $header_text; These sample functions are readily available in the current integration packages found in the codex for you to browse. |
|
mrtrombone
Joined: 2007-08-31
Posts: 2 |
![]() |
Thanks for your reply. Cheers |
|
gpo
Joined: 2008-05-05
Posts: 68 |
![]() |
Where did you get the bridge module for elgg, can you share it ? |
|
pipwax
Joined: 2003-12-29
Posts: 1 |
![]() |
I am interested in this project! I would like to help! |
|