Хотель добавить, что сами галки появились, но код не срабатывает.
posting.php пордедактировал еще
CODE: $PreviewData = '';
if ($fm->_String('preview') !== '') {
CheckPostSize('inpost');
$lockedit = ($fm->_Boolean($fm->input,'lockedit') === TRUE) ? TRUE:FALSE;
$modertext = $fm->_Boolean($fm->input, 'modertext');
$html = (defined('IS_ADMIN') &&($fm->user['status'] == 'sm') && $fm->_Boolean($fm->input,'html') === TRUE) ? TRUE:FALSE;
$PreviewText = $fm->bads_filter($fm->formatpost($fm->input['inpost'],$html));
$inpost = $fm->input['inpost'];
$mo_text = $fm->input['mo_text'];
include('./templates/'.DEF_SKIN.'/preview.tpl');
CODE: $topic[$post_id]['post'] = $fm->bads_filter(preg_replace( "#(\?|&|;|&)PHPSESSID=([0-9a-zA-Z]){32}#i", "", $fm->input['inpost']));
$topic[$post_id]['smiles'] = $fm->_Boolean($fm->input,'showsmiles');
$topic[$post_id]['html'] = (defined('IS_ADMIN') &&($fm->user['status'] == 'sm') && $fm->_Boolean($fm->input,'html') === TRUE) ? TRUE:FALSE;
$fm->_Write($fp_topic,$topic);
unset($topic);
$fm->_Message($fm->LANG['MessageEdit'],$fm->LANG['PostEditedOk'], 'topic.php?forum='.$forum_id.'&topic='.$topic_id.'&postid='.$post_id.'#'.$post_id);
а было
старый код (Отобразить)CODE: $PreviewData = '';
if ($fm->_String('preview') !== '') {
CheckPostSize('inpost');
$lockedit = ($fm->_Boolean($fm->input,'lockedit') === TRUE) ? TRUE:FALSE;
$modertext = $fm->_Boolean($fm->input, 'modertext');
$html = (defined('IS_ADMIN') && $fm->_Boolean($fm->input,'html') === TRUE) ?TRUE:FALSE;
$PreviewText = $fm->bads_filter($fm->formatpost($fm->input['inpost'],$html));
$inpost = $fm->input['inpost'];
$mo_text = $fm->input['mo_text'];
include('./templates/'.DEF_SKIN.'/preview.tpl');
CODE: $topic[$post_id]['post'] = $fm->bads_filter(preg_replace( "#(\?|&|;|&)PHPSESSID=([0-9a-zA-Z]){32}#i", "", $fm->input['inpost']));
$topic[$post_id]['smiles'] = $fm->_Boolean($fm->input,'showsmiles');
$topic[$post_id]['html'] = (defined('IS_ADMIN') && $fm->_Boolean($fm->input,'html') === TRUE) ? TRUE:FALSE;
$fm->_Write($fp_topic,$topic);
unset($topic);
$fm->_Message($fm->LANG['MessageEdit'],$fm->LANG['PostEditedOk'], 'topic.php?forum='.$forum_id.'&topic='.$topic_id.'&postid='.$post_id.'#'.$post_id);
не помогло(Отредактировано автором: 27 августа 2014 — 14:27) |