Hello,
Last thing that i know from this chronoconnectivity was not able to edit image or file, and we had to use some javascript to make it right. Is there any news from new release about this? or can someone help me with this little javascript to edit image in my edit form using chronoconnectivity since i haven't found one in this forum. please help.
thanks alot🙂.
Hi arried,
edit image or file ? you mean there is some image or file uploaded and you want to show a file upload field to over write the existing data ?? give me more info plz
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
yes... overwrite the existing image.
it would be nice if chronoconnectivity can do this.
thx
alright, now i am using chronocontact to edit the records. I am copying a submit form and added an update sql in header when submitting form. but the problem is image won't upload, but shows in database.
i've got no error in debug:
* Form passed first SPAM check OK
* Form passed the submissions limit (if enabled) OK
* Form passed the Image verification (if enabled) OK
* Form passed the server side validation (if enabled) OK
* 20090702055858_130912_whi_xlg.jpg has been uploaded OK
* Form passed the plugins step (if enabled) OK
* Debug End
$_FILES array: Array ( [photo] => Array ( [name] => 130912_whi_xlg.jpg [type] => image/jpeg [tmp_name] => /tmp/phpT4Iyb3 [error] => 0 [size] => 38796 ) )
would you help me with this one.
<?php
$messages = JRequest::getVar('messages');
$url = JRequest::getVar('cf_id');
if($messages){
$sql = "UPDATE #__chronoforms_my_data SET name='$name',email='$email',position='$position', bithdate='$birthdate', description='$description' WHERE cf_id='$url' ";
?>
<div style="display:block; background:#ff0000;text-transform:capitalize; color:#ffffff; font-weight:bold; font-size:120%; padding:5px 5px 5px 35px; margin-bottom:15px;"> Data Edited</div>
<?php
}else {" ";}
?>
<?php
global $database;
$database->setQuery( "SELECT * FROM #__chronoforms_my_data WHERE cf_id='$url' ;" );
$rows = $database->loadObjectList();
foreach($rows as $row) {
?>
=and the form parts goes here================
thanks alot