How to Render images from a image folder path

good evening tech support. I just installed joomla 1.7 and fabrik 3b. I am trying to create a real estate listing application where users can search listings on my site. I have already imported the listings into my site. One of the fields included in the table is a field called image path; each record or listing has a different location for the photo image(s) path; Each location can have anywhere between 1 and 10 photos associated with each record.

My question is what is the best plugin to use that will render images based on the url address or path of image files? I can have on average 7,000 listings and even more images, i am trying not to download the images, rather, render the images from the external location where they are stored. What plugin is the best? I saw the image and the file upload plugins. Which plugin will help me render these images in forms and lists and can you give me detailed steps on how to set the plugin up,or, direct me to the resources to accomplish this?
 
Hi

can you give us an example of the data you have in your listings table?

thx
Rob
 
Hello Rob, thanks for getting back to me. I have sent you a private message with a sample of the link. Any help you can provide to render these images from the remote location is greatly appreciated. Thanks.
 
hi sorry I wasn't after the url to an image, but the structure and content of the database tables that you are using - could you post those here please?

thx
rob
 
There are ~5000 records per table; majority of the fields are varchar 255; the photo path field I have set temporarily as a field because it is a url address. There is a field with a unique value that is associated with every field; the unique value is contained in the photopath's url address. Hope this helps.
 
ok - well I was still really looking for a sample of the data itself. Im not 100% clear as to how its stored, when you say this:

One of the fields included in the table is a field called image path; each record or listing has a different location for the photo image(s) path; Each location can have anywhere between 1 and 10 photos associated with each record.

I'll take a stab of a guess and presume you have a field which contains data like:

http://site.com/image.jgp
http://site2.com/imagea.jpg

if so then simply set that element to be an image element and it will render the external image for you
 
hello Rob, that is exactly what I was looking for. Some of my tables have the direct link to the image just like your example, http://site.com/image.jgp. But I also have tables containing the path of the images, like this example:

http://site.com/imagefolder/

Where there could be 10 photos in the folder. Will the image plugin render all of the images in the folder or will I have to use a different plugin in this situation.
 
Okay, I tested out the image plugin on my table containing the image link per record; when I am configuring the image plugin I see under 'Options' a field to contain the link of the image. My table(list) was created by importing a csv file into mysql and then linking to it from fabrik; By this method I was able to create a table populated with 4,000 records one of the fields being the image url link per each record. For this project I will only be viewing data only. I updated the field containing the image link from a field to an image plugin. Nothing is rendered but the empty image placeholder icon. I am assuming I am supposed to place an image path with the image plugin from the admin panel but this will not work for my purposes. Am I configuring the image plugin correctly or do I need a different plugin?
 
when I am configuring the image plugin I see under 'Options' a field to contain the link of the image
That would be the default image, if your database table already has a image url located in it then this url will be used.
I am assuming I am supposed to place an image path with the image plugin from the admin panel but this will not work for my purposes
That shouldn't be necessary.
Can I check you have updated from github, as this plugin has had some major work done to it since the 3.0b release

thx
Rob
 
Thanks for your reply. I visited Github for the first time. Am I supposed to go directly to the image element plugin, zip it up and try to install through the Joomla 1.7 extension installer or am I supposed to ftp over the elements of the image folder directly into my image plugin folder? The contents of the image folder in github looks way different than my current installation.
 
you should be able to simply copy/ftp all the files in

plugins/fabrik_element/image/

to the same folder on your site

-Rob
 
Hi, I am curious if you figured this out? I am also trying to render images based on a path stored in a table.

The file upload plugin appears to only be for uploading the image and storing the path in a table record.

The image plugin as I understand it will only render a pre-selected static image path. I believe we are both looking for plugin with an "Eval" section that will accept PHP code to render an image. That code could then be set up to query and produce the desired image path from a table record.

Any knowledge you could provide would be appreciated!
 
No I didn't get this to work; Because I was pressed for time and needed this to work for my live site, I ended up using joodatabase as well as the media/image plugin within the jce editor. The combination between the two works perfectly. I plan to try the fabrik plugin again at a later date when I get the time.
 
I've got kinda lost in the post as to what issues are outstanding........


I am also trying to render images based on a path stored in a table.

I believe we are both looking for plugin with an "Eval" section that will accept PHP code to render an image. That code could then be set up to query and produce the desired image path from a table record.


I'm assuming you already have a table with various image paths and you need to query where these locations are?

Pretty sure you could use the calc plugin to do this.
 
I'm assuming you already have a table with various image paths and you need to query where these locations are?

Pretty sure you could use the calc plugin to do this.

Yes. I tried using the calc element but couldn't get it to work so I assumed it wasn't meant for that task. Perhaps the error was in my code but I even tried to just render a static path. The following statement should work, correct? Perhaps there is an error in the syntax?

Code:
return <img src="http://localhost/joomla/images/drills/Circle_BTgpk.jpg"/>;
Thank you for the tip, I will give it another try based on your recommendation.
 
Try this, you need to surround in quotes as well

HTML:
return  "<img src='http://localhost/joomla/images/drills/Circle_BTgpk.jpg'>";

.
 
No luck with the calc element; that statement just displays the text:

<img src='http://localhost/joomla/images/drills/Circle_BTgpk.jpg'>

in the calculation field. I tried all sorts of different ' or " syntax combinations but those wouldn't output anything at all.
 
Just the text when editing a form and details display.

It did render in the table view however.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top