PostNuke + G2

qazphilby

Joined: 2006-04-05
Posts: 7
Posted: Sun, 2006-05-07 23:13

Hi all.

Just an update. the module i was working on is now complete and about to go into testing. Pending that i should be able to start on this by the end of the week. I will keep you updated to my progress.

Phil

 
tuxxx

Joined: 2004-04-27
Posts: 13
Posted: Mon, 2006-05-08 11:32

yiha, thats great! =)
you will be doing the whole postnuke community a big favor.
thanks a lot for your effort.

regards
philipp

 
pbolomey

Joined: 2006-05-04
Posts: 7
Posted: Mon, 2006-05-08 21:42

Man that's good news.Good work

thanks
Pablo

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Tue, 2006-05-09 04:09

Thanks much Phil. I'm sure we all appreciate you taking on this project.

http://www.Aquaria.info <----- 8000+ photo postnuke embedded gallery
http://www.CleanLiving.com
http://www.DigFishDig.com
http://www.PokerProForums.com
http://www.EngineSubmittal.com

 
tazmon95

Joined: 2004-06-08
Posts: 17
Posted: Tue, 2006-05-09 05:07

This is some of the best news I've heard on Gallery 2 in a long time :D Since when I first read that it was going to use MySQL instead of the Gallery 1 style database :D Let us know if you need any help testing.

 
qazphilby

Joined: 2006-04-05
Posts: 7
Posted: Tue, 2006-05-09 05:24

Thanks all,

glad to hear there is a lot of support behind this. I will definately be needing testing and also any help or suggestions on the implementation anyone has.

I will be trying to stick stricktly to the pn API and using the G2 API so hopefully will be .8 compliant.

Phil

 
tuxxx

Joined: 2004-04-27
Posts: 13
Posted: Wed, 2006-05-10 11:14

this is like christmas for me....

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Wed, 2006-05-10 16:05

Whomever is the current developer of this, I can host support forums at NukedGallery.net if yuo'd like, for your users to interact with you for questions, etc. Note that I don't use postnuke (phpnuke and phpbb2/3 for me), but if yuo're willing to take support to a centralized area, let me know. I can host the integration files as well, and commit them to the svn repository for version control. PM me at this site or at nukedgallery.net if interested.

[img]http://www.nukedgallery.net/signature.jpg[/img]

 
qazphilby

Joined: 2006-04-05
Posts: 7
Posted: Tue, 2006-05-16 01:23

Just a quick update:
Have started development and currently displaying some of gallery within the pn framework. still a long way to go, however it is progressing slowly. hopefully should have something for testing for anyone interested in about 2-3 weeks time, however that is not set in stone. Will keep you all up to date with any further info.

 
tuxxx

Joined: 2004-04-27
Posts: 13
Posted: Tue, 2006-05-16 11:08

nice, thanks again!

 
marcpare

Joined: 2004-01-06
Posts: 8
Posted: Sun, 2006-05-21 16:16

Thanks for your help with this. It will be greatly appreciated! I hope you keep posting on this forum as it seems to make more sense to keep the discussion here on the Gallery website rather than moving it around.

Looking forward to any progress reports.

Cheers

Marc

 
boricua

Joined: 2005-11-26
Posts: 44
Posted: Tue, 2006-05-23 12:27

Hi qazphilby:

Just to let you know that I am too interested in this module. I can also help beta test it. My setup is Apache 2.2.2, PHP 5.1.4 and PostNuke .762.

Regards and thank you very much for the effort.

Later

 
mbuna
mbuna's picture

Joined: 2002-12-26
Posts: 96
Posted: Tue, 2006-05-23 22:12

I'll be happy to beta test as well. PN.750

http://www.Aquaria.info <----- 8000+ photo postnuke embedded gallery
http://www.CleanLiving.com
http://www.DigFishDig.com
http://www.PokerProForums.com
http://www.EngineSubmittal.com

 
heheman3000

Joined: 2005-07-14
Posts: 3
Posted: Fri, 2006-05-26 07:02
lancets wrote:
Quote:
Has anyone been able to get pnGallery2 working under IIS? Not sure why, but that seems to be the only logical thing to suspect, as no matter what I've tried, pnGallery2 cannot find the gallery2 installation:

I could not find a G2 installation! Please correct the path!/modules/pnGallery2/gallery2/
My Gallery2 install works find as a standalone, but pnGallery just can't seem to find it, no matter how I specify its relative path. And since I haven't seen anyone else report this issue, I suspect that it's probably because I'm running under a less common configuration: WIMP (Windows, IIS, MySQL, PHP). Any ideas?

