PostNuke + G2
qazphilby
Joined: 2006-04-05
Posts: 7 |
![]() |
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 |
![]() |
yiha, thats great! =) regards |
|
pbolomey
Joined: 2006-05-04
Posts: 7 |
![]() |
Man that's good news.Good work thanks |
|
mbuna
![]()
Joined: 2002-12-26
Posts: 96 |
![]() |
Thanks much Phil. I'm sure we all appreciate you taking on this project. http://www.Aquaria.info <----- 8000+ photo postnuke embedded gallery |
|
tazmon95
Joined: 2004-06-08
Posts: 17 |
![]() |
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 |
![]() |
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 |
![]() |
this is like christmas for me.... |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
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 |
![]() |
Just a quick update: |
|
tuxxx
Joined: 2004-04-27
Posts: 13 |
![]() |
nice, thanks again! |
|
marcpare
Joined: 2004-01-06
Posts: 8 |
![]() |
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 |
![]() |
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
![]()
Joined: 2002-12-26
Posts: 96 |
![]() |
I'll be happy to beta test as well. PN.750 http://www.Aquaria.info <----- 8000+ photo postnuke embedded gallery |
|
heheman3000
Joined: 2005-07-14
Posts: 3 |
![]() |
lancets wrote:
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
![]()
Joined: 2003-09-07
Posts: 34 |
![]() |
I will be happy to install and test, what ever I can do to help!!! Joe Dunn PHP Version - v4.3.4 |
|
pheski
Joined: 2005-08-01
Posts: 5 |
![]() |
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 |
![]() |
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 |
![]() |
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 |
![]() |
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. |
|
Imoq
![]()
Joined: 2004-09-08
Posts: 25 |
![]() |
This is just a "thank you" message for qazphilby, you will make a lot of users happy with G2 module for PN ;) |
|
joedunn
![]()
Joined: 2003-09-07
Posts: 34 |
![]() |
Anything I can do yet? Just let me know. |
|
soultrain
Joined: 2006-02-08
Posts: 3 |
![]() |
@ qazphilby: I´m also looking forward to your G2-integration for Postnuke. tim |
|
atomhead
Joined: 2005-11-16
Posts: 7 |
![]() |
this would be cool but for those who want something and don't want to wait, I suggest Mediashare. |
|
qazphilby
Joined: 2006-04-05
Posts: 7 |
![]() |
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 |
![]() |
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, |
|
Herr.Vorragend
![]()
Joined: 2004-07-16
Posts: 120 |
![]() |
Thank you thaghbaer. I will try your solution. |
|
Herr.Vorragend
![]()
Joined: 2004-07-16
Posts: 120 |
![]() |
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 |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
Can you describe exactly which screen you are in. I don't recall any 'Save Settings' button that is part of my code. Regards, |
|
Herr.Vorragend
![]()
Joined: 2004-07-16
Posts: 120 |
![]() |
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 |
![]() |
Which version of postnuke are you running ? |
|
Herr.Vorragend
![]()
Joined: 2004-07-16
Posts: 120 |
![]() |
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 |
![]() |
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, |
|
el-jacksta
Joined: 2006-06-22
Posts: 6 |
![]() |
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, |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
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, |
|
el-jacksta
Joined: 2006-06-22
Posts: 6 |
![]() |
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, |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
In my menu block I simply have [Gallery2] as the URL which expands to http://www.xxx.yyy.zzz/index.php?name=Gallery2 Regards, |
|
el-jacksta
Joined: 2006-06-22
Posts: 6 |
![]() |
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 |
![]() |
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, |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
Jacqui, Regards, |
|
el-jacksta
Joined: 2006-06-22
Posts: 6 |
![]() |
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 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, |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
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, |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
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, |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
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, |
|
el-jacksta
Joined: 2006-06-22
Posts: 6 |
![]() |
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, |
|
el-jacksta
Joined: 2006-06-22
Posts: 6 |
![]() |
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. |
|
hardtoneselector
Joined: 2005-03-08
Posts: 46 |
![]() |
@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! As for blocks I did not test yet. great work and thanks!!! bernie |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
That's because the Admin id currently gets mapped to unregistered. The next release should fix it. Regards, |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
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, |
|
Herr.Vorragend
![]()
Joined: 2004-07-16
Posts: 120 |
![]() |
Step by step I got it working. But all german "Umlaute" in the maincontent (not sidebar) are not correct. e.g.: |
|
thaughbaer
Joined: 2006-06-19
Posts: 41 |
![]() |
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, |
|