Hi,I wonder if it is possible to send the results to user uddeIM inbox? ๐
Thanks.
Thanks.
// Check day of the week
echo 'date("w"): '.print_r(date("w"), true ).'</div>';
around line 250-260 and remove it.however {/chronocontact} tag is a blank page while debug off
I try with the uddeIM for few hours but no luck.
are you sure you have the same version of the component, the module and the mambot/plugin of Chronoforms ?
I suggest that you open your database and check the tables of uddeIM and see which table holds the inbox messages and write few PHP code lines to inject the data into this table, Chronoforms DB connection may help you but you should add the correct fields names to your form or to the onsubmit field!
<?php
$database = uddeIMgetDatabase();
$user =& JFactory::getUser();
$fromid = $user->fromid;
$toid = webmaster->toid;
$themode = 2;
$thepass=$pass;
if (!$thepass) { // no password entered, then fallback to obfuscating
$themode = 1;
$thepass= cryptkey; }
$cm = uddeIMencrypt($message,$thepass,CRYPT_MODE_BASE64);
$sql="
INSERT
INTO #__uddeim
SET fromid = '(int)$fromid',
toid = '(int)$toid',
replyid = '(int)$replyid',
message = '$cm',
datum = '$date',
cryptmode = '$themode',
crypthash = 'md5($thepass)';"
$database->setQuery($sql);
if (!$database->query()) {
die("SQL error when attempting to save a message" . $database->stderr(true));
}
$insID = $database->insertid();
return $insID;
}
?>
$toid = webmaster->toid;
Other than that you'll need to either change the $database line or include the uddeIM database object here. Try replacing $database = uddeIMgetDatabase();
with $database =&JFactory::getDBO();