зайди в engine/inc/adnews.php
Ишем...
if( trim( $title ) == "" or ! $title ) {
msg( "error", $lang['addnews_error'], $lang['addnews_ertitle'], "javascript:history.go(-1)" );
}
if( trim( $short_story ) == "" or ! $short_story ) {
msg( "error", $lang['addnews_error'], $lang['addnews_erstory'], "javascript:history.go(-1)" );
}
if( strlen( $title ) > 255 ) {
msg( "error", $lang['addnews_error'], $lang['addnews_error'], "javascript:history.go(-1)" );
}
Внизу поставь...
$xfieldsid = $added_time;
$xfieldsaction = "init";
include (ENGINE_DIR . '/inc/xfields.php');
$filecontents = array ();
if( $config['safe_xfield'] ) {
$parse->ParseFilter();
$parse->safe_mode = true;
}
if( ! empty( $postedxfields ) ) {
foreach ( $postedxfields as $xfielddataname => $xfielddatavalue ) {
if( $xfielddatavalue == "" ) {
continue;
}
$xfielddatavalue = $db->safesql( $parse->BB_Parse( $parse->process( $xfielddatavalue ), false ) );
$xfielddataname = $db->safesql( $xfielddataname );
$xfielddataname = str_replace( "|", "|", $xfielddataname );
$xfielddataname = str_replace( "\r\n", "__NEWL__", $xfielddataname );
$xfielddatavalue = str_replace( "|", "|", $xfielddatavalue );
$xfielddatavalue = str_replace( "\r\n", "__NEWL__", $xfielddatavalue );
$filecontents[] = "$xfielddataname|$xfielddatavalue";
}