I used Chronoform to create a form with file upload. The file upload is fine. I used chronoconnectivity to view and edit the form, however I need to show the image that was uploaded using the form i created.
I am a newbie, can anybody help me.
Thanks
I am a newbie, can anybody help me.
Thanks
Hi ronijoven,
If you have the image name in the database than you can call this up in ChronoConnectivity in the same way as any other value. You then need to turn this into a URL that will link to the image and use the url in an img tag.
Here's an example (this also sets s default photo if one hasn't been uploaded)
Bob
If you have the image name in the database than you can call this up in ChronoConnectivity in the same way as any other value. You then need to turn this into a URL that will link to the image and use the url in an img tag.
Here's an example (this also sets s default photo if one hasn't been uploaded)
<?php
$photo = $MyRow->photo;
if ( !$photo ) {
$photo = 'no_photo.gif';
}
$photo = JURI::Base().'components/com_chronocontact/uploads/form_name/'.$photo;
?>
. . .
<td class='picture'><img src='<?php echo $photo; ?>' /></td>
Bob
Hi Bob..
I put the code in my for but a get an error like this "Parse error: parse error in com_chronoconnectivity\libraries\connection.php(303) : eval()'d code on line 6"
Then i check my code and the line 6 is $photo = JURI::Base()'components/com_chronocontact/uploads/Ingreso_Personal/'.$photo;
i think that a changed the parameters, or am i wrong?
thank you
I put the code in my for but a get an error like this "Parse error: parse error in com_chronoconnectivity\libraries\connection.php(303) : eval()'d code on line 6"
Then i check my code and the line 6 is $photo = JURI::Base()'components/com_chronocontact/uploads/Ingreso_Personal/'.$photo;
i think that a changed the parameters, or am i wrong?
thank you
Hi remron,
There's a . missing in line 6 after JURI::base() - I went back and fixed my earlier post.
Bob
There's a . missing in line 6 after JURI::base() - I went back and fixed my earlier post.
Bob
Bob,
Thanks for the reply, I am new in chronoforms, and I am confused about the "MyRow->photo".
is the MyRow an lias of the recordset, is this built in literal to refer to the current table assigned in chronoform? Is there a code to set the MyRow that i need to include in the code? Please help me, thanks in advance.
Also is is possible to call the thumbnail creation function in virtuemart in chronoforms?
Regards
Roni
Thanks for the reply, I am new in chronoforms, and I am confused about the "MyRow->photo".
is the MyRow an lias of the recordset, is this built in literal to refer to the current table assigned in chronoform? Is there a code to set the MyRow that i need to include in the code? Please help me, thanks in advance.
Also is is possible to call the thumbnail creation function in virtuemart in chronoforms?
Regards
Roni
This topic is locked and no more replies can be posted.