Author Topic: How to get {image_id} tag to show in media templates?  (Read 5127 times)

0 Members and 1 Guest are viewing this topic.

Offline silentg

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • WallpaperJoint
How to get {image_id} tag to show in media templates?
« on: June 17, 2008, 01:33:26 AM »
I want to get the image id to show in the media templates . I tried changing src= to point to download.php with the {image_id} but the {image_id} tag doesn't show up for some reason.
Quote
<!-- Template file for JPG Files -->
<center><img src="download.php?image_id={image_id}" border="1" alt="{image_name}" {width_height} /><br /></center>
The output in the source code looks like this <img src="download.php?image_id=" border="1" alt="Sci-Fi-Planets-22138"  width="1280" height="1024" />
As you can see in the output doesn't show {image_id}.


thanks in advance,
SilentG

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: How to get {image_id} tag to show in media templates?
« Reply #1 on: June 17, 2008, 09:25:12 AM »
Hello;
sorry, but I cannot understand what you're willing to do.
Do you need to offer to your visitors a direct link to your images, like this:


Well, I do not understand why you need the "image_id" tag.
Please, let us know and explain it better to us, for we can try to help you.

Very sorry again to not be able to undertand what you really need.
But don't be disapointed. Someone here will soon give you the solution.
If you need to explain more, remember that an image is sometimes better than many words.

Hope you will succeed.
I will keep on surveying this topic, and try to help anytime I can.

Offline silentg

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • WallpaperJoint
Re: How to get {image_id} tag to show in media templates?
« Reply #2 on: June 17, 2008, 03:43:51 PM »
Since there is isn't a good mod to hide the image path properly. I am using the download url to hide it.

The original template of jpg looks like this:

<!-- Template file for JPG Files -->
<center><img src="{media_src}" border="1" alt="{image_name}" {width_height} /><br /></center>

Instead of loading the image using the {media_src} tag, I want to use the download url instead like this "/download.php?image_id=100". But when I tried this code in the jpg media templates, the {image_id} tag didn't show up on the gallery at all.

<center><img src="/download.php?image_id={image_id}" border="1" alt="{image_name}" {width_height} /><br /></center>

Sample:
http://www.wallpaperjoint.com/sample.html << Right Click on the image and check the properties.

This way I can stop people from direct linking to my images.


thanks for your help

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: How to get {image_id} tag to show in media templates?
« Reply #3 on: June 17, 2008, 05:10:15 PM »
Hello;
ask KurtW.
He has a pretty good hotlinking safe script.

Maybe based on htaccess. file...

He uses to help anybody. Just be fair with him, and give him all thanks that he deserves.