Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 05:49 pm EST
Geeklog Forums
Gallery Remote
Anonymous
Anonymous
I got Geeklog/Gallery integration working just fine... But now the gallery remote does not work. Anyone know what to edit to get those to work?
28
11
Quote
Anonymous
Anonymous
The reason Gallery Remote doesn't work with the Geeklog integration is because it lacks the isCorrectPassword function.
Add this to your gallery/classes/geeklog/User.php (before the final bracket):
function isCorrectPassword($password) {
return (!strcmp(COM_getPassword($this->username), md5($password)));
}
Then just use your regular Geeklog login.
12
13
Quote
Status: offline
hubersan
Forum User
Newbie
Registered: 12/17/01
Posts: 12
Location:Denver, CO
I'm having no luck with this either... I keep getting Login Incorrect even after adding that function in.. (even though I don't think it needs to be added since the geeklog/User.php extends the default User.php)
13
8
Quote
apt302crew
Anonymous
i am having the same problewm as well.
i have applied the forementioned patch ans it still won't log in
12
9
Quote
Anonymous
Anonymous
Anyone have any luck with this??
same boat here, works great with geeklog, except GR broke
10
12
Quote
Anonymous
Anonymous
I haven't been able to get it to work entirely yet, but I haven't fixed a few bugs. There still seems to be a bug or two left that may be in Gallery Remote 1.0b8. I've posted to their forums.
I used this in place of the one posted above. The file $your_gallery_dir/classes/geeklog/User.php should be changed.
function isCorrectPassword($password) {
return (!strcmp(COM_getPassword($this->username), $password));
}
I've found that $password is already md5 encoded so there is no need to use md5($password).
Also, in the function loadByUserName right above it, there is a bug. The select statement "SELECT uid,fullname,email" should be changed to "SELECT username,fullname,email".
11
10
Quote
Anonymous
Anonymous
My mistake. The original function was correct with respect to the md5 function. I took it out because I was doing a GET instead of a POST during my tests. Gallery remote uses POST so you must leave it in there. You still need to modify the select statement.
I can login, but I can't display any albums on Mac OS X or Windows. I have a feeling it's a bug in beta 8.
9
19
Quote
Status: offline
emagin
Forum User
Regular Poster
Registered: 08/05/03
Posts: 92
This may not address your issue.
I could not get GRemote to work at all, security aside.
So I followed this Forum Post and it now works with the GALLERY user/password, which is fine with me.
The link above is buggy for me in IE, so here it is.
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=31785#31785
If it does not work above, just copy and paste into your browser.
If someone has a definitive, working solution to get Gallery Remote to work with GL security, please let me know!
HERE ARE THE INSTRUCTIONS FROM THE LINK:
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 -
Code:
4. in init2.php, replace the ref to util.php with util2.php
5. in init2.php, add the following
Code:
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...
I could not get GRemote to work at all, security aside.
So I followed this Forum Post and it now works with the GALLERY user/password, which is fine with me.
The link above is buggy for me in IE, so here it is.
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=31785#31785
If it does not work above, just copy and paste into your browser.
If someone has a definitive, working solution to get Gallery Remote to work with GL security, please let me know!
HERE ARE THE INSTRUCTIONS FROM THE LINK:
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 -
Code:
Text Formatted Code
require($GALLERY_BASEDIR . \"init2.php\"); 4. in init2.php, replace the ref to util.php with util2.php
5. in init2.php, add the following
Code:
Text Formatted Code
$GALLERY_EMBEDDED_INSIDE = \"\"; 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...
12
12
Quote
Steve Simons
Anonymous
Thankyou - that's solved it for me!
Steve.
Steve.
11
13
Quote
NitraM
Anonymous
Hi I followed this, but I keep getting an error from gallery remote saying: "Error: Server contacted, but Gallery not found at this URL (http://myurl/gallery/gallery_remote2.php). Why do I get this error?
12
9
Quote
Doc rOck
Anonymous
I di as follows and am still getting the invalid u/p message.
Cant some one post excatly where/how to add the :
Code:
$GALLERY_EMBEDDED_INSIDE = "";
after the include config.php.
Please post the entire code snippet. Thank You very much
Doc
Cant some one post excatly where/how to add the :
Code:
$GALLERY_EMBEDDED_INSIDE = "";
after the include config.php.
Please post the entire code snippet. Thank You very much
Doc
12
10
Quote
All times are EST. The time is now 05:49 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content