He's also looking for people willing to contribute, unfortunatley not much response yet.
Carl
justed
Joined: 2004-04-28
Posts: 12
Posted: Fri, 2005-10-14 10:01
I'm working on the login right now, it seems like you have to adjust postnuke for gallery 2 to embed correctly. The only thing I'll have to do right now is to create a combined login function (or else you'll get errors).
And you don't have to pay me for it, but don't expect 24 hour support
And yes I've deleted the subdomain where I had a demo of pnGallery just because development was being slowed down because I had some work for clients of me, and they are paying me so they have first priority ;-)
Seriously, great to hear you're working on it. Just let me know if you need me to do testing or whatever!
carl
justed
Joined: 2004-04-28
Posts: 12
Posted: Fri, 2005-10-14 11:17
Just uploaded the module to noc.postnuke.com. Download it and check it out, I've called it a beta version. You only have to change one thing in the gallery source And that is the session_id, you'll have to change it to POSTNUKESID instead of GALLERYSID so you'll have one identifier.
There was no option in the embed-class of gallery to send this session_id_name to gallery. But if you change it everything will work. But i've posted the how-to notes to noc also.
hehe, 23 hour support. I'll give support only when I want to lol
I have tested this module on my own website for a while now and it is working for me. The module also checks if you an admin or not to give you administrator right within gallery. When a user logs in for the first time on gallery the username is created in gallery2 itself, and the next time the user gets into gallery he is automaticly logged on.
Hope you'll like it!
valiant
Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-10-14 14:33
justed
great news
can you explain me why you need to have a single cookie for both applications?
you know that it won't work if G2 and postnuke are in parallel folders, right?
through my work on g2 embedding, i've become a http cookie expert. the choice of two separate cookies etc. wasn't without intent..
justed
Joined: 2004-04-28
Posts: 12
Posted: Sat, 2005-10-15 09:53
I used one single cookie because I couldn't tell gallery where to put the cookies, I'm testing gallery 2 in a multisite-nuke environment en there it just didn't work. So I'm using one identifier now to make things easier. If G2 is in another folder as nuke is shouldn't make a difference, at least not in my environment, cookies are created in the / path.
I wanted to make a GALLERYSID cookie when users logged on to nuke, because when they log off their being logged of in gallery as well. And if there is no gallery session then users logging off are being presented with an error message.
But as I speak I slapping myself against my head and thing to myself that I could have made a check <? if (isset($_COOKIE['GALLERYSID'])) logoff(); ?> hehe
So maybe that will work, if you adjust /modules/PN-User/user.php and add the gallery-logoff part do it this way. You'll have to at this lines in the user_user_logout($var) function right after the line that calls 'pnUserLogout()'.
if (isset($_COOKIE['GALLERYSID'])) {
require_once('modules/pnGallery2/gallery2/embed.php');
$ret = GalleryEmbed::logout();
}
Maybe this will work, if it does there is no need to adjust de session.class of gallery2
I will test this later today, first I'm going to get something to eat right now, I think that this will work, and if it does I will go into my corner and be very ashamed.
justed
Joined: 2004-04-28
Posts: 12
Posted: Sat, 2005-10-15 10:05
Yep, just as I thougt, I'll be ashamed now and go to my corner to think about how stupid I am. the cookie-checks works also so you don't have to alter gallery2 files. I have placed a newsitem in the noc at postnuke.com about it, there you will find the complete logout function for postnuke.
Thanks valiant for making me think about it
dnuttall
Joined: 2004-04-02
Posts: 3
Posted: Sat, 2005-10-15 12:08
I've been successful getting Gallery2.0.1 up/running (sorta) with PostNuke using the pnGallery2 module posted by Eduard and the notes on the noc dated 10-15-2005.
One "small problem". I seem to have locked myself out of the Gallery2 login/administration.
If I attempt to access Gallery2 by giving the full URL, it produces Smarty (apparently Smarty) errors similar to the following:
Warning: main(/home/nuttalld/public_html/heritage/modules/pnGallery2/gallery2/lib/smarty/core/core.load_plugins.php): failed to open stream: No such file or directory in /home/nuttalld/Gallery/smarty/templates_c/%%2125115569/%%3A^3A8^3A818B59%%theme.tpl.php on line 3
Fatal error: main(): Failed opening required '/home/nuttalld/public_html/heritage/modules/pnGallery2/gallery2/lib/smarty/core/core.load_plugins.php' (include_path='.:/home/nuttalld/www/heritage/modules/pnGallery2/gallery2/') in /home/nuttalld/Gallery/smarty/templates_c/%%2125115569/%%3A^3A8^3A818B59%%theme.tpl.php on line 3
I THINK it may have to do with the fact that my Gallery2 DATA is completely outside the normal server's path.
The file system paths are as follows:
PostNuke: /home/nuttalld/www/heritage
PostNuke modules: /home/nuttalld/www/heritage/modules
pnGallery2 module: /home/nuttalld/www/heritage/modules/pnGallery2
Gallery2: /home/nuttalld/www/heritage/modules/pnGallery2/gallery2
Gallery DATA: /home/nuttalld/Gallery
If anyone has a clue/suggestion, please post or PM me.
TIA.
Dave Nuttall
San Antonio, TX
========================= UPDATED ===============
================ UPON RECONSIDERATION ===========
I dumped the idea of using pnGallery2 module in PostNuke and just configured it with PostWrap.
To use a common but incorrect expression: It's much more betterer now!
Environment is PN 0.7.6.1, PostWrap 2.5 and Gallery2.0.1 on a hosted Linux system.
@cookie path = /
that's a security risk for websites that have more than 1 G2 or that host websites in ~username/ folders.
@error on logout:
you mean GalleryEmbed::logout($args) ? never seen there errors.
besides: don't forget to set $args in ::logout ! see the description in GalleryEmbed.class.
if you forget the arguments to ::logout, you'll have problems with the cookie path (cookie won't be deleted, instead you'll get a second cookie).
cool that it works now
jacorob
Joined: 2005-10-16
Posts: 2
Posted: Sun, 2005-10-16 01:12
Well, I think I'm 99% there. I just upgraded my PN site from .723 to .761.
I installed pnGallery2 (1.0 beta) and Gallery 2.0.1. I ran through the install steps, fixed the logout, initialized everything in PN, etc. I have a menu link in my PN set to [pnGallery2]. When I click on the menu item it brings up
pnGallery2 just fine and shows my top level gallery folders. However, the links from the albums are wrong.
They look like: http://www.fakedomainhere.com/index.php?name=pnGallery2index.php?module=pnGallery2&func=main&g2_view=core.ShowItem&g2_itemId=24
either correct the way you're accessing G2 (name -> module) or change the embedUri.
jacorob
Joined: 2005-10-16
Posts: 2
Posted: Sun, 2005-10-16 23:11
What's obvious to one...I really need to learn PHP and the codebase so I don't make such obvious mistakes again.
Thanks for the tip. However, AFAIK I entered all the correct parameters when configuring pnGallery2. Am I linking to it (pnGallery2) wrong by putting [pnGallery2] in to my PostNuke core/menu block item?
Thanks,
Bob
lupar_blackice
Joined: 2005-04-21
Posts: 60
Posted: Mon, 2005-10-17 02:56
All I get after installing pngallery2 & gallery 2.0.1 on postnuke 7.6.1 is a blank page when I try to access g2 with in postnuke. gallery2 works great standonly.
we should update the entry in the embedding and integration topic and we should update the first post of this thread to be more informative and reflect the current status and add links etc.
macscr
Joined: 2004-08-24
Posts: 11
Posted: Mon, 2005-10-24 03:13
The way it sounds like its being embeded is just a hack and not the real way it should be embeded like it was with the 1.x line.
carlito
Joined: 2005-10-14
Posts: 3
Posted: Mon, 2005-10-24 10:14
valiant,
AFAIK Eduard Wustenveld = justed.
I have pnGallery running fine on a testsite, no problems whatsoever.
carl
lancets
Joined: 2004-07-11
Posts: 15
Posted: Mon, 2005-10-24 17:38
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:
Quote:
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?
JoJoC
Joined: 2005-10-30
Posts: 2
Posted: Fri, 2007-05-11 11:36
The 1.x line is 100% embedded? no core code modification?
Josep
hardtoneselector
Joined: 2005-03-08
Posts: 46
Posted: Wed, 2005-11-02 22:12
Hi!
great advantage this integration I waited for almost 1year after everybody was telling me I could save some performace on my Server,... fine, ok thats kinda true, and everythings work great! Except sone minor problems I am really satisfied till I saw what happend when I access the Gallery as logged out postnuke user,... I do still have admin rights,... thats really really bad!!!
But maybe I do something wrong? has anyone a hint what I did wrong what I did forgot? When I log in as a standart pnUser first it really seemd to look fine,... no albums shown, nothing possible ok I deleted all group permissions because of testing,... It might be something wrong with the permissions I did,... but wrong Ive seen a link in the bottom where I can view as guest and .... I am admin again,... as normal User, the same like I am unregistered User,...
what I did wrong? does somebody seen the same issue?
greetings
bernie
chaosram
Joined: 2004-07-21
Posts: 15
Posted: Tue, 2005-11-08 12:18
I am working with PN 750 (and 761 in a testing area) an installed gallery2 into pnGallery2 as it was told...
If i try to get into the gallery embedded in PN with 'http://l4f.de/index.php?module=pnGallery2&func=main' it causes an error " An error has occurred." with the following details:
Error (ERROR_STORAGE_FAILURE) :
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1166 (gallerystatus::error)
* in modules/core/classes/GalleryStorage.class at line 245 (mysqldatabasestorage::search)
* in modules/core/classes/Gallery.class at line 223 (gallerystorage::search)
* in modules/core/classes/helpers/GalleryUserGroupHelper_medium.class at line 270 (gallery::search)
* in modules/core/classes/GalleryCoreApi.class at line 1695 (galleryusergrouphelper_medium::fetchgroupsforuser)
* in modules/core/classes/helpers/GalleryPermissionHelper_simple.class at line 50 (gallerycoreapi::fetchgroupsforuser)
* in modules/core/classes/GalleryCoreApi.class at line 412 (gallerypermissionhelper_simple::fetchaccesslistids)
* in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 93 (gallerycoreapi::fetchaccesslistids)
* in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 58 (galleryuserhelper_simple::hasitempermission)
* in modules/core/classes/GalleryCoreApi.class at line 447 (galleryuserhelper_simple::asserthasitempermission)
* in modules/core/ShowItem.inc at line 76 (gallerycoreapi::asserthasitempermission)
* in modules/core/classes/GalleryTheme.class at line 688 (showitemview::loadtemplate)
* in modules/core/classes/GalleryView.class at line 285 (matrixtheme::loadtemplate)
* in main.php at line 287 (showitemview::doloadtemplate)
* in main.php at line 87
* in modules/core/classes/GalleryEmbed.class at line 153
* in /home/fsick/www.l4f.de/modules/pnGallery2/pnuser.php at line 46 (galleryembed::handlerequest)
* in /home/fsick/www.l4f.de/includes/pnMod.php at line 615
* in /home/fsick/www.l4f.de/index.php at line 89
Anybody an idea ?
Chaos Ram
valiant
Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-11-08 15:32
how was GalleryEmbed::init called? with what value for activeUserId ?
hardtoneselector
Joined: 2005-03-08
Posts: 46
Posted: Tue, 2005-11-08 20:45
@valiant: do you ask chaosram or me?
In my case it should be 2(admin) or 3(me withadmin rights), is there a way to extract this from the database or config file? then I could tell it you for sure!
edit: the UserIDs from Gallery would be 5 or 6 depends on which admin,...
greetings
bernie
valiant
Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-11-08 20:56
i was asking chaosram
i'm not really supporting this integration, but maybe i can help in this issue.
as for your admin rights thing. change the cookie path in g2 site admin -> general
@vailant:
My problem is, that i cannot get into admin-section of G2, because of the same problem.
I am looking for a complete and proper working package of pnGallery2 or an installation of G2 embedded into Postnuke 761.
praetor
Joined: 2005-11-17
Posts: 1
Posted: Thu, 2005-11-17 13:09
I'm having a similar problem to chaosram's. I've successfully integrated G2 into PN, except for the fact that I can't log into G2 while it's inside PN. Any thoughts?
opel70
Joined: 2002-11-07
Posts: 79
Posted: Thu, 2005-11-17 14:50
Ok, I am starting to get this going. I got G2 all up and running in the /gallery2/ directory on my site (not /modules/pngallery2/gallery2/). Though it looks like you can just modify the module settings to point to a different directory.
So, I have added the pnGallery2 module to my PN .761 installation and made the modified user.php changes. Now when I try to access the module using index.php?module=pnGallery2&func=main I get this error:
Fatal error: Call to undefined function: mb_convert_encoding() in e:\web pages\musaland.com\modules\pnGallery2\pnuser.php on line 80
Is this because I don't have Gallery2 installed in the "proper" location?
Tim Musa http://www.musaland.com/modules/gallery/
Gallery version: 1.4.4-pl6
Apache version: 1.3.31
PHP version: 4.3.10
Graphics Toolkit: NetPBM
Operating system: Windows Server 2000 SP4
netz-rack.c
Joined: 2005-11-21
Posts: 2
Posted: Mon, 2005-11-21 16:11
At least you've got a very BIG security problem:
When I tried to acess your Gallery2 Installation, i got Admin rights, and was able to view the Site Admin part.
Teh problem with my local install of Gallery2 is, it works perfect standalone, but doesn't get the Users from Postnuke!
any idears? (sorry no Link, would by a high security risk to run gallery2 on my postnuke-site)
Carsten
valiant
Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-11-21 16:34
well, i guess the postnuke integration in question maps the admin user and always says activeUserId => adminuser, thus making everyone admin.
that sure sounds not like a finished / ready integration.
hardtoneselector
Joined: 2005-03-08
Posts: 46
Posted: Tue, 2005-11-22 00:54
it is possible to map in the database the guest User ID of Postnuke to the guest ID from gallery2 and this will avoid this issue,... tough this was the part I messed my database a little bit,... and I needed to create my Groups and Users again and figure out the rights,... now it seems to work,....
still I got some performance Issues, it seems when Users first time login and do a little playing gallery2 is crashing my Server Performance,...
hmm
greetings
bernie
boricua
Joined: 2005-11-26
Posts: 44
Posted: Sat, 2005-11-26 20:12
Hi:
I have installed pnGallery2. One error was fixed when I Chmoded 777 dir g2data (inside gallery2).
I tried pnGallery2 installation several times, but it is working nicely so far. Follow the instructions in NOC.
Adios.
colaboy
Joined: 2005-12-06
Posts: 1
Posted: Tue, 2005-12-06 23:42
lancets wrote:
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:
Quote:
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
jochs
Joined: 2005-11-09
Posts: 4
Posted: Thu, 2005-12-08 04:33
I'm getting the same problem as lupar_blackice. All I get is a page that contains this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>
And I get this in the error log of the web server:
PHP Fatal error: Call to undefined function: mb_convert_encoding() in /var/www/html/PostNuke-0.761/html/modules/pnGallery2/pnuser.php on line 80
It works fine if I got directly through gallery and everything else in postnuke is working fine. this is with gallery2.0.2 and pn 0.7.6.1
Thanks for any input ;)
**EDIT** I figured it out... php does not compile in mbstring by default. You need to recompile php with --enable-mbstring=all
jochs
Joined: 2005-11-09
Posts: 4
Posted: Thu, 2005-12-08 16:31
Ok, just to throw a me too in there, I am also seeing only the "register" link within gallery and no login or admin menus. Also when I enabled the additional postnuke block, it doesn't show up at all. There's no mention of it if I view source on the pages generated in postnuke.
thanks for taking the time to work on this for all of us free loaders ;)
lancets
Joined: 2004-07-11
Posts: 15
Posted: Fri, 2005-12-16 02:57
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.
Roshlin
Joined: 2004-09-14
Posts: 70
Posted: Sun, 2006-01-08 16:42
I just installed the pngallery2 with the latest G2 (7.1.06)
G2 installed fine and PNg2 also, in the PNg2 congiguration I get "everything seems to be ok.
pnGallery2 - Configuration
Status of the Gallery2 module: The current configuration seems to be ok
Fatal error: main(): Failed opening required 'SMARTY_CORE_DIRcore.load_plugins.php' (include_path='.:/php/includes:/usr/share/php') in /home/mysite/g2data/pn_g2/smarty/templates_c/%%3220311618/%%3A^3A8^3A818B59%%theme.tpl.php on line 3
This only happens with PNg2 the g2 works fine. any help
Thanks
Roshlin
Joined: 2004-09-14
Posts: 70
Posted: Sat, 2006-01-21 15:50
Hi,
I deleted the contents of /home/mysite/g2data/pn_g2/smarty/templates_c/, as sugested in the help and now the pngallery2 is working, but there are no links to the admin fields so I cannot setup anything, of course after deleting the above I cannot access the gallery standalone.
Can anyone who has this working tell me how to access the gallery admin to setup the gallery.
(I mean the gallery admin not the pnGallery2, the pnGallery2 admin is working)
Thanks
hardtoneselector
Joined: 2005-03-08
Posts: 46
Posted: Tue, 2006-01-24 00:24
@roshlin: this should not be the official solution, but I remaped the rights, user&group ID's in the db therefore I interpretated the mapping procedure of postnuke and gallery2 (UserID PN map to GalleryID,...) then it works fine,... till some 3party modules are using hardcoded UserID's,... so I just would suggest this way as dirty way,...
is pngallery2 dead again? this is more my concern, I just don't see any move forward anymore,... I hacked several days to get it working and got similar problems like yours, and I really don't can repeat everything did back in time,...
maybe it makes sense to send a trouble ticket in the noc,... maybe then some developer will get active anytime,... just point out the problems you got!!! and maybe when you find a solution write the step by step procedure down, so somebody can investigate it,... I forgot that and now I can not point it out again,...
Roshlin
Joined: 2004-09-14
Posts: 70
Posted: Tue, 2006-01-24 20:47
Thanks hardtoneselector
I'll look around the database to see what I can do, don't know much of programming, so most probably willl have to wait till someone gets this working.
Thanks
mobiGeek
Joined: 2003-10-28
Posts: 5
Posted: Wed, 2006-02-01 03:38
Anyone working on this now?
I'd be happy to jump in and help out, but I'd need a bit of guidance so as to get an efficient start. I've got some experience with pnAPI but have not looked at Gallery's code.
Thanks,
mG.
hardtoneselector
Joined: 2005-03-08
Posts: 46
Posted: Thu, 2006-02-02 23:38
Hi MobiGeek: Would be awesome when somebody is picking up the project again and make it more reliable.
Maybe you could contact wustenfeld aka justed he maked the last modifications and developments on this integration. Maybe it makes sense to overlook and redoing it I could not tell!
As for pnAPI or GalleryAPI Compilance I could not tell you anything, I can not code PHP and do not understand this API's. There is a documentation on integrating the gallery at http://codex.gallery2.org/index.php/Gallery2:Embedding:Integration
This Integration works in general, User will be created just fine, but theres no syncronisation about the groups, also seems something wrong or not working right with this management who becomes what rights.
Hooks and other things aint working and might will never be working, this might be ok.
I got trouble in using some modules from G2, this might be caused because their hardcoded the rights in the module and I tweaked and mapped the database till it worked like desired(everyone has now the right permissions, but it seems I mixed something up)
And on the other hand there is nobody understand it total and can help really the users stuck here, who can help them out and therefore not a big community is using it so not a lot has enough expierience,...
Would be awesome when you could support this project, since photoshare and myegallery has just not same functions G2 has! There are some their need a stable G2 desperatly like me, and on the other hand I guess a lot would like to use it but beeing scared from not beeing directly support for pn.
I bet valiant or other helpers of the G2 project could assist you and give you the right hints on the G2 part and as for pn you got the expierience!!! ;)
I got some pn testpages running and will be willing to test a little bit if neccassery, just dont' have much time. And also willing to donate via paypal a small dinner!
greetings
bernie
mbuna
Joined: 2002-12-26
Posts: 96
Posted: Mon, 2006-02-13 15:24
So far there is aout $500 pledged from the postnuke forum for a developer to take this task on. Is anyone interested in this project or should we postnuke people start looking for another gallery?
Is anyone interested in this project or should we postnuke people start looking for another gallery?
the gallery 2 development team does not code or maintain integrations. all we do is offer the interface, guidance and eventually more docs. so if a postnuke developer shows up ready and willing to integrate g2 in postnuke, we can answer questions and offer guidance.
mbuna
Joined: 2002-12-26
Posts: 96
Posted: Wed, 2006-03-01 04:44
Yep, I realize that Valiant, but I figure we are far more likely to find someone to work on it here than over at the postnuke site.
What is the current status of integrating gallery 2 with PN?
I am a web developer and am just working on a module for post nuke (it's my first module) so i might be able to lend to this project. however it will still be few weeks before i can probably get into it. will let you all know after i have completed this module and have a better understanding of postnuke
Phil
hardtoneselector
Joined: 2005-03-08
Posts: 46
Posted: Thu, 2006-04-13 16:16
Hi Phil,
nice to hear that you would like to get into it, I've been willing to help you with translations in german and with testing if you like,...
Today postnuke .8milestone1 is released, for developers, maybe it makes sense to develope the integration for working in .8 since this will be the future of postnuke, it is much cleaner and might be having more functions in the Api what might make it easier for you to implement the integration like before,...
The Status o the integration you can find in the noc mentioned above,...
galler2.0.x seems to be working with postnuke, kind of. Never heared from somebody got 2.1 working. Several people was starting on the integration but it seems everybody gave up on that and do not know why,... maybe that would be helpfull too
looking forward to see soon an better integration!
Would really like to switch to V2.1 thought about using postwrap till a solution is near,...
greetings and nice eastern
bernie
mbuna
Joined: 2002-12-26
Posts: 96
Posted: Sun, 2006-04-16 16:07
Phil,
Any more thoughts on taking on the G2 postnuke integration? Don't forget there is about $500 pledged to whomever can get a clean, full integration.
just an update. I am about 40% through my module development and am hoping i can finish it before the end of april (this is the non gallery module) however i am learning a lot about the api development and am using the standards required for the pn.8 release (however am only using .7x currently). There have been some delays with holidays and sickness however i am still hopefull of this time estimate.
I am still very interested in this and will be talking to you all soon on the best way to attack the problem.
I hope to begin work on a gallery module early may
Posts: 3
Over at postnuke.org, Lonny is proposing to have the integration work done by a paid developer:
http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=44338
He's also looking for people willing to contribute, unfortunatley not much response yet.
Carl
Posts: 12
I'm working on the login right now, it seems like you have to adjust postnuke for gallery 2 to embed correctly. The only thing I'll have to do right now is to create a combined login function (or else you'll get errors).
And you don't have to pay me for it, but don't expect 24 hour support
And yes I've deleted the subdomain where I had a demo of pnGallery just because development was being slowed down because I had some work for clients of me, and they are paying me so they have first priority ;-)
Just watch http://noc.postnuke.com/projects/pngallery2/
Posts: 3
Hey justed,
I'll settle for 23 hour support
Seriously, great to hear you're working on it. Just let me know if you need me to do testing or whatever!
carl
Posts: 12
Just uploaded the module to noc.postnuke.com. Download it and check it out, I've called it a beta version. You only have to change one thing in the gallery source And that is the session_id, you'll have to change it to POSTNUKESID instead of GALLERYSID so you'll have one identifier.
There was no option in the embed-class of gallery to send this session_id_name to gallery. But if you change it everything will work. But i've posted the how-to notes to noc also.
hehe, 23 hour support. I'll give support only when I want to lol
I have tested this module on my own website for a while now and it is working for me. The module also checks if you an admin or not to give you administrator right within gallery. When a user logs in for the first time on gallery the username is created in gallery2 itself, and the next time the user gets into gallery he is automaticly logged on.
Hope you'll like it!
Posts: 32509
justed
great news
can you explain me why you need to have a single cookie for both applications?
you know that it won't work if G2 and postnuke are in parallel folders, right?
through my work on g2 embedding, i've become a http cookie expert. the choice of two separate cookies etc. wasn't without intent..
Posts: 12
I used one single cookie because I couldn't tell gallery where to put the cookies, I'm testing gallery 2 in a multisite-nuke environment en there it just didn't work. So I'm using one identifier now to make things easier. If G2 is in another folder as nuke is shouldn't make a difference, at least not in my environment, cookies are created in the / path.
I wanted to make a GALLERYSID cookie when users logged on to nuke, because when they log off their being logged of in gallery as well. And if there is no gallery session then users logging off are being presented with an error message.
But as I speak I slapping myself against my head and thing to myself that I could have made a check <? if (isset($_COOKIE['GALLERYSID'])) logoff(); ?> hehe
So maybe that will work, if you adjust /modules/PN-User/user.php and add the gallery-logoff part do it this way. You'll have to at this lines in the user_user_logout($var) function right after the line that calls 'pnUserLogout()'.
if (isset($_COOKIE['GALLERYSID'])) {
require_once('modules/pnGallery2/gallery2/embed.php');
$ret = GalleryEmbed::logout();
}
Maybe this will work, if it does there is no need to adjust de session.class of gallery2
I will test this later today, first I'm going to get something to eat right now, I think that this will work, and if it does I will go into my corner and be very ashamed.
Posts: 12
Yep, just as I thougt, I'll be ashamed now and go to my corner to think about how stupid I am. the cookie-checks works also so you don't have to alter gallery2 files. I have placed a newsitem in the noc at postnuke.com about it, there you will find the complete logout function for postnuke.
Thanks valiant for making me think about it
Posts: 3
I've been successful getting Gallery2.0.1 up/running (sorta) with PostNuke using the pnGallery2 module posted by Eduard and the notes on the noc dated 10-15-2005.
One "small problem". I seem to have locked myself out of the Gallery2 login/administration.
If I attempt to access Gallery2 by giving the full URL, it produces Smarty (apparently Smarty) errors similar to the following:
Warning: main(/home/nuttalld/public_html/heritage/modules/pnGallery2/gallery2/lib/smarty/core/core.load_plugins.php): failed to open stream: No such file or directory in /home/nuttalld/Gallery/smarty/templates_c/%%2125115569/%%3A^3A8^3A818B59%%theme.tpl.php on line 3
Fatal error: main(): Failed opening required '/home/nuttalld/public_html/heritage/modules/pnGallery2/gallery2/lib/smarty/core/core.load_plugins.php' (include_path='.:/home/nuttalld/www/heritage/modules/pnGallery2/gallery2/') in /home/nuttalld/Gallery/smarty/templates_c/%%2125115569/%%3A^3A8^3A818B59%%theme.tpl.php on line 3
I THINK it may have to do with the fact that my Gallery2 DATA is completely outside the normal server's path.
The file system paths are as follows:
PostNuke: /home/nuttalld/www/heritage
PostNuke modules: /home/nuttalld/www/heritage/modules
pnGallery2 module: /home/nuttalld/www/heritage/modules/pnGallery2
Gallery2: /home/nuttalld/www/heritage/modules/pnGallery2/gallery2
Gallery DATA: /home/nuttalld/Gallery
If anyone has a clue/suggestion, please post or PM me.
TIA.
Dave Nuttall
San Antonio, TX
========================= UPDATED ===============
================ UPON RECONSIDERATION ===========
I dumped the idea of using pnGallery2 module in PostNuke and just configured it with PostWrap.
To use a common but incorrect expression: It's much more betterer now!
Environment is PN 0.7.6.1, PostWrap 2.5 and Gallery2.0.1 on a hosted Linux system.
See http://www.ourvirtualheritage.com for the living proof of concept.
d.
1:28pm CDT October 15, 2005.
Posts: 32509
@cookie path = /
that's a security risk for websites that have more than 1 G2 or that host websites in ~username/ folders.
@error on logout:
you mean GalleryEmbed::logout($args) ? never seen there errors.
besides: don't forget to set $args in ::logout ! see the description in GalleryEmbed.class.
if you forget the arguments to ::logout, you'll have problems with the cookie path (cookie won't be deleted, instead you'll get a second cookie).
cool that it works now
Posts: 2
Well, I think I'm 99% there. I just upgraded my PN site from .723 to .761.
I installed pnGallery2 (1.0 beta) and Gallery 2.0.1. I ran through the install steps, fixed the logout, initialized everything in PN, etc. I have a menu link in my PN set to [pnGallery2]. When I click on the menu item it brings up
pnGallery2 just fine and shows my top level gallery folders. However, the links from the albums are wrong.
They look like:
http://www.fakedomainhere.com/index.php?name=pnGallery2index.php?module=pnGallery2&func=main&g2_view=core.ShowItem&g2_itemId=24
The interesting part is the bolded stuff. It seems to create the URLs wrong. If I delete the extra index.php? and move the
name=pnGallery2 parameter to after the index.php it works fine. In other words:
http://www.fakedomainhere.com/index.php?name=pnGallery2&module=pnGallery2&func=main&g2_view=core.ShowItem&g2_itemId=24
Where is this URL created? What variables are used to create it?
Thanks,
Bob
Posts: 32509
obviously, you tell G2 in GalleryEMbed::init that embedUri => 'index.php?module=pnGallery2&func=main'
but you're accessing it with http://www.fakedomainhere.com/index.php?name=pnGallery2
either correct the way you're accessing G2 (name -> module) or change the embedUri.
Posts: 2
What's obvious to one...I really need to learn PHP and the codebase so I don't make such obvious mistakes again.
Thanks for the tip. However, AFAIK I entered all the correct parameters when configuring pnGallery2. Am I linking to it (pnGallery2) wrong by putting [pnGallery2] in to my PostNuke core/menu block item?
Thanks,
Bob
Posts: 60
All I get after installing pngallery2 & gallery 2.0.1 on postnuke 7.6.1 is a blank page when I try to access g2 with in postnuke. gallery2 works great standonly.
Posts: 96
http://noc.postnuke.com/projects/pngallery2/
Posts: 32509
hey, who's in charge right now of the pn g2 development?
i'm asking since justed seems to be developing, but mbuna posts a link to http://noc.postnuke.com/projects/pngallery2/.
who's Eduard Wustenveld?
we should update the entry in the embedding and integration topic and we should update the first post of this thread to be more informative and reflect the current status and add links etc.
Posts: 11
The way it sounds like its being embeded is just a hack and not the real way it should be embeded like it was with the 1.x line.
Posts: 3
valiant,
AFAIK Eduard Wustenveld = justed.
I have pnGallery running fine on a testsite, no problems whatsoever.
carl
Posts: 15
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:
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?
Posts: 2
The 1.x line is 100% embedded? no core code modification?
Josep
Posts: 46
Hi!
great advantage this integration I waited for almost 1year after everybody was telling me I could save some performace on my Server,... fine, ok thats kinda true, and everythings work great! Except sone minor problems I am really satisfied till I saw what happend when I access the Gallery as logged out postnuke user,... I do still have admin rights,... thats really really bad!!!
But maybe I do something wrong? has anyone a hint what I did wrong what I did forgot? When I log in as a standart pnUser first it really seemd to look fine,... no albums shown, nothing possible ok I deleted all group permissions because of testing,... It might be something wrong with the permissions I did,... but wrong Ive seen a link in the bottom where I can view as guest and .... I am admin again,... as normal User, the same like I am unregistered User,...
what I did wrong? does somebody seen the same issue?
greetings
bernie
Posts: 15
I am working with PN 750 (and 761 in a testing area) an installed gallery2 into pnGallery2 as it was told...
If i try to get into the gallery embedded in PN with 'http://l4f.de/index.php?module=pnGallery2&func=main' it causes an error " An error has occurred." with the following details:
Error (ERROR_STORAGE_FAILURE) :
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1166 (gallerystatus::error)
* in modules/core/classes/GalleryStorage.class at line 245 (mysqldatabasestorage::search)
* in modules/core/classes/Gallery.class at line 223 (gallerystorage::search)
* in modules/core/classes/helpers/GalleryUserGroupHelper_medium.class at line 270 (gallery::search)
* in modules/core/classes/GalleryCoreApi.class at line 1695 (galleryusergrouphelper_medium::fetchgroupsforuser)
* in modules/core/classes/helpers/GalleryPermissionHelper_simple.class at line 50 (gallerycoreapi::fetchgroupsforuser)
* in modules/core/classes/GalleryCoreApi.class at line 412 (gallerypermissionhelper_simple::fetchaccesslistids)
* in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 93 (gallerycoreapi::fetchaccesslistids)
* in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 58 (galleryuserhelper_simple::hasitempermission)
* in modules/core/classes/GalleryCoreApi.class at line 447 (galleryuserhelper_simple::asserthasitempermission)
* in modules/core/ShowItem.inc at line 76 (gallerycoreapi::asserthasitempermission)
* in modules/core/classes/GalleryTheme.class at line 688 (showitemview::loadtemplate)
* in modules/core/classes/GalleryView.class at line 285 (matrixtheme::loadtemplate)
* in main.php at line 287 (showitemview::doloadtemplate)
* in main.php at line 87
* in modules/core/classes/GalleryEmbed.class at line 153
* in /home/fsick/www.l4f.de/modules/pnGallery2/pnuser.php at line 46 (galleryembed::handlerequest)
* in /home/fsick/www.l4f.de/includes/pnMod.php at line 615
* in /home/fsick/www.l4f.de/index.php at line 89
Anybody an idea ?
Chaos Ram
Posts: 32509
how was GalleryEmbed::init called? with what value for activeUserId ?
Posts: 46
@valiant: do you ask chaosram or me?
In my case it should be 2(admin) or 3(me withadmin rights), is there a way to extract this from the database or config file? then I could tell it you for sure!
edit: the UserIDs from Gallery would be 5 or 6 depends on which admin,...
greetings
bernie
Posts: 32509
i was asking chaosram
i'm not really supporting this integration, but maybe i can help in this issue.
as for your admin rights thing. change the cookie path in g2 site admin -> general
Posts: 15
http://l4f.de/index.php
@vailant:
My problem is, that i cannot get into admin-section of G2, because of the same problem.
I am looking for a complete and proper working package of pnGallery2 or an installation of G2 embedded into Postnuke 761.
Posts: 1
I'm having a similar problem to chaosram's. I've successfully integrated G2 into PN, except for the fact that I can't log into G2 while it's inside PN. Any thoughts?
Posts: 79
Ok, I am starting to get this going. I got G2 all up and running in the /gallery2/ directory on my site (not /modules/pngallery2/gallery2/). Though it looks like you can just modify the module settings to point to a different directory.
So, I have added the pnGallery2 module to my PN .761 installation and made the modified user.php changes. Now when I try to access the module using index.php?module=pnGallery2&func=main I get this error:
Fatal error: Call to undefined function: mb_convert_encoding() in e:\web pages\musaland.com\modules\pnGallery2\pnuser.php on line 80
Is this because I don't have Gallery2 installed in the "proper" location?
Tim Musa
http://www.musaland.com/modules/gallery/
Gallery version: 1.4.4-pl6
Apache version: 1.3.31
PHP version: 4.3.10
Graphics Toolkit: NetPBM
Operating system: Windows Server 2000 SP4
Posts: 2
At least you've got a very BIG security problem:
When I tried to acess your Gallery2 Installation, i got Admin rights, and was able to view the Site Admin part.
Teh problem with my local install of Gallery2 is, it works perfect standalone, but doesn't get the Users from Postnuke!
any idears? (sorry no Link, would by a high security risk to run gallery2 on my postnuke-site)
Carsten
Posts: 32509
well, i guess the postnuke integration in question maps the admin user and always says activeUserId => adminuser, thus making everyone admin.
that sure sounds not like a finished / ready integration.
Posts: 46
it is possible to map in the database the guest User ID of Postnuke to the guest ID from gallery2 and this will avoid this issue,... tough this was the part I messed my database a little bit,... and I needed to create my Groups and Users again and figure out the rights,... now it seems to work,....
http://www.franken-reggae.de/index.php?module=pnGallery2&func=main
Hopefully the integration will work fine soon!!!
still I got some performance Issues, it seems when Users first time login and do a little playing gallery2 is crashing my Server Performance,...
hmm
greetings
bernie
Posts: 44
Hi:
I have installed pnGallery2. One error was fixed when I Chmoded 777 dir g2data (inside gallery2).
I tried pnGallery2 installation several times, but it is working nicely so far. Follow the instructions in NOC.
Adios.
Posts: 1
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
Posts: 4
I'm getting the same problem as lupar_blackice. All I get is a page that contains this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>
And I get this in the error log of the web server:
PHP Fatal error: Call to undefined function: mb_convert_encoding() in /var/www/html/PostNuke-0.761/html/modules/pnGallery2/pnuser.php on line 80
It works fine if I got directly through gallery and everything else in postnuke is working fine. this is with gallery2.0.2 and pn 0.7.6.1
Thanks for any input ;)
**EDIT** I figured it out... php does not compile in mbstring by default. You need to recompile php with --enable-mbstring=all
Posts: 4
Ok, just to throw a me too in there, I am also seeing only the "register" link within gallery and no login or admin menus. Also when I enabled the additional postnuke block, it doesn't show up at all. There's no mention of it if I view source on the pages generated in postnuke.
thanks for taking the time to work on this for all of us free loaders ;)
Posts: 15
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.
Posts: 70
I just installed the pngallery2 with the latest G2 (7.1.06)
G2 installed fine and PNg2 also, in the PNg2 congiguration I get "everything seems to be ok.
pnGallery2 - Configuration
Status of the Gallery2 module: The current configuration seems to be ok
But when I try to enter the gallery using the sugested link http://www.yoursite.org/index.php?module=pnGallery2&func=main (ofcourse changing the yousite) I get the following error.
Fatal error: main(): Failed opening required 'SMARTY_CORE_DIRcore.load_plugins.php' (include_path='.:/php/includes:/usr/share/php') in /home/mysite/g2data/pn_g2/smarty/templates_c/%%3220311618/%%3A^3A8^3A818B59%%theme.tpl.php on line 3
This only happens with PNg2 the g2 works fine. any help
Thanks
Posts: 70
Hi,
I deleted the contents of /home/mysite/g2data/pn_g2/smarty/templates_c/, as sugested in the help and now the pngallery2 is working, but there are no links to the admin fields so I cannot setup anything, of course after deleting the above I cannot access the gallery standalone.
Can anyone who has this working tell me how to access the gallery admin to setup the gallery.
(I mean the gallery admin not the pnGallery2, the pnGallery2 admin is working)
Thanks
Posts: 46
@roshlin: this should not be the official solution, but I remaped the rights, user&group ID's in the db therefore I interpretated the mapping procedure of postnuke and gallery2 (UserID PN map to GalleryID,...) then it works fine,... till some 3party modules are using hardcoded UserID's,... so I just would suggest this way as dirty way,...
is pngallery2 dead again? this is more my concern, I just don't see any move forward anymore,... I hacked several days to get it working and got similar problems like yours, and I really don't can repeat everything did back in time,...
maybe it makes sense to send a trouble ticket in the noc,... maybe then some developer will get active anytime,... just point out the problems you got!!! and maybe when you find a solution write the step by step procedure down, so somebody can investigate it,... I forgot that and now I can not point it out again,...
Posts: 70
Thanks hardtoneselector
I'll look around the database to see what I can do, don't know much of programming, so most probably willl have to wait till someone gets this working.
Thanks
Posts: 5
Anyone working on this now?
I'd be happy to jump in and help out, but I'd need a bit of guidance so as to get an efficient start. I've got some experience with pnAPI but have not looked at Gallery's code.
Thanks,
mG.
Posts: 46
Hi MobiGeek: Would be awesome when somebody is picking up the project again and make it more reliable.
Maybe you could contact wustenfeld aka justed he maked the last modifications and developments on this integration. Maybe it makes sense to overlook and redoing it I could not tell!
As for pnAPI or GalleryAPI Compilance I could not tell you anything, I can not code PHP and do not understand this API's. There is a documentation on integrating the gallery at http://codex.gallery2.org/index.php/Gallery2:Embedding:Integration
This Integration works in general, User will be created just fine, but theres no syncronisation about the groups, also seems something wrong or not working right with this management who becomes what rights.
Hooks and other things aint working and might will never be working, this might be ok.
I got trouble in using some modules from G2, this might be caused because their hardcoded the rights in the module and I tweaked and mapped the database till it worked like desired(everyone has now the right permissions, but it seems I mixed something up)
And on the other hand there is nobody understand it total and can help really the users stuck here, who can help them out and therefore not a big community is using it so not a lot has enough expierience,...
Would be awesome when you could support this project, since photoshare and myegallery has just not same functions G2 has! There are some their need a stable G2 desperatly like me, and on the other hand I guess a lot would like to use it but beeing scared from not beeing directly support for pn.
I bet valiant or other helpers of the G2 project could assist you and give you the right hints on the G2 part and as for pn you got the expierience!!! ;)
I got some pn testpages running and will be willing to test a little bit if neccassery, just dont' have much time. And also willing to donate via paypal a small dinner!
greetings
bernie
Posts: 96
So far there is aout $500 pledged from the postnuke forum for a developer to take this task on. Is anyone interested in this project or should we postnuke people start looking for another gallery?
Sean
http://www.Aquaria.info
http://www.FishBanners.com
http://www.TopPetSites.com
http://www.CleanLiving.com
http://www.DigFishDig.com
Posts: 32509
the gallery 2 development team does not code or maintain integrations. all we do is offer the interface, guidance and eventually more docs. so if a postnuke developer shows up ready and willing to integrate g2 in postnuke, we can answer questions and offer guidance.
Posts: 96
Yep, I realize that Valiant, but I figure we are far more likely to find someone to work on it here than over at the postnuke site.
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
Posts: 11
<deleted>
Posts: 1
Anyone considering working on this integration?
Posts: 7
Hi
What is the current status of integrating gallery 2 with PN?
I am a web developer and am just working on a module for post nuke (it's my first module) so i might be able to lend to this project. however it will still be few weeks before i can probably get into it. will let you all know after i have completed this module and have a better understanding of postnuke
Phil
Posts: 46
Hi Phil,
nice to hear that you would like to get into it, I've been willing to help you with translations in german and with testing if you like,...
Today postnuke .8milestone1 is released, for developers, maybe it makes sense to develope the integration for working in .8 since this will be the future of postnuke, it is much cleaner and might be having more functions in the Api what might make it easier for you to implement the integration like before,...
The Status o the integration you can find in the noc mentioned above,...
galler2.0.x seems to be working with postnuke, kind of. Never heared from somebody got 2.1 working. Several people was starting on the integration but it seems everybody gave up on that and do not know why,... maybe that would be helpfull too
looking forward to see soon an better integration!
Would really like to switch to V2.1 thought about using postwrap till a solution is near,...
greetings and nice eastern
bernie
Posts: 96
Phil,
Any more thoughts on taking on the G2 postnuke integration? Don't forget there is about $500 pledged to whomever can get a clean, full integration.
Sean
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
Posts: 7
Hi all
just an update. I am about 40% through my module development and am hoping i can finish it before the end of april (this is the non gallery module) however i am learning a lot about the api development and am using the standards required for the pn.8 release (however am only using .7x currently). There have been some delays with holidays and sickness however i am still hopefull of this time estimate.
I am still very interested in this and will be talking to you all soon on the best way to attack the problem.
I hope to begin work on a gallery module early may
Phil