// handle the G2 request
$g2moddata = GalleryEmbed::handleRequest();
// show error message if isDone is not defined
if (!isset($g2moddata['isDone']))
{
print 'isDone is not defined, something very bad must have happened.';
exit;
}
// die if it was a binary data (image) request
if ($g2moddata['isDone'])
{
exit; /* uploads module does this too */
}
if ($ret)
{
print $ret->getAsHtml();
}
Posted: Sat May 12, 2007 5:44 pm Post subject: Re: Gallery 2 Integration into PHP-Nuke PROBLEM
I hope someone will help me with this and I will try to be as thorough with my questions as possible.
I have read through this thread, the FAQ, the integration package installation Read Me file and the Gallery2 installation file several times and tried all the fixes that have been mentioned here on this thread, but I am still having issues.
I have Gallery 2 installed in my phpnuke modules section. Everything is showing up in the admin panel of my phpnuke site. I was able to get the members from my phpnuke site exported over to the gallery2. However, I'm still having issues with the following:
When I am in the PHP-Nuke administration panel to setup the gallery, I enter the information that I believe is correct, but this is what I see:
I enter in the information that I think is correct and click on verify & update and it goes to a page that says update complete. I then click on the link that says return home and all of the fields (that I had just filled in) are blank. However, when I go to activate the module and check the gallery it says "The module has not yet been configured".
Another thing is, I don't know what this means at all (there are two examples, one from the Read Me file and one from my General Administration page in my gallery site:
Read Me File wrote: › 4. Cookie Path - This you can safely leave set at it's default value. But when Gallery is reachable at http://www.example.com/application/modules/gallery2/ and your website homepage is at http://www.example.com/application/, then you have to compare the path /application/modules/gallery2/ with /application/. The cookie path is the part of the paths that is equal, in this case it is '/application/'.
When you are finished, click the "Update integration settings" button. This will save your configuration to your database and will verify that your Gallery 2 installation has been properly set up.
Gallery2 Admin wrote: › If your Gallery is embedded and you leave the following fields empty, then all DownloadItem links (the URLs of the images and other items) in the embedded Gallery have an appended GALLERYSID string in the URL which is a minor security risk when your Gallery users start copy'n'pasting image URLs in forums, guestbooks, etc. The alternative is to set the cookie path. Gallery will then not append the GALLERYSID to the embedded DownloadItem URLs. E.g. when Gallery is reachable at http://www.example.com/application/gallery2/ and the embedding application is at http://www.example.com/application/, then you have to compare the path /application/gallery2/ with /application/. The cookie path is the part of the paths that is equal, in this case it is '/application/'. Most often it is just '/'.
The cookie domain is also only needed for embedded Gallery installs and only if you want to get rid of the GALLERYSID string in the embedded DownloadItem URLs. In most cases, the cookie domain can be left blank. Set it only, if Gallery and the embedding application are only reachable with different subdomains. E.g. when Gallery is at http://photos.example.com/ and the application is at http://www.example.com/, then you have to set the cookie domain example.com (the part of the host string that is common to both, Gallery and the embedding application).
Once you change the cookie settings, all registered users of your Gallery will have to clear their browser cookie cache. If they do not, they will experience login / logout / lost session problems.
If someone could explain what this means, I might be able to figure out how to set the cookies properly.
Also, I thought that this post might help me, but I don't understand what it means:
Matt wrote: › This might not make a lot of sense (i'm tired) but this is what I did to fix the problem:
Delete your nuke_g2config table from your php-nuke db first.
1. Installed Gallery2 to modules/gallery2
2. Went through the config of gallery2
3. Renamed the index.php in modules/gallery2 to index.g2.php
4. 3 commands (ran from where you have the integration packaged):
Then you can access the php-nuke module and the installer will work.
The documentation for this integration package is NOT clear on the install process and it seems that the installed path is vital to this workign correctly.
regards,
Matt
Specifically, I don't understand the portion above that is bold, especially the underlined bold portion.
Here is my site:
My Site [arcanasphere.net]
If you scroll down to the bottom on the left there is the G2 Image Block and you will see that the block is still not configured yet. And I've tried both blocks, the G2 ImageBlock and the G2 Sidebar and neither of them are configured properly and I'm not sure what to do.
I also went into myphpadmin and there was nothing called nuke_g2_config or g2_config. So I am really not sure what's going on. This is the last thing that I have to solve before every thing works since the exporting of users worked perfectly.
And lastly, I saw something that said to make sure your g2data has the proper permissions, but there were no numbers listed so that I would know what the correct permissions were or if mine were/are correct. Is there a file that I'm missing or haven't read yet where this information is located?
If you need more information, please let me know.
Please help if you can, I would appreciate it grately!!!
Posted: Sat Jul 14, 2007 9:44 pm Post subject: Re: Gallery 2 Integration into PHP-Nuke PROBLEM
Hmm the missing link for me. I didn't know you have to download the actual gallery2 and install it prior to installing the integration pieces from nukedgallery. I will give that a shot to see if i still have the same problem
Posted: Mon Jul 23, 2007 12:46 am Post subject: Re: Gallery 2 Integration into PHP-Nuke PROBLEM
EDITED: Found the solution to this one myself.
I was putting in the www.abc.com address in the database location. I left this blank and all was resolved.
---------------------------------------
I'm loading gallery for the first time. Things are going well so far, I have the gallery and update loaded.
I'm stepping throught the Gallery Installer, all OK but I'm stuck on the db section "5 Database Setup"
I have a db called nuke2 on our website, but am unable to connect with the above installer.
Is there any FAQ's for this section anybody aware of? From the error message at the bottom, it looks like it's trying to add in a domain name by it's self....
--------------------------------------------------------------------
"Warning: mysqli_real_connect() [function.mysqli-real-connect]: (28000/1045): Access denied for user 'admin'@'nullabor.myownserver.net' (using password: YES) in /home/abc/public_html/abc/modules/Gallery2/lib/adodb/drivers/adodb-mysqli.inc.php on line 108
Could't connect :
www.abc.com: Connection error to server 'www.abc.com' with user 'admin'[/b]
Posted: Sun Jul 29, 2007 1:14 am Post subject: Re: Gallery 2 Integration into PHP-Nuke PROBLEM
I'm having this issue.
This gallery has been installed as a stand alone and in the PHPNuke modules. I don't know what's wrong but when I finish the integration stuff instead of getting "module not configured" error. It's taking me to a 401 page not found.
When I go to the direct links for both installations they work but when I enter the correct information for the locations and go to integrate it the link will route me here: http://www.1stepupentertainment.com/mai ... e=gallery2
And it says not found. Please Help I've been working on this ALL day and it's frustrating me to no end.
I'm running PHP Nuke 8.0 and the latest gallery version.
Posted: Thu Feb 28, 2008 10:22 am Post subject: Re: Gallery 2 Integration into PHP-Nuke PROBLEM
Hi to all
but my question is direct to the site admi or one person that explain the correct installation and Not lost in irrelevant questions......
whe have the gallery and the integration to phpnuke..
now i put my gallery on the root of my site like www.mysite.com/gallery2
and install it as normal gallery.
step2) i put the integration files into my phpnuke
afther this i click on Verifi gallery and bla blab..button and??
this is correct?
becouse on the readme i see this:
Quote: › This integration package does not install or configure Gallery 2.1 for you. Before you proceed with this integration, you must install and configure Gallery 2.1. Additionally, Gallery 2.1 must be installed into the "modules" directory of your PHPNuke installation.
but if i put the folder gallery2 into the phpnuke integration and into the module folder of this i Replacing other files that is needed for the integration..
at this point i think that the gallery need to be installed on the root As I said above..
but all is not good explained..
Please is possible to vrite a step by step smoll guide?
like step1 step2 detailed?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum