Gallery strange Url behavior into Mambo
kromm
Joined: 2005-04-21
Posts: 5 |
Posted: Thu, 2005-04-21 15:07 |
Mambo 4.5.2.1 Integration between the Gallery and Mambo is fine, that is, the gallery's mainpage is integrated within Mambo and uses the Mambo template. The following urls are links to albums within the gallery: Quote:
Firefox 1.0.3 The "firefox url" shows "%5C" after the domain-name, which is the same as a backslash. If I manually remove "%5C/", the url is alright. The "IE url" doesn't show the domain-name. If I manually add the domain-name, the url is alright. The standalone gallery works great. What on earth is going on here? There are several threads with this same question, but unfortunately with no solution. I mailed the author of the integrator 'gallery/contrib/mambo' but hasn't replied yet. Anybody? |
|
Posts: 6
Hi kromm,
I have the same problem. with the same configuration. More info is that the server hosting the mambo/gallery is Windows 2000.
I dont know about the FireFox thing but the IE problem is exactly like. Standalone works.
Anyone have a patch or a clue where to look for this?
Posts: 14
I have givven kromm a potential fix and am awaiting a reply. I just thought of something else that may cause it.. (I have fixed it, but forget how).
Posts: 6
Hi Syn!
Could you send the same to me please? You might have it in your sent mail?
HavocDK [at] oddguys [dot] com
..or if you lost it a file to look into?
Regards.
Posts: 5
Unfortuanely the files 'syn' has sent me don't do the trick (I Mailed 'syn' about this).
I did a controlled merge with my original (newer) gallery files, but the problem remains.
Files have been send through pm to larsbrink
Posts: 6
I have the same problem on win2k3. Any fix yet?
Posts: 14
Hi I have exactly the same problem: Firefox shows the urls for Gallery with a \/ added in front of index.php eg:
http://www.sitename.com/\/index.php?option=com_gallery etc etc
And IE simply removes the domain name entirely.
Odd...anyone come up with a solution yet?
Posts: 14
some more things to try...
In index.php (of gallery) change:
to
and in session.php
to
let me know if that fixes things.
I BELIEVE thats what i had to change to get mine working....
Posts: 6
Syn,
I add above to my gallery and still no change....
Posts: 5
@syn
Unfortunately it doesn't work for me either..
Removed the Gallery from Mambo. Installed Gallery into Mambo after the fix. Created a new link on the main menu to component 'Gallery'... No change..
If I knew which part of Mambo or the Gallery is responsible for creating the links, I could try and find a solution. So if somebody could point me in the right direction this would be much appreciated as well..
Posts: 1
I have the exact same problem.
Here are my details:
Mambo 4.5.2
Gallery 1.5
NetPBM 1.4
PHP 5.04
Apache 1.3.33
I would love to get this working, please help!
Posts: 14
Anyone able to help?
Posts: 5
I'm trying to figure this out myself, but my PHP skills are not that high so it will take some time..
There's also a thread for this at forum.mamboserver.com http://forum.mamboserver.com/showthread.php?t=40743 but no solution either...
Posts: 14
well.. i can zip up my current gallery dir and up it to whomever wants it...
its sad, i remember fixing it (a long time ago) but i opened and looked over so many files, i forget what i changed.
Posts: 2
This is a possible fix.
(This is for Gallery 1.5/Mambo 4.5.2.1 using the contrib/mambo component on Windows 2k/Apache 2/PHP 4.3.11)
Look in your init.php file in your gallery directory.
Starting line 368 you should see:
add
before
Somehow the mosroot variable wasn't getting set and ended up with a \ which threw off the makeGalleryUrl function in url.php
Fun tracing through
Hope that works for others that might be having this problem.
Posts: 2
Ok, upon further testing, the above fix works for IE but not Firefox. Not entirely sure if thats because of dirname()'s behavior was changed recently to have \ on windows platforms... soo here is a fix for that:
In the same file, replace the added line:
with
there is also an identical line below it in the elseif code block - feel free to replace that one too.
Posts: 14
Many thanks - I'll give it a try later on and let you know how it turns out! :D
Posts: 14
Fantastic! Thanks a bunch - it worked like a charm - my gallery component now works properly in both Firefox and IE :D
Posts: 5
Yahooooooooo..... I feel like wanting to run around the room for a mile or two with my hands in the air...
This is absolutely great... the long awaited solution...
Thank you thank you thank you, blssdwlf You made my day... !!!
And thank you Bluesuede for adding a link to this solution at forum.mamboserver.com
Posts: 6
Thank's blssdwlf, it worked
Posts: 4
I have noticed the same problem and I am linking to another thread that has more information. For me this did not totally resolve the problem and it does not address the same problem for the random imgae block producing the same problem.
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=152338#152338
From that thread:
Any help appreciated.
Al
Posts: 2
I have the same problem also with random block like albrown said.
i solve it with small modification of this solution :wink:
i put this code: $gallery->session->mambo->mosRoot = str_replace("\\","/",dirname($_SERVER['PHP_SELF'])); before the if statement and now it works for everything, even for random block. I also didn't notice any other problems with that. so it work's for me :wink:
Posts: 6
thanks for the help, this worked
You should make sure this is added into 1.51