Redirect Link to Album with "<META HTTP-EQUIV="Refresh..."

pkirchner
pkirchner's picture

Joined: 2002-10-08
Posts: 2
Posted: Wed, 2007-05-23 03:29

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL: http://www.kirchner-family.net/gallery
Gallery version: 1.5.6
Apache version: 2.2.3-4
PHP version (don't just say PHP 4, please): 4.4.4-9 (Debian Sid)
Graphics Toolkit: Imagemagick 7:6.2.4.5.dfsg1-1
Operating system: Debian Sid - Kernel 2.6.21
Web browser/version (if applicable): Firefox 2.0.0.3

Hello,

I'm using 1.5.6 and am having trouble adding this text:

<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.kirchner-family.net/redirectpascal.html">

to the album summary text in order to redirect the user to an album on a different domain. I have tried adding it using the admin web page and also tried manually editing the album.dat file but the meta code won't stick. It was suggested that edit the safe.php to prevent the meta tag from being deleted, but if I remove 'meta' from that file it allowed the tag, but added "</meta>" and it still didn't work.

Could someone walk me through how to redirect an album link in the current 1.5.6 version please?

Thanks much,

Patrick.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2007-05-23 12:56

Hi Patrick!

First: I LOVE DISCOSTU !

Editing Safe.php is indeed the solution.
You need to do this:

1.) remove 'meta' from $deleteTags array
2.) add 'meta' to $noClose array
3.) add 'http-equiv' to $attributeNS array

Greetings,
Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
pkirchner
pkirchner's picture

Joined: 2002-10-08
Posts: 2
Posted: Wed, 2007-05-23 18:07

"Did you know that disco record sales were up 400% for the year ending 1976? If these trends continues... AAY!"

Thanks Jens! You nailed it on the head. Three quick and easy steps and now I have my redirect. http://www.kirchner-family.net/gallery/Pascal

Disco Stu thanks you!

Patrick.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2007-05-23 18:31

I was born in 1976 ;-)

Jens
--
Last Gallery v1 Developer and v1 translation manager.