6
After a bit more research i have found the best way. Editting submit.php:
Here is the store process:
$story = new NewsStory();
$story->setTitle($subject);
$story->setHometext($message);
$story->setUid($uid);
$story->setTopicId($topic_id);
$story->setHostname(xoops_getenv('REMOTE_ADDR'));
$story->setNohtml($nohtml_db);
$nosmiley = isset($nosmiley) ? intval($nosmiley) : 0;
$notifypub = isset($notifypub) ? intval($notifypub) : 0;
$story->setNosmiley($nosmiley);
$story->setNotifyPub($notifypub);
$story->setType('user');
if ( $xoopsModuleConfig['autoapprove'] == 1 ) {
$approve = 1;
$story->setApproved($approve);
$story->setPublished(time());
$story->setExpired(0);
$story->setTopicalign('R');
}
$result = $story->store();
Now the bit $story->setHometext($message);
can be changed to
$story->setBodytext($message);
then you can add
$story->setHometext(substr($message,0,30).'...');
(i haven't completely worked this out, will substr complain if the string is less than 30 chars? and this will still add the ... to messages less than 30 chars.