$subject = truncate_string($subject);
$data['topic_title'] = truncate_string($data['topic_title']);
function truncate_string($string, $max_length = 60, $allow_reply = true, $append = '')
#
#------- [SQL] -----------
#
ALTER TABLE `phpbb_posts` CHANGE `post_subject` `post_subject` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `phpbb_topics` CHANGE `topic_title` `topic_title` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
#
#------- [OPEN] -----------
#
includes\functions_posting.php
#
#------- [FIND] -----------
#
$subject = truncate_string($subject);
$data['topic_title'] = truncate_string($data['topic_title']);
#
#------- [REPLACE WITH] -----------
#
$subject = truncate_string($subject, 120);
$data['topic_title'] = truncate_string($data['topic_title'], 120);
#
#------- [OPEN] -----------
#
styles\prosilver\template\mcp_topic.html
#
#------- [FIND] -----------
#
<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SPLIT_SUBJECT}" title="Type the post subject" class="inputbox" /></dd>
#
#------- [REPLACE WITH] -----------
#
<dd><input type="text" name="subject" id="subject" size="60" maxlength="128" tabindex="2" value="{SPLIT_SUBJECT}" title="Type the post subject" class="inputbox" /></dd>
#
#------- [OPEN] -----------
#
styles\subsilver2\template\posting_body.html
#
#------- [FIND] -----------
#
<input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" />
#
#------- [REPLACE WITH] -----------
#
<input class="post" style="width:450px" type="text" name="subject" size="60" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->128<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" />
#
#------- [OPEN] -----------
#
styles\subsilver2\template\mcp_topic.html
#
#------- [FIND] -----------
#
<input class="post" style="width: 350px" type="text" size="35" maxlength="64" name="subject" value="{SPLIT_SUBJECT}" />
#
#------- [REPLACE WITH] -----------
#
<input class="post" style="width: 350px" type="text" size="45" maxlength="128" name="subject" value="{SPLIT_SUBJECT}" />

ALTER TABLE phpbb3_forums CHANGE `forum_last_post_subject` `forum_last_post_subject` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;Общая ошибка
SQL ERROR [ mysql4 ]
Data too long for column 'forum_last_post_subject' at row 1 [1406]
ALTER TABLE phpbb3_forums MODIFY `forum_last_post_subject` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL; #
#------- [SQL] -----------
#
ALTER TABLE `phpbb_posts` MODIFY `post_subject` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `phpbb_topics` MODIFY `topic_title` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `phpbb_forums` MODIFY `forum_last_post_subject` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
#
#------- [OPEN] -----------
#
includes\functions_posting.php
#
#------- [FIND] -----------
#
$subject = truncate_string($subject);
$data['topic_title'] = truncate_string($data['topic_title']);
#
#------- [REPLACE WITH] -----------
#
$subject = truncate_string($subject, 120);
$data['topic_title'] = truncate_string($data['topic_title'], 120);
#
#------- [OPEN] -----------
#
styles\prosilver\template\mcp_topic.html
#
#------- [FIND] -----------
#
<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SPLIT_SUBJECT}" title="Type the post subject" class="inputbox" /></dd>
#
#------- [REPLACE WITH] -----------
#
<dd><input type="text" name="subject" id="subject" size="60" maxlength="128" tabindex="2" value="{SPLIT_SUBJECT}" title="Type the post subject" class="inputbox" /></dd>
#
#------- [OPEN] -----------
#
styles\subsilver2\template\posting_body.html
#
#------- [FIND] -----------
#
<input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" />
#
#------- [REPLACE WITH] -----------
#
<input class="post" style="width:450px" type="text" name="subject" size="60" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->128<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" />
#
#------- [OPEN] -----------
#
styles\subsilver2\template\mcp_topic.html
#
#------- [FIND] -----------
#
<input class="post" style="width: 350px" type="text" size="35" maxlength="64" name="subject" value="{SPLIT_SUBJECT}" />
#
#------- [REPLACE WITH] -----------
#
<input class="post" style="width: 350px" type="text" size="45" maxlength="128" name="subject" value="{SPLIT_SUBJECT}" />
#
#------- [OPEN] -----------
#
styles\prosilver\template\posting_editor.html
#
#------- [FIND] -----------
#
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
#
#------- [REPLACE WITH] -----------
#
<dd><input type="text" name="subject" id="subject" size="60" maxlength="<!-- IF S_NEW_MESSAGE -->124<!-- ELSE -->128<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>

function truncate_string($string, $max_length = 60, $max_store_length = 255, $allow_reply = true, $append = '')Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0