pLog + G2

vauthrin

Joined: 2005-05-17
Posts: 4
Posted: Tue, 2005-05-17 03:07

I'm not sure if this is the right spot for it, but I made a plugin for pLog which embeds gallery into its body. The plugin can be seen in action at my site.

The plugin is available as a zip file or a zipped archive.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-05-17 05:53

That's great news. Congratulations to your integration.

I have added it to our embedding & integrations list.

If you don't mind, I'll also add it to the gallery cvs repository on sf.net. Or are there any licensing or any other issues?

 
vauthrin

Joined: 2005-05-17
Posts: 4
Posted: Tue, 2005-05-17 12:22

That's no problem.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-05-17 13:26

I quickly browsed through the code. Seems to be really clean. :)

If I haven't missed something, then you're not synchronizing users at the moment.
I guess you administrate G2 via standalone (adding pictures, etc.) and integrate the resulting gallery visually into your blog. Correct?

One note though...
You named a class 'GalleryHelper'. In G2, we try to avoid naming collisions.
That's why we prefix (almost) all of our classes with 'Gallery', we prefix our POST/GET variables and the database tables etc. and we try to not use no globals (but our single $gallery object).
In G2, we already have a class called 'Gallery' and we also have the concept of helper classes, i.e. GalleryUserHelper_simple.class etc.
That being said, I'd recommend naming your 'GalleryHelper' class somewhat different. Perhaps BLogGalleryHelper, or ... anything that doesn't start with Gallery :)

Thanks and keep up the great work.

 
vauthrin

Joined: 2005-05-17
Posts: 4
Posted: Tue, 2005-05-17 18:33

I'll change the class name as soon as I get a chance. I only chose that name because is sounded good to me. If only I could specify a package...

I haven't tried to set up user integration yet. My pLog is pretty much just set up for guests so I'd have to change my site configuration in order to test it out. I'll try to see if I can make it happen though.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-05-17 22:51

vauthrin, it was barely an observation, no need to develop features you don't need yourself. unless you have fun doing it :)

 
vauthrin

Joined: 2005-05-17
Posts: 4
Posted: Tue, 2005-05-17 23:45

Well, it's something I thought about doing and just got lazy. It would actually be better for me if I implemented that. And yes, it's all for fun. :D

 
Zoren

Joined: 2005-06-19
Posts: 11
Posted: Wed, 2005-08-24 17:38

Does anyone have this zip file archived somewhere. It seems the developer's site is offline.

Thanks,

Zoren

 
cheng_6058

Joined: 2004-10-12
Posts: 1
Posted: Sun, 2005-08-28 15:15

I just downloaded the file,
so I think the link works now :)

 
Zoren

Joined: 2005-06-19
Posts: 11
Posted: Sun, 2005-08-28 15:48

Great news. Glad to see vauthrin is back online. Thanks for the contribution.

Zoren

 
Nobu

Joined: 2005-10-26
Posts: 3
Posted: Wed, 2005-10-26 22:20

I have a problem with the navigational links of the gallery (those which are just below the Gallery-logo, upper part of the page) not working. When they're clicked they just return a blank page with the top and bottom containers of the blog, without any other contents, or in other words, gallery, which is supposed to fill the space. I have already tested with another theme, and the same problem occured, so it's either something which is configured in plog, or in Gallery2.

Please take a look at my site (http://nobu.ikkekristen.net/index.php?op=gallery), to see the problem in action. I'm also attaching a screenshot for your convenience. This problem is really getting to me, and I would highly appreciate any help or tips. The gallery really loses a lot of its user friendliness when the links at the top don't work. :(

Here's the system information, built by Gallery2:

Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.4.0 apache
Webserver = Apache/1.3.33 (Unix) PHP/4.4.0 FrontPage/5.0.2.2635
Database = mysql 4.1.14-standard-log
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, Thumbnail, Gd
Operating system = Linux ritz 2.4.31 #1 SMP Tue Jun 7 09:06:50 CEST 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-27 00:43

Nobu
please don't post your problems in multiple topics in the forum. this is the right topic for your problem, don't continue the other one.

@problem:
that's a plog integration bug.
the integration shouldn't output any HTML before the ::handleRequest() call. and if the handleRequest call says isDone = true, then call exit;

 
Nobu

Joined: 2005-10-26
Posts: 3
Posted: Thu, 2005-10-27 07:04

Sorry, didn't quite know how to approach this in regards of posting here.

I have seen this working with the same version of pLog, the plugin and Gallery2, so I'm wondering just what I could have gotten wrong here. I'm guessing what you wrote is code from Gallery2 which is used in the plugin? I'm no codemaster, unfortunately, so I don't know how to use that information. :S

Still, you wouldn't know of any (general) type of setting that would cause the error? Perhaps something which intereferes with those calls/parameters?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-27 11:04

just generally:
if you output stuff before the GalleryEmbed::handleRequest call, you have to change that.

e.g. if you print the HTML <head> part or your page header before reaching GalleryEmbed::handlerequest, then this would cause the above issue.

 
joannekhow
joannekhow's picture

Joined: 2006-06-13
Posts: 2
Posted: Tue, 2006-06-13 08:35

Hi all,

I am not sure if this is where I post my problems but I would just try.

I couldnt possibly go through all the forums but I did some searching and I still couldnt find a solution for my problem. Pls help me if you can.

I use lifetype (pLog) and used the plugin to integrate gallery2. I am using firefox. I would like to post my url here but i am a little worried so if you want to, i can pm it.

1. I have multiple users in this blog and would like to know if I can enable the gallery for them automatically. So that they do not need to do the settings themselves.

2. How should I configure new paths for each user?>>>
Absolute path *
Path to Gallery's embed.php file (ex. /var/www/gallery2/embed.php).
Embed uri *
Filename (and query parameters, but no path) of pLog.
Embed path *
URL path from document root to pLog directory.
Relative path *
Path from pLog directory to Gallery base directory.

Since the current one that is there is for me. I understand that if i use the same ones for a new user, they will end up having the same photos as the rest. I use to have a friend who is good at programming and she was the one who helped me with this initial set up but is now too busy to help me with this.

3. I notice in my gallery, the photos shown have got the owner name, date, views, album name right below it. i have tried the admin section, control centre on life type and also the gallery admin settings on menalto. I cant seem to find the option to disable them. its too much info and it makes the page looks busy.

Joanne