Thanks for your replies
---------
Boofo
What is the problem? If there were codes working with
the data base?
you make it too huge

aranoid:
As you can see, the code I have put is
PHP Code:
if(strlen($thread[title]) > $akbr){
$thread[title] = substr($thread[title],0,$small);
$thread[title] = "$thread[title] ...";
}
//end characters hack
you can change
$small
with
$akbr
With the numbers you want, and you brought a code from outside,
I don?t have a clue why!!
I have put it as the following
PHP Code:
//start characters hack
$akbr=$DB_site->query("SELECT value FROM setting WHERE settingid=300");
$small=$DB_site->query("SELECT value FROM setting WHERE settingid=301");
if(strlen($thread[title]) > $akbr){
$thread[title] = substr($thread[title],0,$small);
$thread[title] = "$thread[title] ...";
}
//end characters hack
with the extra stuff, so the user will be able to use it from the control panel
and it doesn't need the file to be uploaded every time the number changes