One of the most frequently asked questions about Gallery Remote, and one of the issues users complain most bitterly about (and rightly so), is the fact that when their Gallery is embedded inside a Content Management System such as PostNuke, GR cannot logon because of a "bad password".
The problem is that when Gallery is embedded, the user management is performed by the CMS, and the Gallery administrator forgets that Gallery can also be accessed stand-alone. And when Gallery is accessed stand-alone, it performs its own user management...
So, for all of you who have problems logging on to your Gallery through Gallery remote:
make sure that the URL for the Gallery that you set in GR is the URL to the stand-alone version of Gallery, not the PostNuke Gallery module, for example.
the username and password need to be credentials that work in stand-alone Gallery. You should test by doing this in a web browser.
I've made some cosmetic changes in the latest builds of Gallery and Gallery Remote to help users diagnose this, but for the process to work transparently (I realize some of you let users of the CMS upload images to your galleries, and don't want to have to manage those user accounts in stand-alone mode), I have to wait for GR 1.1, which will enter beta in the next couple weeks.[/]
[/]
Posts: 1479
GR 1.1 is now in beta, please try it out.
Posts: 6
As there is no "native" URL when embedded in geeklog I do this to get remote to work:
1. geeklog install replaces init.php and util.php
2. get the original versions and rename them init2.php and util2.php
3. in gallery_remote2.php, replace the ref to init.php with init2.php -
4. in init2.php, replace the ref to util.php with util2.php
5. in init2.php, add the following
after the include config.php
6. This makes remote think that it is not embedded. Therefore the user and password must exist within gallery when not embedded.
This works well for me. Now to get publishXP working when embedded...
Alex Kerin
www.kerin.us
Posts: 6
Thanks for solving my problem! I can now import files at the command line with galleryadd.pl. My next question is:
Are there any other features that won't work when gallery is
integrated with a portal such as Geeklog?
Thanks for your help!
Joe
Posts: 13
I di as follows and am still getting the invalid u/p message.
Cant some one post excatly where/how to add the :
after the include config.php.
Please post the entire code snippet. Thank You very much
Doc
Posts: 93
not sure, but my guess would be after this code at line 94
Posts: 13
$GALLERY_EMBEDDED_INSIDE = "";
Where exactly do i stick this line? Here is a snippit of what i did. I made all the other mods as per the instructions. The last one was a little vague.
Is that right and if so any ideas on why it is still not functioning?
further down in the code it addresses :
Do I need to change this or any code in any way because i am using Geeklog?
Thanks for you help.
Happy NewYear :P
Doc
Posts: 93
i'd assume it would work given the instructions above, unless something has changed in gallery since that person posted those instructions. i don't have geeklog so i'm not sure how that works.
you could try moving that line to just before that second peice of code you posted, or instead of
$GALLERY_EMBEDDED_INSIDE = "";
you could try
unset($GALLERY_EMBEDDED_INSIDE);
in either place
but that may not work in the new version of gallery either...
Posts: 13
I made the neccessary adjustments and still no dice. You somebody please look at my code and tell me what i am doing wrong:
I have checked for blank lines after code:
checked all the other files and damn i am lost.
Thanks
Doc
Geeklog 1.3.8-1.
Gallery v1.4-pl1 (intergrated)
MySQL version 4.0.15-standard
PHP version 4.3.1
RedHat 7.3
apache (1.3.27 (Unix))
Posts: 93
you may have seen this already, if so, maybe this will help others... geeklog seems to have something to integrate gallery, you can find it here http://www.geeklog.net/article.php?story=20031228224244779 or here http://www.pigstye.net/gplugs/staticpages/index.php/20030301191703689
i'd guess this also allows gallery remote to work... but I'm not sure