Hello,

Have you found the answer to this problem? I just tried to install everything and now have exactly the same problem. Also running under WIMP....

TIA!!!

Ramon

Sorry, no. I've never been able to resolve this issue, so seems like I'll have to stick with Gallery 1.x for the time being.

Any chance to fix this bug with Windows/IIS? I tried hacking up some of the pnGallery code, but I'm not familiar with the way Postnuke works, so to no avail...

 
joedunn
joedunn's picture

Joined: 2003-09-07
Posts: 34
Posted: Sun, 2006-05-28 16:56

I will be happy to install and test, what ever I can do to help!!!

Joe Dunn

PHP Version - v4.3.4
Safe mode is off
Magic quotes are off
Mod_rewrite is enabled
All 12 NetPBM binaries located
All 2 ImageMagick binaries located
Jpegtran binary located
Gettext installed

 
pheski

Joined: 2005-08-01
Posts: 5
Posted: Tue, 2006-05-30 00:21

I'm just adding my voice to the group that is thrilled at the idea of a Gallery 2 integration with postnuke.

(The only thing that would make me happier, would be that it works with safemode on.

pheski

 
qazphilby

Joined: 2006-04-05
Posts: 7
Posted: Tue, 2006-05-30 02:05

just wanted to let you know there has been a delay as i am having trouble with my development area. however i hope to have this resolved shortly and be able to continue with the development. More news when i have some

 
tazmon95

Joined: 2004-06-08
Posts: 17
Posted: Tue, 2006-05-30 03:46

I too am waiting as patiently as possible for this module :D Keep up the good work and don't hesitate to ask for help.

 
JoeMcLaughlin

Joined: 2005-07-21
Posts: 50
Posted: Fri, 2006-06-02 07:25

I have G1 galleries still in use at this time just for the RSS feed and postnuke integration, when I figure out how to set up RSS feed from my G2 installs some of the G1 installs will be deleted. I would love to see a G2 integration for Postnuke.
Joe.........

 
Imoq
Imoq's picture

Joined: 2004-09-08
Posts: 25
Posted: Sat, 2006-06-03 17:47

This is just a "thank you" message for qazphilby, you will make a lot of users happy with G2 module for PN ;) :)

 
joedunn
joedunn's picture

Joined: 2003-09-07
Posts: 34
Posted: Mon, 2006-06-05 21:01

Anything I can do yet? Just let me know.

 
soultrain

Joined: 2006-02-08
Posts: 3
Posted: Sun, 2006-06-11 12:28

@ qazphilby: I´m also looking forward to your G2-integration for Postnuke.
Are you still testing or what is going on?

tim

 
atomhead

Joined: 2005-11-16
Posts: 7
Posted: Fri, 2006-06-16 14:08

this would be cool but for those who want something and don't want to wait, I suggest Mediashare.

http://www.elfisk.dk/index.php?module=mediashare

 
qazphilby

Joined: 2006-04-05
Posts: 7
Posted: Fri, 2006-06-16 22:15

Hi all

Just an update. Work is progressing, however there are a lot of issues i am working through to get this working. Unfortunately i haven't had as much time as i hoped, however i will continue working on this. Thanks for all the support, and i will let you all know as soon as i have something for you to test.

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Wed, 2006-06-21 00:40

Stop your grinning and drop your linen. There's a new player in town. I got fed up waiting for a G2 PostNuke integration module and wrote my own. This is a completely rewritten module and not just a rework of the Xaraya module. Install just as any other module. The base directory is the absolute path to your G2 installation ( eg. /var/www/localhost/htdocs/gallery2 ). The URI is the web path to your G2 installation ( eg. /gallery2 ).The Gallery Menu is in a side block so you will need to add at least the Gallery2/Sidebar block. There is also a random block and a speficic block. The image path in the specific block is relative to your albums directory. The user integration is partially functional but requires a lot more work, particularly in the area of initial synchronization. To get what is there working you will need to replace modules/User/admin.php with the admin.php file in the pndocs subdirectory. This should allow you to create/update/delete users in PostNuke and have these changes reflected in G2. Please keep your installs and requests simple at this time until I have a stable base to work from. You must be running the latest stable versions of G2 and PostNuke. The image (.png) is a screen grab of what you should be able to achieve. Any links to working public sites ( by PM if you like ) would be most appreciated.

Regards,
Mike

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2006-06-21 19:03

Thank you thaghbaer.

I will try your solution.
Sounds good.

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2006-06-21 19:54

After pushing the "Save settings"- Button in the new administration-module, I receive the following error:

