Geeklog + G2

asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Sat, 2005-10-29 17:43

I have released a version of the Geeklog integration. [I don't have an example up.]

You can find out more and download the latest version through my geeklog software page.

This thread is for posting comments, suggestions, or bugs reports...

The current version is 0.5.0 - released 01 Mar 02006.

- Andy Maloney

 
vjl323
vjl323's picture

Joined: 2002-12-19
Posts: 39
Posted: Sun, 2005-11-06 03:10

Thanks! Can't wait to test this out. I am impressed with the docs and will comment on the process after installation. Thanks Andy!

/vjl/

 
hatric

Joined: 2005-11-07
Posts: 6
Posted: Mon, 2005-11-07 04:17

I am real excited to try out your integration. I just finished installing and have a question (and please bear with me as I am a newb):

If you view the picture below you can see that the "gallery" did not size correctly. It seems to be cut off on the right side. Is there a way to make it all fit?

[img]http://i20.photobucket.com/albums/b247/hatric/gal2.jpg[/img]

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Tue, 2005-11-08 14:56

I haven't seen this, but it probably is dependent on your themes [GL or G2].

What themes are you using and did you try others?

What browser are you using and did you try others?

- Andy

 
hatric

Joined: 2005-11-07
Posts: 6
Posted: Wed, 2005-11-09 01:04

Can't be IE or the theme. I have several albums with sub-albums. It seems to be hit or miss but some paginate correctly and others have the problem described above.

I have messed with most all the settings I could in the site admin area with no effect. I am at a loss.

 
hatric

Joined: 2005-11-07
Posts: 6
Posted: Thu, 2005-11-10 01:33

If you assume the order of the pages as you drill down into the individual photos are: Main Page/Sub-Album Page/Thumbnail Page/Individual Picture Page/Full Size Picture Page.

I have figured out that it is always the Sub-Album Page, the Individual Picture Page, and the Full Size Picture Page that has this problem. The Main Page and the Thumbnails page size themselves correctly. I assume these settings are in the "Classic" theme setting which I am using. Can you give me a hint to where to look for clearing up this problem?

thanks

 
hatric

Joined: 2005-11-07
Posts: 6
Posted: Thu, 2005-11-10 01:53

GOT IT!!

In the Themes album.tpl and photo.tpl I shrunk the table width from 100% to 98%... It's all good!

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Thu, 2005-11-10 01:58

Well the plugin is displaying whatever it gets from G2. There is a possibility of a CSS naming conflict, but I doubt it - the G2 guys have named everything in the CSS so as not to clash with other pages.

Can you give me a link so I can see it? [PM me if you don't want to post it.] I don't have IE, but I'd like to see the problem in action.

- Andy

 
hatric

Joined: 2005-11-07
Posts: 6
Posted: Thu, 2005-11-10 05:40

I figured it out. Was the width of the table setting in the album and photo templates in the "classic" theme. Once I reduced the width from 100% to 99% it all resized correctly. It wasn't the plugin. BTW... I really like how it integrates with G2... excellent work!!

 
hatric

Joined: 2005-11-07
Posts: 6
Posted: Thu, 2005-11-10 23:56

Another question for you. I would like to block anonymous users from viewing my galleries. Those who register on my geeklog site I would like to have be able to see everything, is there a way to do this? thanks.

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Fri, 2005-11-11 14:04

You should be able to edit the group permissions to achieve this... but it looks like it 'done broke'!

You're also supposed to be able to do the equivalent through the G2 album settings, but when I try that I get a redirection limit. Sigh.

I will look at it when I get the chance...

- Andy

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Sun, 2005-11-13 19:33

What I wrote there was total bollocks. Of course the groups aren't mapped from one to the other, so editing this within G2 won't work...

I have released a new version which allows you to turn off anonymous access to the gallery, the random block, or both.

- Andy

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-11-13 22:47

asmaloney

why is the topic non-sticky again? did you change it? do you prefer it not being sticky (at the top)?

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Sun, 2005-11-13 23:02

Um... I didn't do anything to un-stick-ify it on purpose - I edited the top post to reflect a change to version. I don't even know how the stickiness works...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-11-13 23:15

i guess everytime you edit the top post it's made unsticky. nevermind, i'll take care of it.

 
kinneh

Joined: 2006-02-08
Posts: 2
Posted: Wed, 2006-02-08 21:05

I can't get this to work with a multi-site installation, anybody tried it ?

 
squirrellydw

Joined: 2004-10-18
Posts: 53
Posted: Wed, 2006-03-01 02:45

I am having a problem, I am using Geeklog 1.40sr1.
I can only see the my Gallery photos when I am logged out, when I login they go away. Also when I am logged out an I click on a photo it takes me to my photo album but I have no header from GL so no way to get back to my main site.

Pleas help

www.theseashore.us

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) Database = mysql 4.0.26
Toolkits = ArchiveUpload, ImageMagick, NetPBM, Gd
Operating system = FreeBSD 4.11
Browser = Mozilla/5.0

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Wed, 2006-03-01 14:46

Heya. Could you please try 0.5.0 and see if that helps?

- Andy

 
squirrellydw

Joined: 2004-10-18
Posts: 53
Posted: Wed, 2006-03-01 16:09

Just want to know if this looks right to you before I install it.

*/

$_GLG_CONF['G2_path'] = '/home/u3/squirrellydw/html/gallery2';

$_GLG_CONF['G2_relative_path'] = '../gallery2';

/* Just to add to the path confusion, here's where you can set the directory name for the plugin
	in the public_html directory.

	If you want to access this plugin at http://www.theseashore.us/gallery2 instead of at
	http://www.theseashore.us/gallery2, you should set this to 'gallery2' and rename the
	GL_Gallery2 directory in your $_CONF['path_html'] directory to 'my_gallery'.
	
	Note: If you change this after you've set up rewriting in Gallery, you'll have to set it up again.
*/

$_GLG_CONF['public_dir'] = 'GL_Gallery2';

/* What fields do we show in the random photo block?
	Can include title|date|views|owner|heading|fullSize or it can be 'none'.
	Note that 'heading' and 'fullSize' probably don't make sense here.
*/

$_GLG_CONF['random_photo_fields'] = 'title|date|views';


// Allow anonymous users to see the random photo block
$_GLG_CONF['allow_anon_access_random_photo'] = true;

// Allow anonynmous users to access the gallery
$_GLG_CONF['allow_anon_access_gallery'] = true;

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) Database = mysql 4.0.26
Toolkits = ArchiveUpload, ImageMagick, NetPBM, Gd
Operating system = FreeBSD 4.11
Browser = Mozilla/5.0

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Wed, 2006-03-01 17:05

