4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Shap on March 02, 2003, 01:18:43 AM
-
I'm wondering if its possible to make an image in a gallery a link? Example would be upload some image, and if they click it, it takes them to www.yahoo.com
-
u can do this way with download button.
-
Yes, when the image is uploaded, set the download URL to the location you want.
-
cool, i see that, I guess my next question would be, is it possible to use a different image for the download button, in just one catagorie?
thanks guys
-
is it possible to use a different image for the download button, in just one catagorie?
Try this:
Open /includes/functions.php
Find: $download_button = "<a href=\"".$site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target."><img src=\"".get_gallery_image("download.gif")."\" border=\"0\" alt=\"\" /></a>";
Replace with: $download_button = "<a href=\"".$site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target."><img src=\"".get_gallery_image(($image_row['cat_id'] == XXXXX) ? "YOUR_IMAGE.GIF" : "download.gif")."\" border=\"0\" alt=\"\" /></a>";
Replace XXXXX to number of your category
And YOUR_IMAGE.GIF to your image name.
-
worked like a charm!!
Thanks again!