More characters in topictitel

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Get Involved
Locked
DaannO
Registered User
Posts: 86
Joined: Mon Sep 17, 2007 11:24 am

More characters in topictitel

Post by DaannO » Thu Jun 12, 2008 8:17 pm

Hi,

Phpbb3 has limited the amount of letters/characters you can use in the titel of a post or topic. Can any one make a mod so that it can be extend by a setting you wish. Or is there some where a way to change it in the code maybe?

DaannO
Registered User
Posts: 86
Joined: Mon Sep 17, 2007 11:24 am

Re: More characters in topictitel

Post by DaannO » Sat Jun 14, 2008 2:25 pm

Not possible right..

DaannO
Registered User
Posts: 86
Joined: Mon Sep 17, 2007 11:24 am

Re: More characters in topictitel

Post by DaannO » Wed Jun 18, 2008 8:59 pm

Still holding on..

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: More characters in topictitel

Post by igorw » Wed Jun 18, 2008 9:25 pm

Hi,

that would have to be changed in the database. If you have phpMyAdmin, you can edit the fields in the phpbb_posts and phpbb_topics tables, but make sure you backup your database first in case you mess something up. ;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

DaannO
Registered User
Posts: 86
Joined: Mon Sep 17, 2007 11:24 am

Re: More characters in topictitel

Post by DaannO » Wed Jun 18, 2008 9:40 pm

Which do i need to edit?

post_subject from 100 to xxx
topic_title from 100 to xxxx?

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: More characters in topictitel

Post by igorw » Wed Jun 18, 2008 9:41 pm

I believe that's all that's needed, yes. It's possible that it is cut off somewhere in PHP though.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

DaannO
Registered User
Posts: 86
Joined: Mon Sep 17, 2007 11:24 am

Re: More characters in topictitel

Post by DaannO » Wed Jun 18, 2008 9:44 pm

I think so because the max is set at 60 and in the tables its 100 :X

mr.beery
Registered User
Posts: 51
Joined: Fri Oct 28, 2005 1:30 pm
Location: Bangkok , Thailand
Contact:

Re: More characters in topictitel

Post by mr.beery » Thu Jun 19, 2008 7:03 am

includes/Function_posting.php

Code: Select all

find 
$subject = truncate_string($subject

editto $subject = truncate_string($subject, 120);

	// First of all make sure the subject and topic title are having the correct length.
	// To achieve this without cutting off between special chars we convert to an array and then count the elements.
	$subject = truncate_string($subject, 120);

styles>prosilver>template>posting_editor.html

Code: Select all

fine
	<!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
	<dl style="clear: left;">
		<dt><label for="subject">{L_SUBJECT}:</label></dt>
		<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>


change 60 to 120 , 64 to 120

Locked

Return to “[3.0.x] MOD Requests”