Author Topic: Download button path in the detals.html make visible.  (Read 3567 times)

0 Members and 1 Guest are viewing this topic.

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Download button path in the detals.html make visible.
« on: August 21, 2006, 06:40:53 PM »
Hallo,

ich möchte den Download Button Pfad in der details.html sichtbar machen, sodass man diesen dann extern verwenden kann.
Wie mach ich das?

Download button path in the detals.html make visible.
As that can be done?

Gruß
michi-w.
« Last Edit: August 21, 2006, 07:27:05 PM by michi-w. »

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: Download button path in the detals.html make visible.
« Reply #1 on: August 21, 2006, 09:04:52 PM »
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Download button path in the detals.html make visible.
« Reply #2 on: August 21, 2006, 10:16:38 PM »
Hallo,

das habe ich bereits selbst gelöst!

Ich möchte den Pfad anzeigen, der den Download ermöglicht, also den, der beim anklicken des Download Buttons erzeugt wird.
Das ist nämlich ein anderer und hat nichts mit den Bild Pfad zu tun. :wink:

Der wird bereits bei mir angezeigt:
http://www.upload.dd/data/media/26/beispiel.jpg

Dieser soll nun hinzukommen:
http://www.upload.dd/download.php?image_id=18008

Das müsste der Abschnitt in der functions.php sein

Code: [Select]
$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>";
Wie bekomm ich da jetzt den Button raus und dafür den Link angezeigt?

Gruß
michi-w.
« Last Edit: August 21, 2006, 10:40:13 PM by michi-w. »

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Download button path in the detals.html make visible.
« Reply #3 on: August 22, 2006, 06:00:14 PM »
Habe es hinbekommen ohne das ich etwas an php ändern musste.

Code: [Select]
<textarea readonly rows="1" cols="70">
http://www.deinehomepage.de/4images/download.php?image_id={image_id}
</textarea>