Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 06:24 pm EST

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 EST. The time is now 06:24 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