5
there is a field in the database for date.
surely there must be a way to include this with the post.
Maybe edit submit_scrap.php??
I don't know what to add to make this work,
this is where I think the code could be added
$myts =& MyTextSanitizer::getInstance();
$scrapbook_uid = $_POST['uid'];
$scrap_text = $myts->displayTarea($_POST['text'],0,1,1,1,1);
$mainform = (!empty($_POST['mainform'])) ? 1 : 0;
$scrap = $scraps_factory->create();
$scrap->setVar('scrap_text',$scrap_text);
$scrap->setVar('scrap_from',$xoopsUser->getVar('uid'));
$scrap->setVar('scrap_to',$scrapbook_uid);
$scraps_factory->insert($scrap);
$extra_tags['X_OWNER_NAME'] = $xoopsUser->getUnameFromId($scrapbook_uid);
$extra_tags['X_OWNER_UID'] = $scrapbook_uid;
$notification_handler =& xoops_gethandler('notification');
$notification_handler->triggerEvent ("scrap", $xoopsUser->getVar('uid'), "new_scrap",$extra_tags);
if ($mainform==1){
redirect_header("scrapbook.php?uid=".$scrapbook_uid,1,_MD_YOGURT_SCRAP_SENT);
}else{
redirect_header("scrapbook.php?uid=".$xoopsUser->getVar('uid'),1,_MD_YOGURT_SCRAP_SENT);
}