
07-25-2011, 04:47 PM
|
|
|
Join Date: Apr 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Mooff
Ah i see, the issue seems to be my version of equalizing the preview text length (which i changed numerous times along the way). Thought it would work for everything since it does work with the german special characters ? ? ? and so on.
Anyways, quick and dirty fix would be removing the equalizing part (preview length then might differ depending on how many special characters are in there, but everything should look fine then)
again, untested
changes into
Code:
/*remove everything from the previewtext - html and bb. I do not want bold or colored text there. Cut to a decent length.*/
$article['pagetext'] = strip_bbcode($article['pagetext'], true, true, false, true, false);
$article['pagetext'] = strip_tags($article['pagetext']);
$article['previewtext'] = str_replace('<br />', '', $article['pagetext']);
$len = $description_length;
if ( strlen($article['previewtext']) > $len )
{
$article['previewtext'] = substr( $article['previewtext'] , 0 , strrpos( substr( $article['previewtext'], 0, $len), ' ' ));
}
|
Again..... works like a charm !!!
Ty a lot..
Now i'll sit here and wait you bring us the next version with attach working !!  D
A Stunning Job ! Gratz !
BTW ... Nominated !
Ty
|