If your GL_Gallery2 directory is here:

/home/u3/squirrellydw/html/GL_Gallery2

Then it looks correct.

- Andy Maloney

 
squirrellydw

Joined: 2004-10-18
Posts: 53
Posted: Wed, 2006-03-01 17:40

Failed to install

Install GL_Gallery2
For some reason, installation failed. Please check your error logs.

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) Database = mysql 4.0.26
Toolkits = ArchiveUpload, ImageMagick, NetPBM, Gd
Operating system = FreeBSD 4.11
Browser = Mozilla/5.0

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Wed, 2006-03-01 18:12

Are you installing it as the same user you had there before? [GL user #3]

- Andy Maloney

 
squirrellydw

Joined: 2004-10-18
Posts: 53
Posted: Wed, 2006-03-01 18:25

Yes

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) Database = mysql 4.0.26
Toolkits = ArchiveUpload, ImageMagick, NetPBM, Gd
Operating system = FreeBSD 4.11
Browser = Mozilla/5.0

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Wed, 2006-03-01 18:40

Try emptying the g2_ExternalIdMap table and installing again.

 
squirrellydw

Joined: 2004-10-18
Posts: 53
Posted: Wed, 2006-03-01 19:37

ok, that worked but....now I am getting this when I click the config page.
Would you like to try to install it? If you do email me at

and tell me the info you will need or we can just keep doing this, either one is fine with me.

