TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 141
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 71
  • Total: 71

Read more... bug

Started by Axel, December 17, 2005, 08:07:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Axel

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> &nbsp;&nbsp;' : '' , ' ' , $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

bloc

I will look into this. It may be some overlapping since articles and posts are treated a bit different when checking the size/length.

Axel


Axel


This website is proudly hosted on Crocweb Cloud Website Hosting.