coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bit bit spears on March 08, 2004, 03:37:28 AM

Title: how do i make an additional 'Download Image' link
Post by: bit bit spears 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.
Title: how do i make an additional 'Download Image' link
Post by: Joachim Müller on March 08, 2004, 07:16:19 AM
search the mods/hacks board, there's a zip download mod available.

GauGau
Title: how do i make an additional 'Download Image' link
Post by: bit bit spears 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.
Title: how do i make an additional 'Download Image' link
Post by: Joachim Müller on March 09, 2004, 11:44:42 PM
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
Title: how do i make an additional 'Download Image' link
Post by: bit bit spears 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:)
Title: how do i make an additional 'Download Image' link
Post by: bit bit spears on March 10, 2004, 04:27:01 AM
kinda confused with your solution-

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