Reinit failed: Error (ERROR_MISSING_OBJECT) : Missing object for 6
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 2121 (gallerystatus::error)
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 305 (mysqldatabasestorage::_identifyentities)
in modules/core/classes/GalleryStorage.class at line 118 (mysqldatabasestorage::loadentities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 82 (gallerystorage::loadentities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 141 (galleryentityhelper_simple::loadentitiesbyid)
in modules/core/classes/GalleryCoreApi.class at line 2225 (galleryentityhelper_simple::loadentitybyexternalid)
in modules/core/classes/GalleryEmbed.class at line 184 (gallerycoreapi::loadentitybyexternalid)
in modules/core/classes/GalleryEmbed.class at line 94 (galleryembed::checkactiveuser)
in /home/u3/squirrellydw/geeklog/plugins/GL_Gallery2/functions.inc at line 711 (galleryembed::init)
in /home/u3/squirrellydw/html/GL_Gallery2/index.php at line 67

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) Database = mysql 4.0.26
Toolkits = ArchiveUpload, ImageMagick, NetPBM, Gd
Operating system = FreeBSD 4.11
Browser = Mozilla/5.0

 
squirrellydw

Joined: 2004-10-18
Posts: 53
Posted: Wed, 2006-03-01 21:31

OK, I fixed the above error, changed GL_Gallery2 to gallery2 in config file.
But I still have the same problem I did with version .42. I only see the random and gallery photos when I am logged out. Also when I click on the pictures it takes me out of Geeklog so I don't have any links to get back to my main site, no header or anything.

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) Database = mysql 4.0.26
Toolkits = ArchiveUpload, ImageMagick, NetPBM, Gd
Operating system = FreeBSD 4.11
Browser = Mozilla/5.0

 
jaapvdv

Joined: 2006-03-02
Posts: 4
Posted: Thu, 2006-03-02 14:40

Andy,

I have Geeklog 1.4, Gallery 2.0.2 and GL_Gallery2 installed on my server.

Gallery2 stand-alone works as is to be expected.
So does GeekLog.
In GeekLog I can see the Gallery related blocks but no images! The broken image icons are not limited
to the images in my album(s), the Gallery logo and the tags are also invisible.

I must be missing something, but what?

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Thu, 2006-03-02 16:57

squirrellydw & jaapvdv,

If either of you have URL rewrite turned on, turn it off and disable it. Then check that your paths are correct in config.php. The link when you hover over an image in the random photo block should point within your geeklog install, not to G2 directly.

 
squirrellydw

Joined: 2004-10-18
Posts: 53
Posted: Fri, 2006-03-03 19:53

I sent you my info

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) Database = mysql 4.0.26
Toolkits = ArchiveUpload, ImageMagick, NetPBM, Gd
Operating system = FreeBSD 4.11
Browser = Mozilla/5.0

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2006-03-05 04:29

Hey Andy, glad to see you've had a minute or two to spare from Hemospat to get 0.5.0 out.
I've updated it to work with the upcoming G2 2.1, but am having a problem or two.
The first is that it won't map the installing user to the gallery admin group, which I'll figure out here in a minute.(*fixed*)
But the most frusterating thing is the random photo block (and also control block) which appear on the geeklog front page.
They display fine, but the images don't link to the GL_Gallery2 directory, they simply link to index.php. Here is my init
$ret = GalleryEmbed::init( array(
'embedUri' => '/GL_Gallery2/index.php',
'g2Uri' => $_GLG_CONF['G2_relative_path'],
'loginRedirect' => 'users.php',
'activeUserId' => GLG_GetG2UserFromGL(),
'activeLanguage' => GLG_MapLanguage( $_CONF['language'] ),
'fullInit' => $full ) );

it seems gallery strips out the GL_Gallery2 from the embedUri. This I cannot figure out. I've tried the full url, and every variation I can think of. The only way it works is /GL_Gallery2/ but then the urls turn out like this: http://209.254.158.237/GL_Gallery2/?g2_itemId=214

Any ideas Andy or Val?

Once I get over this hurdle I'll be ready for a rc :)

Thanks Wayne

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2006-03-05 23:25

Fixed, needed to add a "?" to the end of the embedUri.

I will be releasing this into the wild after a little more testing :)

Geeklog v.1.4 & G2 v.2.1 make a beautiful couple.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2006-03-08 00:48

Ok, this still seems to be a problem(thought I had it fixed).
I'm having trouble mapping the user whois installing the geeklog to G2 bridge to gallery admin.
Here is what I've got:
$res = GalleryEmbed::addExternalIdMapEntry($Gl_uid, $G2_uid, "GalleryUser");
//$GL_uid being the current user (the installer)
//$G2_uid a value of 6 gallery admin id

So what am I doing wrong?

Valiant, could you shed some light on this for me?

 
wikki

Joined: 2005-11-06
Posts: 7
Posted: Fri, 2006-03-24 14:57

did you get geeklog to work with the new release of G2.1? i get so many errors, i don't even know where to start looking.

 
squirrellydw

Joined: 2004-10-18
Posts: 53
Posted: Fri, 2006-03-24 17:13

