Хак lastpost - ограничение вывода символов
Если какой кот ученый введет длинное слово в названии темы, то на главной странице таблица разъедется до неузнаваемости
Фиксим.
Код: foreach $lastpost (@lastpost) { chomp $lastpost; ($inforum, $threadnumber, $topictitle, $startnumber) = split(/\|/,$lastpost); $lastpostname = substr($topictitle, 0, 25); } |
Код: else { $lastpost = qq~<img src="$imagesurl/images/lastpost.gif"> <a href="$threadprog?forum=$inforum&topic=$threadnumber&start=$startnumber">$topictitle</a>~; } |
$topictitle заменить на $lastpostname, т.е. вот так:
Код: else { $lastpost = qq~<img src="$imagesurl/images/lastpost.gif"> <a href="$threadprog?forum=$inforum&topic=$threadnumber&start=$startnumber">$lastpostname</a>~; } |
ps. все военные действия в ikonboard.cgi