Author Topic: Automaticaly URL insert  (Read 5483 times)

0 Members and 1 Guest are viewing this topic.

Offline Steviii

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.das-ggf.de
Automaticaly URL insert
« on: June 15, 2003, 04:02:44 PM »
Hi guys!

I would like to show the direkt URL to an Image in the discription.
I have an avatar-galerie where users kann choose an avatar for their profil at board.
So I would like, that the direkt URL to image is shown in discription, when the picture is uploaded to my server.
this: http://yourserver.com/4images/data/media/1/image.gif

Is this possible? Cause I don't want to add the URL every time....

thx for your help

hope you understand everything, my english is not the best....

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
Automaticaly URL insert
« Reply #1 on: June 15, 2003, 05:21:11 PM »
use HTML in your descriptions
i.e.
Quote
<a href="http://yourserver.com/4images/data/media/1/image.gif">http://yourserver.com/4images/data/media/1/image.gif</a>

this is the only way without diggin in the code.
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 Steviii

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.das-ggf.de
Automaticaly URL insert
« Reply #2 on: June 15, 2003, 06:01:52 PM »
hm....ok, well I do this anyway....

Thanks vor your time!

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Automaticaly URL insert
« Reply #3 on: June 16, 2003, 03:35:36 PM »
I haven't tested this, but I think you can use this format:
Code: [Select]
http://www.domain.com/4images/data/media/{cat_id}/{image_id} and you should probably place this in the media templates although it should also work from the details.html template

Offline Steviii

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.das-ggf.de
Automaticaly URL insert
« Reply #4 on: June 16, 2003, 04:53:14 PM »
Thanks! That's it!

But it has to be this code (if anyone is interesseted in this)

Code: [Select]
http://www.yourdomain.de/4images/{media_src}

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Automaticaly URL insert
« Reply #5 on: June 16, 2003, 10:39:03 PM »
Yeah, I forgot about that