Author Topic: {download_button}  (Read 4660 times)

0 Members and 1 Guest are viewing this topic.

Offline BlueShock

  • Pre-Newbie
  • Posts: 7
    • View Profile
{download_button}
« on: June 11, 2008, 02:28:26 AM »
I need to know where the {download_button} is located in the files, becuase the downloads give a wrong link

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: {download_button}
« Reply #1 on: June 11, 2008, 05:36:30 AM »
Hi,

in:
includes/functions.php
Code: [Select]
  else {
    $target = (!empty($image_row['image_download_url']) && !is_remote_file($image_row['image_download_url']) && !is_local_file($image_row['image_download_url'])) ? "target=\"_blank\"" : "";
    $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>";
    $download_zip_button = ($target == "" && function_exists("gzcompress") && function_exists("crc32")) ? "<a href=\"".$site_sess->url(ROOT_PATH."download.php?action=zip&amp;".URL_IMAGE_ID."=".$image_row['image_id'])."\"".$target."><img src=\"".get_gallery_image("download_zip.gif")."\" border=\"0\" alt=\"\" /></a>" : "";
    $allow_download = 1;
    set_download_token($image_row['image_id']);
  }

What is the problem with the wrong url?


KurtW

Offline BlueShock

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: {download_button}
« Reply #2 on: June 11, 2008, 09:16:28 PM »
Its not working. When i click the download button, i download it, it doesn't locate the url download, so it comes empty. I have a temp fix, but it doesn't affect the number of downloads, which i want to do.

Click this

http://ps-net.us/themesdb/download.php?image_id=38

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: {download_button}
« Reply #3 on: June 12, 2008, 05:50:34 AM »
and where is the image :?:
http://ps-net.us/themesdb/details.php?image_id=38


This is the right domain to found your detailsview and download:
 :arrow: http://ipodthemes.co.cc/details.php?image_id=38


No 4images script problem

Kurt

Offline BlueShock

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: {download_button}
« Reply #4 on: June 14, 2008, 06:27:55 PM »
ok, idk but its fixed. i think it was becuase it didn't have a session id thing