Hi all
First, excuse my write english please, because im from spain and im not very good.
I Have install the last version of coppermine on
www.lokuras.net, for to do a spanishs comics recopilations web.
I want to put in the info page javascript of the medium size image (normal_) a link to download the image, i can see that the script comes with a option to put in on a Favorites section, but i keep out all that.
In displayimage.php I have change the following lines (335/337):
$info[$lang_picinfo['addFavPhrase']] = "<a target=_blank href=http://www.lokuras.net/albums/" . $CURRENT_PIC_DATA['filepath'] . "" . htmlspecialchars($CURRENT_PIC_DATA['filename']) . " >http://www.lokuras.net/albums/" . $CURRENT_PIC_DATA['filepath'] . "" . htmlspecialchars($CURRENT_PIC_DATA['filename']) . '</a>';
} else {
$info[$lang_picinfo['addFavPhrase']] = "<a target=_blank href=http://www.lokuras.net/albums/" . $CURRENT_PIC_DATA['filepath'] . "" . htmlspecialchars($CURRENT_PIC_DATA['filename']) . " >http://www.lokuras.net/albums/" . $CURRENT_PIC_DATA['filepath'] . "" . htmlspecialchars($CURRENT_PIC_DATA['filename']) . '</a>';
The original code is:
$info[$lang_picinfo['addFavPhrase']] = "<a href=addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . " >" . $lang_picinfo['addFav'] . '</a>';
} else {
$info[$lang_picinfo['addFavPhrase']] = "<a href=addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . " >" . $lang_picinfo['remFav'] . '</a>';
And this changes works perfect, but i have a problem with the filenames with spaces, because the url os the filename if not completed.
Here you have some examples:
http://www.lokuras.net/displayimage.php?album=296&pos=33 (This is the coppermine url of one image with spaces, is all perfect, but do click in the info and look the url os the bottom)
http://www.lokuras.net/albums/12_01_04/LaSecretariaCoq/La (This is the link, BAD URL)
http://www.lokuras.net/albums/12_01_04/LaSecretariaCoq/La Secretaria_033.jpg (This is the goog url)
Can somebody help me ?
Can I put something in the code for when the scripts see a filename with spaces, in the space put %20 ?
Thanks for all