
03-08-2002, 06:59 PM
|
|
|
Join Date: Oct 2001
Location: Canada!
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
[QUOTE] Originally posted by FireFly
In functions.php, find:
Code:
$plusimg = "";
$minusimg = "";
}
and right after it add this:
Code:
if ($post[title]=='') {
$msgpos=strpos($post[pagetext],"\n");
if ($msgpos>50 or $msgpos<2 or $msgpos===false)
$msgpos=50;
$post[shortmsg]=substr($post[pagetext],0,$msgpos)." [...]";
}
You can reset 50 to your own number of first N chars to show.
It will show first line if it's shorter than 50 chars, or the first 50 chars in the line.
After you do this, place $post[shortmsg] in the posbit template.
|