Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Need some help with code in displayimage.php (FIXED)  (Read 2187 times)

0 Members and 1 Guest are viewing this topic.

adriano

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
    • http://www.wackernah.net
Need some help with code in displayimage.php (FIXED)
« on: February 18, 2004, 03:58:18 pm »

I would add in the displayarea under the image a link to a external place for a hires picture.

Code: [Select]
$info[$lang_picinfo['File Size']] = '<a href="http://myexternalurl/$number$/' . substr($CURRENT_PIC_DATA['filename'], 0, 4) . '/' . $CURRENT_PIC_DATA['filename'] . '>Download</a>';

In frontend I see no generated output!

I used the nonused variable "File Size" in displayimage.php and would receive from the script a URL like this:

http://myexternalurl/$number$/folder/filename.jpg

The name of my pictures represent in the first four chars the foldername (0010.0999.jpg -> URL should be "http://myexternalurl/$number$/0010/0010.0999.jpg) where the pictures will be found. This function for separating the foldername from the filename works. It seems, that anycase the URL I placed in front does not work or the not defined variable $numbers$ which I need, brings a wrong result.

Has anyone here a tipp for me how write the right code?

----

I found the wrong part - Thanks!
Logged
[size=10]Fotos von Norddeutschland und der Nordseeküste
Photos of Northern Germany and the North Sea Coast:
http://www.wackernah.net[/size]
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 18 queries.