Author Topic: {file_name} in details.php, where are you?  (Read 9818 times)

0 Members and 1 Guest are viewing this topic.

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
{file_name} in details.php, where are you?
« on: August 29, 2006, 05:22:01 PM »
Hello.

I need to be able to grab the filename of the picture in details.php

Example: I have an image on my site called cool_car.jpg. I need to be able to show the filename on the actualy site, i.e. /details.php?image_id=123

But I can't find the variable. Can someone please help me, as I need this bad...

Thanks alot!
Greetz: Lasse

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: {file_name} in details.php, where are you?
« Reply #1 on: August 29, 2006, 05:40:09 PM »
To clarify, I want to be able to add "cool_car.jpg" to the details.html page (including folder path of course)
Greetz: Lasse

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: {file_name} in details.php, where are you?
« Reply #2 on: August 29, 2006, 06:05:51 PM »
Okay, anyway this is what I have so far:

I've found {media_src} and {image_file_name}.

The {media_src} variable would work as I want, but the thing is it includes a dot "." in that path
Greetz: Lasse

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: {file_name} in details.php, where are you?
« Reply #3 on: August 29, 2006, 06:17:01 PM »
Nevermind  :D site.com/./data/1.jpg apparently just redirects to site.com/data/1.jpg
Greetz: Lasse

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: {file_name} in details.php, where are you?
« Reply #4 on: August 29, 2006, 06:23:44 PM »
sorry to highjack this. But did you got this working --> http://www.4homepages.de/forum/index.php?topic=6729.msg66895#msg66895 ?

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: {file_name} in details.php, where are you?
« Reply #5 on: August 29, 2006, 10:20:59 PM »
sorry to highjack this. But did you got this working --> http://www.4homepages.de/forum/index.php?topic=6729.msg66895#msg66895 ?
Unfortunately no :(
If you get it working, please get in touch with me! Thanks
Greetz: Lasse

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: {file_name} in details.php, where are you?
« Reply #6 on: August 29, 2006, 10:45:05 PM »
sorry to highjack this. But did you got this working --> http://www.4homepages.de/forum/index.php?topic=6729.msg66895#msg66895 ?
Unfortunately no :(
If you get it working, please get in touch with me! Thanks

I will, er du dansker?

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: {file_name} in details.php, where are you?
« Reply #7 on: August 30, 2006, 12:01:58 AM »
hehe jep!
Greetz: Lasse