Hello Henri,

On Wednesday, December 18, 2002 at 6:25:43 PM you wrote:

>> *Sigh* So we finally fixed gallery module :-)
HB> Great!

Err... I've just downloaded and installed the 20th Dec snapshot and
the problem seems to persist... :(

I removed everything under the GLOBALS snippeddir and then tried to
recreate the gallery... and now when I try to open the gallery folder it
just says:

Error in getting gallery folder 254 9e16742fdd9c0816086234240a7132c9 1

;(

Well... there now actually is a GALLERY snippetdir under
/GLOBALS/beb3f4b5f4a31b7e4da7b0e6816c8c9a and its id is 254 as
expected, but the guid is 335322f3f11f2d83ce66548a0eec7ea4...

/AegirAddOn_Gallery/lib/menu_functions reads:

<?
if (!$included[gallery_menu]) {

$treemenubrowsetype="gallery";
$treemenuitems[gallery] = "gallery";
 
function permissioncheck_AegirAddOn_Gallery($name) {
   global $set;
   return true;
}

function new_items_AegirAddOn_Gallery($type) {
  global $set;
  if ($type=="gallery")
  {
  $array[new1]="";
  $array[newtype1]="";
  $array[newtype2]="";
  $array[new2]="";
  return $array;
  }
  return 0;
}

$included[gallery_menu] = 1;

function create_image_gallery($sid,$guid) {
        global $set,$object;

        $globals_obj = mgd_get_snippetdir_by_path("/GLOBALS");
        if (!$globals_obj) {
            if (!($globals_id = mgd_create_snippetdir(0,"GLOBALS","","") )) return 0;
        } else {
            $globals_id = $globals_obj->id;
        }

        $guid_obj = mgd_get_snippetdir_by_path("/GLOBALS/".$guid);
        if (!$guid_obj){
         if (!($sitegroupguid_id = mgd_create_snippetdir($globals_id,$guid,"","") )) 
return 0;
         $guid_obj = mgd_get_snippetdir($sitegroupguid_id);
         $guid_obj->setsitegroup($sid);
        }

        $gallery=mgd_get_snippetdir();
        $gallery->up=$guid_obj->id;
        $gallery->name="GALLERY";
        $gallery_id=$gallery->create();
        $gallery=mgd_get_snippetdir($gallery_id);
        $gallery->setsitegroup($sid);

        if ( $gallery_id ) return ($gallery_id);
        else return 0;

    }
}
?>

Any ideas how to fix this? Or am I again miss some point?

-- 
See you,
Andrey.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to