how do i make an additional 'Download Image' link how do i make an additional 'Download Image' link
 

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]

Main Menu

how do i make an additional 'Download Image' link

Started by bit bit spears, March 08, 2004, 03:37:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bit bit spears

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

Joachim Müller

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

GauGau

bit bit spears

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.

Joachim Müller

edit displayimage.php, find $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";and add afterwards$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

bit bit spears

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:)

bit bit spears

kinda confused with your solution-

will i have control of where the 'Download Image' text displays?