Image block under Drupal

Continental

Joined: 2004-06-14
Posts: 243
Posted: Tue, 2006-02-14 10:45

started here: http://gallery.menalto.com/node/43023

From the very beginning. I married G2.0.1+Drupal4.6+gallery.module1.1.
I show Image Block by this howtos: http://codex.gallery2.org/index.php/Gallery2:GalleryEmbed:getImageBlock

While selecting my images I have an error:

Quote:
ou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND t2_AccessMap.t_permission & 1 = 1' at line 8 query:

I go to my sql tables for gallery2 and see the LINE 8 in the t2_AccessMap table:
t_accessListId - 7908
t_userId - 0
t_groupId - 3
t_permission - 2147483647

Questions:
is my logic right and I found right string number 8? or what is number 8?
what is this all about: accessListId/t_userId/t_groupId/permission?
what does it mean t_permission - 2147483647?
why it it error here?
how to solve it?

thank you. waiting the answer doensn't matter which...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-02-14 13:08

1. the codex page describes code for Gallery 2.1, not for G 2.0.x / 2.0
2. call init with fulInit => true before getImageblock
3. delete your cookies

 
Continental

Joined: 2004-06-14
Posts: 243
Posted: Fri, 2006-02-17 14:18

1. I took I code when it were for 2.0.1
2. great! works the second day without problems...

btw, I found somebody included my error here
http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Drupal
but even from this explanation it's difficult to solve this issue.

thx u.