Hi,
I run D6.4 and the latest BG. Images on my gallery do not show. A quick look at the html shows that links to imahges are wrong such as: <a href="/index.phpsites/all/modules/brilliant_gallery/image.php?imgp=L2NsaWVudGRhdGEvd3d3L2NvbS9lL2Vra29jcmVhdGl2ZXMuY29tL3NpdGVzL2RlZmF1bHQvZmlsZXMvZWtrb2dhbGxlcnkvYXJ0Y3JhZnQvSU1HXzQ3MjQuSlBH&imgw=1000&imgh=750" rel="lightbox[2312949]" title="IMG 4724"><img style="border:0" alt="" rel="lightbox" src="/index.phpsites/all/modules/brilliant_gallery/image.php?imgp=L2NsaWVudGRhdGEvd3d3L2NvbS9lL2Vra29jcmVhdGl2ZXMuY29tL3NpdGVzL2RlZmF1bHQvZmlsZXMvZWtrb2dhbGxlcnkvYXJ0Y3JhZnQvSU1HXzQ3MjQuSlBH&imgw=115&imgh=86" /></a>
. I have noticed that some people had already recorded this issue in earlier post (#283463: How to remove "index.php" from href/src tag when using [BG| ] tag? messes links up.). Any hints as to where one my start looking in order to fix the problem, assuming the galley and lightbox setup is correct? Thank you.
Comments
Comment #1
xaviercas CreditAttribution: xaviercas commentedOk,
I am not much of a coder, so here is what I have down to get the gallery working temporarily:
In the module for every instance of str_replace ( "?q=", "", ...)
I changed it to str_replace( "index.php?q=", "",...).
In image.php, I commented out all the caching processes, in essence, just keeping the resizing function.
Not pretty, but it works.
Thanks
Xavier
Comment #2
jostein CreditAttribution: jostein commentedWhat do you mean by "not pretty but it works"?
That the solution isnt pretty, but the gallery looks like it is suppose to?
If so, sounds like the solution I have been waiting a month for :)
Comment #3
jan.n CreditAttribution: jan.n commentedNow what I'm wondering about is why it works for some, but not for all of us.
What's the difference in our installations?
I'm using Drupal 6.4 just like the OP and for me it works without modifications.
Which line did you modify? My line 285 reads:
$path = str_replace( "?q=", "", $path );
What else might be the problem - any ideas? I'd really like to track that down...
Comment #4
xaviercas CreditAttribution: xaviercas commentedHi,
I've deleted the 'commented out' code in the module section, therefore I cannot give you line numbers that would be helpful. So 285: $path = str_replace( "?q=", "", $path ); I have replaced "?q=" with "index.php?q=", and same for $modulepath further down.
as for image.php here is the code (as I said not pretty, basically a short term solution. the retrieval from the caches might be the issue???):
I would also suggest at a latter stage adding to classes instead of inline css. And yes, I do not understand either why it might work on some install and not others.
Cheers