Posted on: 03/02/05 05:00pm
By: ajzz
GalleryBlock presumes url-rewrite even if it is disabled for the site. Is there a known mod? (i searched the forums but nothing relevant turned up yet.)
My host is being finicky about allowing .htaccess override to set up rewrite for the Gallery - of course this thread would be redundant if they came through.
Thanks folks,
Ajay
GalleryBlock without url_rewrite?
Posted on: 03/02/05 11:03pm
By: asmaloney
GalleryBlock actually gets the URLs directly from gallery using the makeGalleryUrl() function. So if your gallery is set up to use rewriting, then the URLs in the GalleryBlock will too.
Hope this helps.
Andy
GalleryBlock without url_rewrite?
Posted on: 03/03/05 07:22pm
By: ajzz
Thanks Andy,
I will look into this... Somehow the gallery configuration process does not detect url_rewrite or .htaccess override. Of course in such a case, I may have to start posting to the Gallery forums instead of here.
Cheers!
Ajay
GalleryBlock without url_rewrite?
Posted on: 03/05/05 09:18pm
By: ajzz
I checked my Gallery config.php - rewrite is disabled there (although mod_rewrite is enabled on the apache server) - still have the issue described in first post.
Any ideas folks?
Ajay
Edit: If it helps, the links in the Gallery Random Photo Block work just fine (ie: they are not rewritten).
GalleryBlock without url_rewrite?
Posted on: 03/06/05 07:31am
By: asmaloney
OK. I can't look at this right away [I have two little nephews running around here wreaking havoc and aking "What's that?" about everything]. I'll be able to look at it this evening [Sunday] or tomorrow.
- Andy
GalleryBlock without url_rewrite?
Posted on: 03/07/05 02:29pm
By: asmaloney
Solution: In blocks/galleryblock/phpblock.php, change lines 87 and 132 from this:
$albumURL = makeGalleryUrl( $entry['name'] );
to this:
$albumURL = makeAlbumUrl( $entry['name'] );
Reason It seems that makeGalleryUrl() from gallery's util.php does not respect the rewrite preference.
I will have a new release to fix this sometime in the next couple of days.
- Andy
GalleryBlock without url_rewrite?
Posted on: 03/07/05 02:47pm
By: ajzz
Thanks that works!
Ajay