4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: michi-w. on August 21, 2006, 06:40:53 PM

Title: Download button path in the detals.html make visible.
Post by: michi-w. 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.
Title: Re: Download button path in the detals.html make visible.
Post by: kai on August 21, 2006, 09:04:52 PM
Vielleicht hilft Dir das:
http://www.4homepages.de/forum/index.php?topic=12735.0
Title: Re: Download button path in the detals.html make visible.
Post by: michi-w. 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.
Title: Re: Download button path in the detals.html make visible.
Post by: michi-w. 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>