Author Topic: direct link  (Read 6834 times)

0 Members and 1 Guest are viewing this topic.

Offline dehein2

  • Pre-Newbie
  • Posts: 2
    • View Profile
direct link
« on: January 02, 2006, 12:15:00 PM »
Hallo,
wie kann ich denn einen direkten Link zu einem Bild in der Detailansicht erstellen. Wenn ich {media_src} verwende habe ich ja etwa soetwas : "./data/media/80/IMG_0042.JPG".. aber da kann ich dann ja nicht einfach meine domain vorschrieben, weil dann ja ein Punkt dazwischen ist....

Wie mache ich dies am besten. Möchte die Bilder mit einem shop verlinken und bruache dafür eine vollständige adresse zu jedem bild...

Vielen Dank.



Hi,
how can i create a direct link to an image in "detailed view". When using {media_src} i get sth. like this: "./data/media/80/IMG_0042.JPG"..  When adding my domain i have the dot within the link and it doesn't word of course...

Thanks alot

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
Re: direct link
« Reply #1 on: January 02, 2006, 06:25:39 PM »
how can i create a direct link to an image in "detailed view". When using {media_src} i get sth. like this: "./data/media/80/IMG_0042.JPG".. When adding my domain i have the dot within the link and it doesn't word of course...
it will work just fine with the dot if you add a forward slash after your domain name:
http://example.com/{media_src}
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 dehein2

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: direct link
« Reply #2 on: January 02, 2006, 06:56:07 PM »
ahh..
thanks alot

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: direct link
« Reply #3 on: August 29, 2006, 02:16:33 AM »
Hello V@no,

I have in details.html inserted
Code: [Select]
<textarea readonly rows="2" cols="89">
http://www.ddrrrsoft.de/4images/{media_src}
</textarea>
that  direct link one indicates in such a way
http://www.ddrrrsoft.de/4images/./data/media/8/beipiel.jpg

./ is too much.

Delete of ./ in details.php
define('ROOT_PATH', './');
makes problems with current browser.

And still another problem!
Those direct link of download button are indicated correctly, but the download is not found outside of the details.html, exception is that firefox browser, there the download goes.
Code: [Select]
<textarea  readonly rows="2" cols="89">
http://www.asdfa.de/4images/download.php?image_id={image_id}
</textarea>
<textarea  readonly rows="2" cols="89">
http://www.asdf.de/4images/download.php?action=zip&amp;image_id={image_id}
</textarea>
Which I can do?

With friendly greeting
michi-w.

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
Re: direct link
« Reply #4 on: August 29, 2006, 03:45:38 AM »
./ does not affect anything, the url is stil valid.
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 michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: direct link
« Reply #5 on: August 29, 2006, 03:58:16 AM »
Thanks for the answer, but I would have that gladly away.

One could make it in such a way?
functions.php
of
Code: [Select]
$media_icon = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$media_icon."</a>";to
Code: [Select]
$media_icon = "<a href=\"".$site_sess->url("http://www.asdf.de/4images/details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$media_icon."</a>";
And then in the ./ the detials.php remove?
define('ROOT_PATH', './');
Which has for effects on the the remainder of script?

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
Re: direct link
« Reply #6 on: August 29, 2006, 04:25:00 AM »
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 michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: direct link
« Reply #7 on: August 29, 2006, 02:56:14 PM »
Thanks very much, in former times the mod did not go, but it goes now. :D