Авто-закрепление первого поста форума на верху как шапка:
Открываем файл newtopic.phpнаходим:
// first post auto pinned hack by rdn-team
// parent::$db->query("INSERT INTO " . DBNAME . "." . PREFIX . "_be_topic (id,id_parent,title,reply_count,view_count,autor_id,autor,post_date,last_reply_date,last_reply_info,rating,topic_fixed,topic_type,topic_private_user,topic_descr_site,topic_approve,topic_meta,vote_id) VALUES (NULL," . parent::$globalParam['id'] . ",'{$option['topicName']}',0,0," . parent::$member_id['user_id'] . ",'" . parent::$member_id['name'] . "'," . parent::$timeParameters['time'] . "," . parent::$timeParameters['time'] . ",0,0,0,{$option['topicType']},'{$option['topicIsPrivateUser']}','{$option['topicDescription']}',{$option['aprove']},'{$option['meta']}', {$option['poll']})") ;
Заменяем на:
// first post auto pinned hack by rdn-team
// parent::$db->query("INSERT INTO " . DBNAME . "." . PREFIX . "_be_topic (id,id_parent,title,reply_count,view_count,autor_id,autor,post_date,last_reply_date,last_reply_info,rating,topic_fixed,topic_type,topic_private_user,topic_descr_site,topic_approve,topic_meta,vote_id) VALUES (NULL," . parent::$globalParam['id'] . ",'{$option['topicName']}',0,0," . parent::$member_id['user_id'] . ",'" . parent::$member_id['name'] . "'," . parent::$timeParameters['time'] . "," . parent::$timeParameters['time'] . ",0,0,0,{$option['topicType']},'{$option['topicIsPrivateUser']}','{$option['topicDescription']}',{$option['aprove']},'{$option['meta']}', {$option['poll']})") ;
parent::$db->query("INSERT INTO " . DBNAME . "." . PREFIX . "_be_topic (id,id_parent,prefix,title,reply_count,view_count,autor_id,autor,post_date,last_reply_date,last_reply_info,rating,topic_fixed,topic_type,topic_private_user,topic_descr_site,topic_approve,topic_meta,vote_id,is_fixed_count) VALUES (NULL,'" . parent::$globalParam['id'] . "','{$option['prefix']}','{$option['topicName']}','0','0','" . parent::$member_id['user_id'] . "','" . parent::$member_id['name'] . "','" . parent::$timeParameters['time'] . "','" . parent::$timeParameters['time'] . "','0','0','0','{$option['topicType']}','{$option['topicIsPrivateUser']}','{$option['topicDescription']}','{$option['aprove']}','{$option['meta']}', '{$option['poll']}', '1')") ;
Там-же рядом, найти:
parent::$db->query("INSERT INTO " . DBNAME . "." . PREFIX . "_be_message (id,id_topic,autors_id,message_autor,message_autor_ip,message_date,message_text,message_approve,tree_id,attachment,user_thanks) VALUES (NULL,{$option['topicInsertId']}," . parent::$member_id['user_id'] . ",'" . parent::$member_id['name'] . "',{$option['ipUser']}," . parent::$timeParameters['time'] . ",'{$option['topicOneMessage']}',{$option['aprove']}," . parent::$globalParam['id'] . ",0,'')") ;
Заменить на:
parent::$db->query("INSERT INTO " . DBNAME . "." . PREFIX . "_be_message (id,id_topic,autors_id,message_autor,message_autor_ip,message_date,message_text,message_approve,tree_id,attachment,user_thanks,fixap_msg) VALUES (NULL,'{$option['topicInsertId']}','" . parent::$member_id['user_id'] . "','" . parent::$member_id['name'] . "','{$option['ipUser']}','" . parent::$timeParameters['time'] . "','{$option['topicOneMessage']}','{$option['aprove']}','" . parent::$globalParam['id'] . "','0','','1')") ;
Сообщение отредактировал 3 августа 2013 - 21:27