Author Topic: Change Button to text link  (Read 6177 times)

0 Members and 1 Guest are viewing this topic.

Offline aletapety

  • Newbie
  • *
  • Posts: 29
    • View Profile
Change Button to text link
« on: June 07, 2006, 02:57:01 AM »
Hello  :D

Please tell me is possible change button to link example download button postcard etc  :mrgreen:

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Change Button to text link
« Reply #1 on: June 07, 2006, 09:37:47 AM »
... change your button images in /templates/<your_template>/images  ...  :wink:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline aletapety

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Change Button to text link
« Reply #2 on: June 07, 2006, 01:02:24 PM »
... change your button images in /templates/<your_template>/images  ...  :wink:

 no no  :) i need change button to text link  :roll: exmaple
now i have download button but how change button to text link

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Change Button to text link
« Reply #3 on: June 07, 2006, 02:49:27 PM »
... solved ? ... or not solved ? ...

change button to textlink :

find in /includes/functions.php for e.g. download button the following code ...
Code: [Select]
...
$download_button = "<img src=\"".get_gallery_image("download_off.gif")."\" border=\"0\" alt=\"\" />";
...
$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>";
...

and change to ...
Code: [Select]
...
$download_button = "Download OF";
...
$download_button = "<a href=\"".$site_sess->url(ROOT_PATH."download.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target.">Download ON</a>";
...

... for the other buttons is to be made similar ...  :wink:
... now solved ?
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline aletapety

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Change Button to text link
« Reply #4 on: June 07, 2006, 03:05:56 PM »
Ok Solved  8) tell me please how change this

$download_tap = "<img onClick=\"window.open('http://tapeciarz.mobile.net.pl/imageuploader-partner.xhtml?pid=176&img=http://aletapety.pl/" . substr(MEDIA_PATH,2) . "/" . $image_row['cat_id'] . "/" . $image_row['image_media_file'] ."','new','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=745,height=425')\" src=\"".get_gallery_image("tap.gif")."\" border=\"0\" alt=\"\" />";

        $download_tap = "<img onClick=\"window.open('http://tapeciarz.mobile.net.pl/imageuploader-partner.xhtml?pid=176&img=http://aletapety.pl/" . substr(MEDIA_PATH,2) . "/" . $image_row['cat_id'] . "/" . $image_row['image_media_file'] ."','new','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=800,height=425')\" src=\"".get_gallery_image("tap.gif")."\" border=\"0\" alt=\"\" />";

to link poscard is easy but this a dont't no  :? and that all  :roll:

Offline aletapety

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Change Button to text link
« Reply #5 on: June 08, 2006, 12:38:05 AM »
Please mawenzi it's very important to me <bear>  :wink:

Update 06.08.2006:

ok Work  :lol: thank solved 100 %
« Last Edit: June 08, 2006, 01:19:37 AM by aletapety »