[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


instead of


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 


The non-working version:

and the same script working on a different server:

Any help is appreciated!

moni k.

More information about the pmwiki-users mailing list