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: how do i make an additional 'Download Image' link  (Read 5075 times)

0 Members and 1 Guest are viewing this topic.

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how do i make an additional 'Download Image' link
« on: March 08, 2004, 03:37:28 am »

Hi, i was wandering how i would make a 'Download Image' link beside each image, instead of clicking on it to download the fullsize.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
how do i make an additional 'Download Image' link
« Reply #1 on: March 08, 2004, 07:16:19 am »

search the mods/hacks board, there's a zip download mod available.

GauGau
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how do i make an additional 'Download Image' link
« Reply #2 on: March 09, 2004, 02:01:28 pm »

no i don't mean in a zip. i mean you know how you click on the intermediate image to make it full size-i want to show a link beside it or on the displayimage.php page that is just a link SAYING 'Download Image'.

That link would then take you to the full size view.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
how do i make an additional 'Download Image' link
« Reply #3 on: March 09, 2004, 11:44:42 pm »

edit displayimage.php, find
Code: [Select]
$pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";and add afterwards
Code: [Select]
$pic_html .= "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">Download Image</a><br />";(not tested), but actually, this is not what users expect if they click on a link that says "download", so I don't recommend this.

[ot]
tb, you've been around this board for some time, and your tried a lot of modifications - why don't you try to modify some things on your own for a start, instead of asking for help on every tiny issue. This little modifications should be obvious for everybody who has taken a look into coppermine for as long as you do...
[/ot]

GauGau
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how do i make an additional 'Download Image' link
« Reply #4 on: March 10, 2004, 04:23:50 am »

ohhhh you wouldn't believe all the mods i have done by myself-i haven't been on the board for about a week, until i ran into a few little changes, i would link you to the extremely modded gall, but its not open to the public:)
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how do i make an additional 'Download Image' link
« Reply #5 on: March 10, 2004, 04:27:01 am »

kinda confused with your solution-

will i have control of where the 'Download Image' text displays?
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.