miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Expanding Maximum of Super Title's Number of Characters

Author Anonymous
Guest
#1 | Posted: 19 Aug 2007 10:23 
When I write a super title and describe it, the description is cut off after certain number of characters. I would like to have at least 100 characters. Is it possible?

I don't want to use description at forum level. why? I am running different categories for different games. Except for the name of game. all other details repeat. so I want to put the details in Super Title description.

This is what I do:
Super Title <br/> <font size="1"> Super tttle description goes here and Super tttle description goes here and Super tttle description goes here and Super tttle description goes here and Super tttle description goes here.</font>
Forum One
Forum Two
Forum Three

Thanks.

Author Paul
Lead Developer
#2 | Posted: 20 Aug 2007 04:26 | Edited by: Paul 
By default super title is stored in database with the maximum of 150 characters. You need to be sure that you have set the proper encoding for your forums, so each 1 symbol stored takes 1 byte in database. When the improper encoding is set, it could happen that some of the specific characters will be saved in special HTML symbols format. For example, russian symbol 'a' if the encoding iso-8859-1 is set, will be saved as & #1072; and that way will take 7 bytes in database.

If you would like to set larger amount of characters for that field, you will need to set it up in database as 'text' type. With the following command for example:

alter table minibbtable_forums change forum_group forum_group text not null default '';

Then also modify the following templates:

templates/admin_addforum1.html
templates/admin_editforum2.html

where instead of

<input type="text" name="forum_group" value="{$forum_group}" size="25" maxlength="150" class="textForm" style="width:250px;" />

specify TEXTAREA for this field, like

<textarea name="forum_group" style="width:450px;height:300px" class="textForm">{$forum_group}</textarea>

Author Anonymous
Guest
#3 | Posted: 20 Aug 2007 05:48 
Thanks. It works now.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Expanding Maximum of Super Title's Number of Characters Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB