Pointing to another directory?

L

Lauren

Guest
In my db, I have a table which contains the name of an image (ex: dog.jpg), and the thumbnail name of the image (ex:th_dog.jpg). When I had made my own db interface thing (obviously no where near as awesome as dadabik), I had this
$ImageURL = "http://www.mysite.com/pics";

and then had it so that the results actually printed the image itself, rather than just the name..... so rather than have the text "th_dog.jpg" print as the result, it would actually reference the URL "http://www.mysite.com/pics/th_dog.jpg" and show the thumbnail itself....

I'm sure this is possible but I'm overwhelmed and clueless at this point....HELP?!
 
E

Eugenio

Guest
Lauren wrote:

> In my db, I have a table which contains the name of an image
> (ex: dog.jpg), and the thumbnail name of the image
> (ex:th_dog.jpg). When I had made my own db interface thing
> (obviously no where near as awesome as dadabik), I had this
> $ImageURL = "http://www.mysite.com/pics";
>
> and then had it so that the results actually printed the
> image itself, rather than just the name..... so rather than
> have the text "th_dog.jpg" print as the result, it would
> actually reference the URL
> "http://www.mysite.com/pics/th_dog.jpg" and show the thumbnail
> itself....
>
> I'm sure this is possible but I'm overwhelmed and clueless at
> this point....HELP?!

Of course the field type must be "image_file", if you want to point another directory you can try to put the url in the $upload_relative_url in /include/config.php, probably it works.


(Latest version of DaDaBIK when this message was posted: 3.0 beta)
 
Top