PostNuke + G2
xchido
![]()
Joined: 2004-02-20
Posts: 24 |
![]() |
I have a successful integration using the methods described here and PostNuke. I only have one minor problem. Before I had it integrated to PostNuke I used PageWrap to include into my site. I added the direct link to the main page of the gallery and it was working ok. Now with the full integration the gallery works even better, user have their own album, and all works perfectly. This is the problem, I have several outside links that point to the main page of the gallery [http://www.zacatecas.net/modules/mGallery2/gallery2/main.php] I changed the parameters in the config file to only allow PN integrated access to the site so the above link does not work anymore when accessed directly. The new direct link to access the main page inside PN is [http://www.zacatecas.net/index.php?name=mGallery2&file=index] and this link works wonderfully. The issues is when somebody access the old direct link it leaves the visitor with an error page and they are not able to click on any link or be re-directed to a page they can use. In essence, if they access the direct link they get lost and I lose them. I tried to use the redirect 301 command in an htaccess file but I get this problem. Using the redirect 301 command in my htaccess file makes all of the image links disappear. Since they use the same old path. Using this method visitors to http://www.zacatecas.net/modules/mGallery2/gallery2/main.php are redirected to http://www.zacatecas.net/index.php?name=mGallery2&file=index - There is no problem there. But when I look at the images I find that their path is set to /modules/mGallery2/gallery2/main.php thus being redirected to the new address, in dong this all links for the images in the gallery are broken. This is what I added in the htaccess file: Redirect 301 /modules/mGallery2/gallery2/main.php http://www.zacatecas.net/index.php?name=mGallery2&file=index |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
@xchido: -------------- |
|
xchido
![]()
Joined: 2004-02-20
Posts: 24 |
![]() |
Thank you Valiant for your help. I finally did the upgrade and I have posted the output of the error message here: http://gallery.menalto.com/node/69064 Hope you can give me a few more pointers on how to make it work. |
|
xchido
![]()
Joined: 2004-02-20
Posts: 24 |
![]() |
Two re-upgrades procedures and using the cleaup.sh did the job. My gallery is fully integrated into PN and my main stand-alone gallery page is now re-directed beautifully to the PN integrated main gallery. Thank you Valiant for your help. Next item on the agenda? Remembering what customization I had on the original files. No big deal, Is mostly cosmetic. |
|
phatjoints
Joined: 2007-10-28
Posts: 2 |
![]() |
Hi all, thanks for getting this module all sorted guys. I haven't been successful in getting it up and running for myself completely so hopefully I can get some help Basically the user integration doesn't seem to work for me. The part that I think is wrong is where in the instructions it has the following: ================================================================== 2 Copy User/admin.php into modules/User 3 Make a copy of the core file modules/Groups/pnadminapi.php 4 Copy Groups/pnadminapi.php into modules/Groups If I read it right, for some reason my PostNuke setup maybe wrong? Step 2 & 4 suggest that there's two folders in the root directory of PostNuke called User & Groups. Is this correct or am I misunderstanding it? So I'm unable to copy the files from User/ and Groups/ into modules/User/ & modules/Groups/ Regardless of this, the following steps were completed ok. ================================================================== Click the Update button Find the Groups module Click the Update button Whenever I click the Gallery link from the PN Menu Block, Gallery2 is loaded but it only has the Register option. Can anyone help me get PN Users integrated properly with G2 so that all members to the site have automatic access to G2. Oh yeah this is a completely new installation of PostNuke and G2 and I have only setup a couple of test user accounts. Thanks in adavance |
|
xchido
![]()
Joined: 2004-02-20
Posts: 24 |
![]() |
Have you tried changing values in config.php, change the value for 'mode.embed.only'??? What version of PostNuke, Gallery, and PHP are you running? Any error messages appear when you turn debugging mode on? |
|
phatjoints
Joined: 2007-10-28
Posts: 2 |
![]() |
Thanks for the reply xchido I have tried setting mode.embed.only to true and false and it's the same in both states. Installed Versions: PostNuke: 0.764 Gallery: 2.2.2 & PHP: 5.1.6 I turned debugging mode on and got pages of data with two blocks of errors, which I don't understand. ============================================================================= Error Detail - * in modules/core/classes/GallerySmarty.class at line 76 (GalleryCoreApi::error) * in modules/core/classes/GallerySmarty.class at line 76 (GalleryCoreApi::error) hope you can understand it and help |
|
izzzy12k
Joined: 2004-11-29
Posts: 7 |
![]() |
I just installed G2 and ran through the integration process for PostNuke (.764) using the mGallery2 module. It seems to be working fine with the exception that when a user first clicks the menu link to the gallery they get a "user module not loaded" error message.. then the next time the click it, it works.. I believe this is the part where the account gets created on the fly for G2 via PN.. I've tried using the resynchronize users/groups thing, but no new users are created in G2.. anyone know how to fix this, so that I can avoid the "user module not loaded" error for site visitors? Thanks, |
|
arban
Joined: 2004-05-19
Posts: 2 |
![]() |
I have been trying to get mGallery2 configured this weekend without success. After initializing and activating the module, I plug in values for "Base directory" and "Gallery2 URI" and hit the "Update configuration" button. I believe that the values are accepted but when I tries to redirect back to the 'modifyconfig' page it instead attempts to go to http://example.com/install/. This of course does not exist and I get a 404. Punching the following in directly result in the same: However, the following does get me to the User/Group resynchronization page: PostNuke 0.764 (upgrade from 0.726) Thanks. |
|
arban
Joined: 2004-05-19
Posts: 2 |
![]() |
I foolishly wrote:
I have been trying to get mGallery2 configured this weekend without success. After initializing and activating the module, I plug in values for "Base directory" and "Gallery2 URI" and hit the "Update configuration" button. I believe that the values are accepted but when I tries to redirect back to the 'modifyconfig' page it instead attempts to go to http://example.com/install/. This of course does not exist and I get a 404. Nevermind, I did not understand the install directions. I was incorrectly using the location of the base gallery location, where all of the gallery files are located and pointed to when you have a multisite Gallery2 installed. So when I filled in the particular multisite I wished embed into PostNuke things started to work much better. Now ... moving on to synchronization. |
|
Dimie
Joined: 2008-02-20
Posts: 1 |
![]() |
I'm using mGallery2 in Postnuke to show a random image in a block. This works fine. There's only 1 thing I want to change, but I can't find out where to change is. When clicking on the random picture Gallery2 opens to show the picture. I don't want that. I only want to show a picture. What do I have to change to achieve this? |
|
denizerdogan
Joined: 2008-06-17
Posts: 1 |
![]() |
I am waiting for integration, too. |
|
Slartibardfast
Joined: 2009-02-05
Posts: 5 |
![]() |
Please upgrade the mGallery2 Module to work with Zikula someone. I have Sites using PostNuke 0.7.6.4 with Gallery 2 integration working fine. There is a cludgy Module version of mGallery2 available which installs in Zikula without breaking it, bit it seems far from complete. It would be a pity to have to stop using Gallery2 in order to move from PostNuke to Zikula... |
|