yurazzz
Full Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору theIggs пасибо за хак... ага все заработало... Насчет того, что надо доработать - верно, там еще надо поменять поля input, чтобы они разрешали ввод такого количества символов: вот мой вариант, доделаный немного (там 100 символов названия, кому надо больше - впишите другое число везде где в коде"100" вплоть до 255): Код: # Increase maximum topic title to 255 character # #By ghost2k (true_colour2000@yahoo.com) #ICQ: 171283389 # IBF version: 1.1.x and maybe for all version # #Description: topic title limit by default 50 (64) character & this little hack # increase topic title to 255 character. # # File to edit : 2 files # sources\lib\ post_new_post.php # lang\en\lang_post.php # # database edit : 2 table # # Pls backup your file and database before hack ############################################## # # Enjoy ! ############################################## run with phpmyadmin OR ACP ALTER TABLE `ibf_topics` CHANGE `title` `title` VARCHAR( 100 ) NOT NULL; ALTER TABLE `ibf_topics` CHANGE `description` `description` VARCHAR( 100 ) DEFAULT NULL; потом REPAIR TABLE `ibf_admin_logs` , `ibf_admin_sessions` , `ibf_attachments` , `ibf_badwords` , `ibf_calendar_events` , `ibf_categories` , `ibf_contacts` , `ibf_css` , `ibf_emoticons` , `ibf_faq` , `ibf_forum_tracker` , `ibf_forums` , `ibf_groups` , `ibf_languages` , `ibf_macro` , `ibf_macro_name` , `ibf_member_extra` , `ibf_members` , `ibf_messages` , `ibf_moderator_logs` , `ibf_moderators` , `ibf_pfields_content` , `ibf_pfields_data` , `ibf_polls` , `ibf_posts` , `ibf_reg_antispam` , `ibf_rules` , `ibf_search_results` , `ibf_sessions` , `ibf_skin_templates` , `ibf_skins` , `ibf_stats` , `ibf_templates` , `ibf_titles` , `ibf_tmpl_names` , `ibf_topics` , `ibf_tracker` , `ibf_voters` ; у меня без починки таблиц ничего не работало, а так все ОК Remember change prefix if you don't use " ibf_ " =========================== # Edit file below: ## # #OPEN: # sources\lib\ post_new_post.php # #FIND: line 84 # if ( strlen($HTTP_POST_VARS['TopicTitle']) > 64 ) # #REPLACE with # if ( strlen($HTTP_POST_VARS['TopicTitle']) > 100 ) # # SAVE AND CLOSE FILE # # #OPEN : # lang\en\lang_post.php # #FIND # topic_title_long => "Topic titles cannot be longer than 100 characters", # #FIND IN_LINE # 50 # #AND REPLACE with # 100 # #SAVE AND CLOSE FILE # ---------------- открыть skin/s*/ skin_post.php найти функцию topictitle_fields($data) строка примерно 750 заменить всю функцию на: function topictitle_fields($data) { global $ibforums; return <<<EOF <tr> <td class="postfoot" colspan="2">{$ibforums->lang['tt_topic_settings']}</td> </tr> <tr> <td class='row1'>{$ibforums->lang['topic_title']}</td> <td class='row1' width="100%" valign="top"><input type='text' size='64' maxlength='100' name='TopicTitle' value='{$data[TITLE]}' tabindex='1' class='forminput'></td> </tr> <tr> <td class='row1'>{$ibforums->lang['topic_desc']}</td> <td class='row1' width="100%" valign="top"><input type='text' size='64' maxlength='100' name='TopicDesc' value='{$data[DESC]}' tabindex='2' class='forminput'></td> </tr> EOF; } ------------------------------------------ You can replace 255 character with whatever you want : 100,150,.... You've done , enjoy with your topic title ! |
|