Great Hack PPN, i luv it but i had the "Show most popular thread" in a table and my most popular thread has a very long title, more then 40 characters so i reduced it 2 25. If someone is interested, here it is:
root/index.php
find:
PHP Code:
$popular=$DB_site->query_first("SELECT * FROM thread ORDER by replycount DESC LIMIT 1");
Under that add:
PHP Code:
if (strlen($popular[title]) > 25) {
$title = substr($popular[title],0,25);
$title .= "...";
} else {
$title = $popular[title];
}
Then find in popular_thread thread:
PHP Code:
Most popular thread is <a href="showthread.php?s=$session[sessionhash]&threadid=$popular[threadid]">$popular[title]</a>
and change it to:
PHP Code:
Most popular thread is <a href="showthread.php?s=$session[sessionhash]&threadid=$popular[threadid]">$title</a>
Now with this there will be 25 characters displayed of the Most Popular thread, ofcourse you can change that to your size.