go to www.4wiseguys.com and download the new plugin

Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.2 cgi-fcgi
Webserver = Apache/1.3.34 (Unix) Database = mysql 4.0.26
Toolkits = ArchiveUpload, ImageMagick, NetPBM, Gd
Operating system = FreeBSD 4.11
Browser = Mozilla/5.0

 
asmaloney
asmaloney's picture

Joined: 2005-07-31
Posts: 19
Posted: Fri, 2006-03-24 17:33

I obviously don't have the time to continue with this plugin right now, so suprsidr is taking it over. He's renamed it G2Bridge [a much better name anyways!] and will be providing support at his site and on geeklog.net.

 
julianna

Joined: 2004-05-23
Posts: 21
Posted: Sun, 2006-04-02 12:45

Hi.

I tried installing the plugin, and received the following error:

Quote:
Fatal error: Call to undefined function: iserror() in /home/julianna/plugins/GL_Gallery2/functions.inc on line 713

It seems to have "broken" Geeklog, because I can't even access GL at this point (all I get is the error message).

Help!

Julianna

 
julianna

Joined: 2004-05-23
Posts: 21
Posted: Sun, 2006-04-02 15:12

Hi again.

I dropped all of the tables and reloaded the information. It turns out that I deactivated but didn't uninstall the rewrite.

I fixed that, and now I'm getting this error:

Quote:
Fatal error: Call to a member function on a non-object in /home/julianna/public_html/admin/plugins/GL_Gallery2/install.php on line 274

When I check error.log, the last line I get is:

Quote:
Mapping users from GL into G2

I checked the users in both GL and G2, and they match.

What could the problem be?

Thanks.

 
julianna

Joined: 2004-05-23
Posts: 21
Posted: Sun, 2006-04-02 16:50

It now seems that one of the problems is that I'm using G2.1. I've switched to G2Bridge, but am experiencing the same problem.

 
denjake

Joined: 2006-04-09
Posts: 4
Posted: Sun, 2006-04-09 01:44

OK, I think I got this one. I've just started using G2Bridge1.1, but I was having the same problem. In the functions.inc, there appears to be a typo. In the line: if ( $res->getErrorCode() & ERROR_COLLISION ), "res" should be "ret". I'm not a php programmer, but after making this change I was able to sync my users.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2006-04-09 19:42

actually it is $res, but the line should read:
if (($res) && ($res->getErrorCode() & ERROR_COLLISION))

Sorry, you were one of the few that got it before I caught the typo.

You can send the hate mail now :(

support for the G2Bridge plugin is available on my site here.

Also I just released G2Image Chooser integration for G2Bridge :)

 
denjake

Joined: 2006-04-09
Posts: 4
Posted: Mon, 2006-04-10 00:18

OK, I'll make the change. I've applied for an account for your site twice now. Can you make your support forums available to the public, or register me? I should have registered as users from denjak.com I'm having problems with never ending redirects, and when I set the $_G2B_CONF['login_redirect'] to '' I get a login page for gallery2 in my geeklog. Then I can't log into the embedded gallery or geeklog. I'm really pulling my hair out here. I just switched over to gallery2, and I really want embedded gallery in geeklog. My site is setup as a deny all until logged in.
Thanks,
Jake

 
denjake

Joined: 2006-04-09
Posts: 4
Posted: Mon, 2006-04-10 00:23

Ha, Ha, nevermind, that one fix fixed my never ending redirect problem.
Jake

 
denjake

Joined: 2006-04-09
Posts: 4
Posted: Mon, 2006-04-10 00:25

Hey, thanks for the help, the plugin works pretty well, now that I don't have a typo in it. If you take requests, here's one: I'd love to have a drop down list of all available galleries under the random photo. I know I can do this with the sidebar, but it starts to look klunky if the sidebar is in both geeklog and embedded gallery.
Jake

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2006-04-10 00:44

sorry Jake, you are the second to have problems receiving a password from my site, my mail server is very strict.
I set your password to 'geeklog' for your 1st user, and deleted the second.

I'm in live chat on my site now.

-s

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2006-04-10 00:51

Great, now you need to get my G2Image plugin for FCKeditor :)

 
wetcircle

Joined: 2008-07-17
Posts: 1
Posted: Thu, 2008-07-17 06:27

edited* nevermind, i have the wrong version of Gallery installed. is this not compatible with Gallery2.2?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2008-07-17 10:49

Yes this plugin is compatible with 2.2, I have it running 2.3 on mysite.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2