Starting Elgg Integration Project
|
mrtrombone
Joined: 2007-08-31
Posts: 2 |
Posted: Fri, 2007-08-31 10:23
|
|
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 |
|

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.
-s
FlashYourWeb and Your Gallery
Posts: 2
Thanks for your reply.
It turned out my embeduri was not correct.
Cheers
Posts: 68
Where did you get the bridge module for elgg, can you share it ?
Posts: 1
I am interested in this project! I would like to help!