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.
@xchido:
your problem is solved with mode.embed.only. see: http://gallery.menalto.com/node/69064#comment-249783. but it only works with gallery 2.2 and newer.
your solution is a nice workaround for gallery 2.1.
Hope you can give me a few more pointers on how to make it work.
xchido
Joined: 2004-02-20
Posts: 24
Posted: Fri, 2007-09-14 03:36
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
Posted: Sun, 2007-10-28 23:44
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:
==================================================================
1 Make a copy of the core file modules/User/admin.php
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.
==================================================================
Find the User module
Click on the Hooks action for the module
Check the checkbox next to Activate mgallery2 for this module
Click the Update button
Find the Groups module
Click on the G link above the modules table to make it easier to find
Click on the Hooks action for the module
Check the checkbox next to Activate mgallery2 for this 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.
I have created a new PN account but again, when I go into G2 it still only shows the Register link, there's no Login link or some of the other links.
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
joe
xchido
Joined: 2004-02-20
Posts: 24
Posted: Mon, 2007-10-29 01:02
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
Posted: Mon, 2007-10-29 20:21
Thanks for the reply xchido
I have tried setting mode.embed.only to true and false and it's the same in both states.
I turned debugging mode on and got pages of data with two blocks of errors, which I don't understand.
=============================================================================
FIRST ERROR
Notice: Use of undefined constant mGallery2_helper_term - assumed 'mGallery2_helper_term' in /home/phatjoin/public_html/modules/mGallery2/g2helper.php on line 79
* in modules/core/classes/GallerySmarty.class at line 76 (GalleryCoreApi::error)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1591 (GallerySmarty::trigger_error)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1417 (Smarty::_fetch_resource_info)
* in /home/phatjoin/public_html/includes/classes/Smarty/internals/core.display_debug_console.php at line 41 (Smarty::_compile_resource)
* in lib/smarty/plugins/function.debug.php at line 30
* in modules/core/classes/GalleryTemplateAdapter.class at line 725
* in g2data/smarty/templates_c/%%3184402788/%%3A^3A8^3A818B59%%theme.tpl.php at line 71 (GalleryTemplateAdapter::debug)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1265
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 186 (GallerySmarty::fetch)
* in main.php at line 479 (GalleryTemplate::fetch)
* in main.php at line 94
* in modules/core/classes/GalleryEmbed.class at line 179
* in /home/phatjoin/public_html/modules/mGallery2/g2helper.php at line 106 (GalleryEmbed::handleRequest)
* in /home/phatjoin/public_html/modules/mGallery2/pnuser.php at line 76
* in /home/phatjoin/public_html/includes/pnMod.php at line 735
* in /home/phatjoin/public_html/index.php at line 108
----------------------------------------------------------------------------------------
SECOND ERROR
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "file:includes/classes/Smarty/debug.tpl"
* in modules/core/classes/GallerySmarty.class at line 76 (GalleryCoreApi::error)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1591 (GallerySmarty::trigger_error)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1417 (Smarty::_fetch_resource_info)
* in /home/phatjoin/public_html/includes/classes/Smarty/internals/core.display_debug_console.php at line 41 (Smarty::_compile_resource)
* in lib/smarty/plugins/function.debug.php at line 30
* in modules/core/classes/GalleryTemplateAdapter.class at line 725
* in g2data/smarty/templates_c/%%3184402788/%%3A^3A8^3A818B59%%theme.tpl.php at line 71 (GalleryTemplateAdapter::debug)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1265
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 186 (GallerySmarty::fetch)
* in main.php at line 479 (GalleryTemplate::fetch)
* in main.php at line 94
* in modules/core/classes/GalleryEmbed.class at line 179
* in /home/phatjoin/public_html/modules/mGallery2/g2helper.php at line 106 (GalleryEmbed::handleRequest)
* in /home/phatjoin/public_html/modules/mGallery2/pnuser.php at line 76
* in /home/phatjoin/public_html/includes/pnMod.php at line 735
* in /home/phatjoin/public_html/index.php at line 108
=========================================================================================
hope you can understand it and help
thanks
izzzy12k
Joined: 2004-11-29
Posts: 7
Posted: Thu, 2007-11-08 16:59
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,
-Iz
arban
Joined: 2004-05-19
Posts: 2
Posted: Mon, 2008-01-07 01:47
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.
PostNuke 0.764 (upgrade from 0.726)
Gallery2 2.2.4 (fresh)
mGallery2 0.2-1
Thanks.
arban
Joined: 2004-05-19
Posts: 2
Posted: Tue, 2008-01-08 02:01
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
Posted: Wed, 2008-02-20 12:28
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.
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...
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
Posts: 32509
@xchido:
your problem is solved with mode.embed.only. see: http://gallery.menalto.com/node/69064#comment-249783. but it only works with gallery 2.2 and newer.
your solution is a nice workaround for gallery 2.1.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
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.
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.
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:
==================================================================
1 Make a copy of the core file modules/User/admin.php
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.
==================================================================
Find the User module
Click on the Hooks action for the module
Check the checkbox next to Activate mgallery2 for this module
Click the Update button
Find the Groups module
Click on the G link above the modules table to make it easier to find
Click on the Hooks action for the module
Check the checkbox next to Activate mgallery2 for this 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.
I have created a new PN account but again, when I go into G2 it still only shows the Register link, there's no Login link or some of the other links.
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
joe
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?
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.
=============================================================================
FIRST ERROR
Notice: Use of undefined constant mGallery2_helper_term - assumed 'mGallery2_helper_term' in /home/phatjoin/public_html/modules/mGallery2/g2helper.php on line 79
Error Detail -
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "file:includes/classes/Smarty/debug.tpl"
* in modules/core/classes/GallerySmarty.class at line 76 (GalleryCoreApi::error)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1591 (GallerySmarty::trigger_error)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1417 (Smarty::_fetch_resource_info)
* in /home/phatjoin/public_html/includes/classes/Smarty/internals/core.display_debug_console.php at line 41 (Smarty::_compile_resource)
* in lib/smarty/plugins/function.debug.php at line 30
* in modules/core/classes/GalleryTemplateAdapter.class at line 725
* in g2data/smarty/templates_c/%%3184402788/%%3A^3A8^3A818B59%%theme.tpl.php at line 71 (GalleryTemplateAdapter::debug)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1265
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 186 (GallerySmarty::fetch)
* in main.php at line 479 (GalleryTemplate::fetch)
* in main.php at line 94
* in modules/core/classes/GalleryEmbed.class at line 179
* in /home/phatjoin/public_html/modules/mGallery2/g2helper.php at line 106 (GalleryEmbed::handleRequest)
* in /home/phatjoin/public_html/modules/mGallery2/pnuser.php at line 76
* in /home/phatjoin/public_html/includes/pnMod.php at line 735
* in /home/phatjoin/public_html/index.php at line 108
----------------------------------------------------------------------------------------
SECOND ERROR
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "file:includes/classes/Smarty/debug.tpl"
* in modules/core/classes/GallerySmarty.class at line 76 (GalleryCoreApi::error)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1591 (GallerySmarty::trigger_error)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1417 (Smarty::_fetch_resource_info)
* in /home/phatjoin/public_html/includes/classes/Smarty/internals/core.display_debug_console.php at line 41 (Smarty::_compile_resource)
* in lib/smarty/plugins/function.debug.php at line 30
* in modules/core/classes/GalleryTemplateAdapter.class at line 725
* in g2data/smarty/templates_c/%%3184402788/%%3A^3A8^3A818B59%%theme.tpl.php at line 71 (GalleryTemplateAdapter::debug)
* in /home/phatjoin/public_html/includes/classes/Smarty/Smarty.class.php at line 1265
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 186 (GallerySmarty::fetch)
* in main.php at line 479 (GalleryTemplate::fetch)
* in main.php at line 94
* in modules/core/classes/GalleryEmbed.class at line 179
* in /home/phatjoin/public_html/modules/mGallery2/g2helper.php at line 106 (GalleryEmbed::handleRequest)
* in /home/phatjoin/public_html/modules/mGallery2/pnuser.php at line 76
* in /home/phatjoin/public_html/includes/pnMod.php at line 735
* in /home/phatjoin/public_html/index.php at line 108
=========================================================================================
hope you can understand it and help
thanks
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,
-Iz
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:
http://example.com/index.php?module=mGallery2 (aka {mGallery2})
http://example.com/index.php?module=mGallery2&type=admin
http://example.com/index.php?module=mGallery2&type=admin&func=modifyconfig
However, the following does get me to the User/Group resynchronization page:
http://example.com/index.php?module=mGallery2&type=admin&func=resynchronize
PostNuke 0.764 (upgrade from 0.726)
Gallery2 2.2.4 (fresh)
mGallery2 0.2-1
Thanks.
Posts: 2
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.
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?
Posts: 1
I am waiting for integration, too.
key ödemeleri key ödemeleri resimler telefon rehberi
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...