[pmwiki-users] gallery path problem
Moni Kellermann
kellerfrau at gmail.com
Mon Jul 28 04:00:53 CDT 2008
Hi y'all,
I have been using Stefan Jahn's picture gallery on a website for a quite
a while. Now my customer has had her website transferred to a new
provider and the server handles the code a little differently.
The gallery script now does not display the thumbnails because the
output is malformed as
src="/http%3A//www.filmkruse.de/p2/uploads/Main/thumb_tour2005_110249.jpg"
instead of
src="http://www.filmkruse.de/p2/uploads/Main/thumb_tour2005_110249.jpg"
The same happens on the single image page.
Okay, so I can simply remove the slash in src="/. But then I am stuck.
The script has the code
$output.= '<img class="thumb" src="/'.str_replace('%2F', '/',
urlencode($directory.$thumbnail[$i])).'" alt="'.$g_alttext.'"
'.$size[3].' />';
but how to I replace both the %2F with / and %3A with : at the same time?
The code for the gallery script is here (gallery.php renamed to
gallery.txt):
http://www.filmkruse.de/p2/cookbook/gallery.txt
The non-working version:
http://www.filmkruse.de/p2/index.php/Main/Tour2004
and the same script working on a different server:
http://www.moni-kellermann.de/p2/index.php/Main/Tour2004
Any help is appreciated!
Thanx!
moni k.
More information about the pmwiki-users
mailing list