Author Topic: Text links and image links - and some mods...  (Read 7004 times)

0 Members and 1 Guest are viewing this topic.

Offline wingman

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • http://www.esadness.net
Text links and image links - and some mods...
« 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
experimental SADNESS - http://www.esadness.net

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Text links and image links - and some mods...
« Reply #1 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline wingman

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • http://www.esadness.net
ohh
« Reply #2 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?
experimental SADNESS - http://www.esadness.net

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Text links and image links - and some mods...
« Reply #3 on: January 26, 2003, 08:57:55 PM »
sure, just use {download} to have text link and {download_button} to have button.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline wingman

  • Pre-Newbie
  • Posts: 6
    • View Profile
    • http://www.esadness.net
ohh
« Reply #4 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.
experimental SADNESS - http://www.esadness.net

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Text links and image links - and some mods...
« Reply #5 on: April 09, 2003, 02:29:06 AM »
what about for the upload button? I want to add a Upload Text link also...

 :?:

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Text links and image links - and some mods...
« Reply #6 on: April 10, 2003, 05:41:32 AM »
would I follow the same steps above to make this work with the upload button?

thx