TinyPortal
General => Chit chat => Topic started by: Axel on December 17, 2005, 08:07:13 PM
There is a bug on Read more... function.
In this row (row 68, TPortal.template.php) is been use $news['body'] variable to determinate if must be appear Read more... string or not.
<div ' , ($news['is_last']=='theme' || $news['is_last']==false) ? 'class="windowbg"' : '' , ' style="padding: 6px;">', ($context['TPortal']['frontpage_limit_len']>0 && strlen($news['body'])>$context['TPortal']['frontpage_limit_len']) ? '<a href="' .$news['href']. '">'.$txt['tp-readmore'].'</a> ' : '' , ' ' , $news['icon']!='noicon' ? '<img src="'.$settings['images_url'].'/TPmodify.gif" alt="*" /> '.$news['new_comment'].'( <a href="' .$news['href']. '">'.$news['replies'].' '.$txt['tp-comments'].'</a>)' : '' ,'</div>
But $news['body'] in already truncated string... infact if web print te value appear with "..."
In this way strlen($news['body'])>$context['TPortal']['frontpage_limit_len']) don't work fine...
i hope that I've been explained ;)
Sorry my bad English
I will look into this. It may be some overlapping since articles and posts are treated a bit different when checking the size/length.
Ok.
Im wating to you ;)
up...
whats new?