Quote:
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/xxxx/includes/pnRender.class.php:398) in /www/htdocs/xxxx/index.php on line 120
Failed to load module Gallery2 (at function: "updateconfig")

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Wed, 2006-06-21 21:01

Can you describe exactly which screen you are in. I don't recall any 'Save Settings' button that is part of my code.

Regards,
Mike

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2006-06-21 21:10

I mean this URL /index.php?module=Gallery2&type=admin

I am using a localized version of postnuke. So I don't know what "Konfiguration aktualisieren" means in englisch

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Wed, 2006-06-21 21:29

Which version of postnuke are you running ?
Regards,
Mike

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2006-07-12 17:34

I don't know why, but an old post moved to the end of this thread. Plz ignore this.

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Thu, 2006-06-22 11:08

The hooks are only required for the user synchronization. The point you're at it's not even touching Gallery... just updating a couple of module variables... so I find the message rather strange. It must have found the module to present the screen. When you click the update it should call Gallery2_admin_updateconfig in pnadmin.php. Are you using a Xanthia theme ? Maybe try with pnDefault ?

Regards,
Mike

 
el-jacksta

Joined: 2006-06-22
Posts: 6
Posted: Thu, 2006-06-22 14:40

Hi Mike,

I'm a little confused and need some assistance with installing your module.

I already have the pnGallery2 module installed and (kind of) of working. I say kind of because the Site Admin link and also other admin functions are visible to ALL visitors to my site! So you see why I am keen to change that.

I am unsure of where to place your module files. Do I create a new module and upload them into that? Or do I overwrite the existing pnGallery2 files?

My install of the main Gallery2 package resides within the pnGallery2 module directory (i.e modules/pnGallery2/Gallery2) so I am a little hesitant about moving the gallery itself.

Any advice/suggestions would be most appreciated!

Best wishes,
Jacqui :)

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Thu, 2006-06-22 15:07

My gallery installation is outside of the module... personally if I were you I would move it... but it shouldn't make any difference. If you want to use my module then it should coexist with pnGallery2. Just untar it into the modules directory and initialise and point the config vars to where your gallery actually is. User synchronization is something I am working on... but you shouldn't find that anonymous users have admin access... in fact you may find that the only way to currently get admin access to your gallery is directly.

Regards,
Mike

 
el-jacksta

Joined: 2006-06-22
Posts: 6
Posted: Fri, 2006-06-23 05:56

Hi Mike,

Thanks for your advice. I now have your module installed, initialized and activated, however, I am not able to call it.

I have pointed the config vars to my gallery2 installation and have clicked the "Update Configuration" button. Now I just can't figure out how to get to it! So I'm sorry for asking a stupid question, but how do I now access your module from within my site?

Best wishes,
Jacqui :)

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Fri, 2006-06-23 09:14

In my menu block I simply have [Gallery2] as the URL which expands to http://www.xxx.yyy.zzz/index.php?name=Gallery2

Regards,
Mike

 
el-jacksta

Joined: 2006-06-22
Posts: 6
Posted: Fri, 2006-06-23 10:46

Thanks again for helping me Mike. I did what you suggested and can now call the module however, I am getting an error when I do so. The URL to my gallery is identical to yours above but when I click on the link I am getting this error (see below). What am I doing wrong?

Error (GALLERY_SUCCESS)

* in at line 0

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Fri, 2006-06-23 12:39

I'm afraid I have no idea. I've not seen that error before. I assume you are using the latest stable versions of Gallery and PostNuke ? When you click on the link it should take you into Gallery2_user_main in pnuser.php. I'm guessing that the error came back from the GalleryEmbed::init routine. I'll try and beef up the error handling to give more of a clue.

Regards,
Mike

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Fri, 2006-06-23 20:19

Jacqui,
see this thread... http://gallery.menalto.com/node/35249

Regards,
Mike

 
el-jacksta

Joined: 2006-06-22
Posts: 6
Posted: Sat, 2006-06-24 00:17

Hi Mike,

As per your suggestion, I have upgraded Gallery2 to the latest stable build, and my Postnuke build was already the latest one so I didn't need to update Postnuke.

I now have access to your module through the URL above - so success at last!

One small problem though - the background for my gallery is a white page so it kind of stands out against the background of my site. I have tried different variations of the config vars on the module's admin page and one of the combinations gives me a gallery with no white background, though none of the images/thumbnails show!

I saw your screenshot above and would like my gallery to have a transparent background also. What are your config vars pointing to? Mine are like this:

/home/******/public_html/******/modules/pnGallery2/gallery2
/******/modules/pnGallery2/gallery2

