Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 04:22 am EDT

Geeklog Forums

Gallery integration: mod_rewrite


Status: offline

robinbowes

Forum User
Junior
Registered: 08/06/02
Posts: 23
Hi,

I had a problem with gallery integration in that I found that Gallery would not generate short URLs when wrapped in Geeklog.

I've just discovered (thanks Bharat - Gallery developer) that this is because Gallery disables short URLs when it is wrapped in anything.

Here's what Bharat said:

The problem is that Gallery disables short URLs whenever it is embedded in anything. This is because I had a *Nuke bias when I wrote that code and Nuke prevents us from using short URLs. The folks who do the geeklog patch could remove this restriction in their next rev of the patch... Or you could modify the makeAlbumUrl() function in util.php:

change:
if (!$GALLERY_EMBEDDED_INSIDE && $gallery->app->feature["rewrite"]) {
to:
if ($gallery->app->feature["rewrite"]) {

Hope this helps somebody!

R.
 Quote

All times are EDT. The time is now 04:22 am.

  • 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