4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: wingman on January 26, 2003, 04:54:31 PM

Title: Text links and image links - and some mods...
Post by: wingman on January 26, 2003, 04:54:31 PM
Hi all,
here's my first message here, 4images is incredible script :) anyway i wanna ask you how can i use image links and the text links same time, i mean i use upload button in page , i want also that link as a text in same page, if its possible, please tell me about all of the buttons..

I spent so much time editting and skining  script (and need more :P), please check out those shots. If u wanna get something in code, i'll send you. Ohh i forgot, here is the links
http://www.esadness.net/graf2_1.jpg
http://www.esadness.net/graf2_2.jpg
http://www.esadness.net/graf2_3.jpg
Title: Text links and image links - and some mods...
Post by: V@no on January 26, 2003, 06:06:51 PM
open /includes/functions.php file
find:
Code: [Select]
   $download_button = "<img src=\"".get_gallery_image("download_off.gif")."\" border=\"0\" alt=\"\" />";

add after:
Code: [Select]
   $download= "YOUR TEXT HERE. THIS IS NOT A LINK. DOWNLOAD NOT ALLOWED FOR THIS PICTURE";


Find:
Code: [Select]
   $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>";

Add after:
Code: [Select]
   $download = "<a href=\"".$site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target.">YOUR TEXT HERE. THIS IS THE LINK TO DOWNLOAD THIS IMAGE</a>";


Find:
Code: [Select]
   "download_button" => $download_button,
Add after:
Code: [Select]
   "download" => $download,


Now u can use {download} tag in your details.html template.

P.S. this modification doesnt support multilanguage, meaning its the simplest way to do without adding new sentence in language pack.
Title: ohh
Post by: wingman on January 26, 2003, 08:53:52 PM
Thanks but, i think i cant make the right sentence, i want also the image button. I mean i want to use image link and text link in same page in different places at the same time. I dont want to use just a text link or image,  both of them... is it possible?
Title: Text links and image links - and some mods...
Post by: V@no on January 26, 2003, 08:57:55 PM
sure, just use {download} to have text link and {download_button} to have button.
Title: ohh
Post by: wingman on January 26, 2003, 09:05:24 PM
V@no, u're the great, but i need all of the buttons, like "upload", "add to lightbox","remove frm lightbox","e-card". Thanks alot.
Title: Text links and image links - and some mods...
Post by: Shap on April 09, 2003, 02:29:06 AM
what about for the upload button? I want to add a Upload Text link also...

 :?:
Title: Text links and image links - and some mods...
Post by: Shap on April 10, 2003, 05:41:32 AM
would I follow the same steps above to make this work with the upload button?

thx