As I said, when I fiddled around with them, I either got a blank page, or a gallery with a transparent background but with no images/thumbnails!

I really appreciate all your help with this problem.

Best wishes,
Jacqui :)

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sat, 2006-06-24 07:16

Ah... I have to admit to getting lucky there. It's not a transparent background it's a color pack within Gallery2. I found that the black color pack matched my theme exactly. The color packs are a module which you need to activate within Gallery2. If you don't find one that matches you may need to customise it although I have no idea how to do that.

Regards,
Mike

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sat, 2006-06-24 09:15

I had a quick look. Customising your own color pack doesn't look a big deal. Only 1 file to edit. Color packs are all under gallery2/modules/colorpack/packs/. Best to create a new subdir and copy an existing color.css from one of the others then edit to suit. As long as you can get the RGB triplets for your theme should be fairly straightforward. Of course this may not be ideal if you allow users to select their own theme on your site.

Regards,
Mike

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sat, 2006-06-24 10:04

I now have basic user synchronization working. There are a few restrictions. PostNuke must be the master and G2 the slave. You should start with a clean G2 user database ( ie. only the admin and guest user ) and your externalidmap table should contain no user entries ( select * from g2_ExternalIdMap should be empty). Then in the PostNuke Gallery2 module select 'Synchronize Users'. It works for me but then I don't have many users. After initial synchronization whenever you add/delete/update a user in PostNuke this should be reflected in G2.. but for this to work you must update the hooks for the User module to enable the Gallery2 module.

Regards,
Mike

 
el-jacksta

Joined: 2006-06-22
Posts: 6
Posted: Sat, 2006-06-24 11:14

Ok I'll take a look at the color pack module and edit the file you suggested. Shouldn't be too hard as I designed my site myself from scratch so I know all the hex codes by heart! My site is quite unusual for a PostNuke site i.e. it doesn't look like one (designed a graphic in Photoshop and then inserted some AutoTheme commands into the html). Anyway, I never let users select their own theme so there's no problem there.

I will also update your module so that I can synchronize my users, although, like you, I don't have many users - mostly just my family and colleagues! But mine is a personal site mainly used as a photo album/personal news site so I'm quite happy having just those people as my visitors.

I'll repost here when I've got the colour thing sorted out. Thank you so much for helping me yet again!

Best wishes,
Jacqui :)

 
el-jacksta

Joined: 2006-06-22
Posts: 6
Posted: Sat, 2006-06-24 13:07

Well I installed/activated the gallery2 colorpack module and after fiddling around for a while, decided to go and search around for a transparent pack, which I found.

For it to work, I had to tweak my gallery2 default theme's theme.css file a bit and also the color.css that came with the colorpack and also my main PostNuke theme's stylesheet, but after all that, I now have a transparent background colorpack working well and looking exactly how I wanted it to. Yay!

If anyone is interested, here is where I found instructions and the download for the transparent background colorpack, but remember you must tweak your CMS theme's main stylesheet as well as the gallery's default theme's stylesheet.

http://gallery.menalto.com/node/35451

 
hardtoneselector

Joined: 2005-03-08
Posts: 46
Posted: Sat, 2006-06-24 15:52

@el-jacksta: be aware, I am pretty sure this version is not intend to be called stable!

@thaughbaer: great work and thanks for picking up!
I just tested your newest attemped, and it is getting better, user synchronisation (with button works so far),... I did not created a new user to test, yet.
My concern is about the admin, it is not mapped yet in the externalIdmap, there need to be an entry like externalID 2(pn admin) =>> 6(g_id) or similar, with hacking it in the database I still don't see the admin link yet, I got still the register button!,...

As for blocks I did not test yet.

great work and thanks!!!

bernie

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sat, 2006-06-24 21:26

That's because the Admin id currently gets mapped to unregistered. The next release should fix it.

Regards,
Mike

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sun, 2006-06-25 18:52

And here it is. This should handle the Admin id better. It also does the UTF-8 conversion if mb_convert_encoding is available... although I have no real way to test that functionality myself.

Regards,
Mike

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Sun, 2006-06-25 20:09

Step by step I got it working.

But all german "Umlaute" in the maincontent (not sidebar) are not correct.

e.g.:
GröÃ�e must be Größe (eng. size)
Ã�bersicht must be Übersicht (eng. overview)

 
thaughbaer

Joined: 2006-06-19
Posts: 41
Posted: Sun, 2006-06-25 20:49

Glad you got it working. Was it a problem with my code ? Or something I could put in my code to prevent other people having the same problem ? This version should fix the content in the main window.

Regards,
Mike