"; while($data = dbarray($tickerquery)) { $data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1")); $ticker_content .= "".trimlink($data['thread_subject'], 30)." "; if($ticker_author+$ticker_date+$ticker_comments+$ticker_reads != "0" ) { $ticker_content .= "["; $reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'"); $data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1")); $rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : ""); if($ticker_comments == "1") { $ticker_content .= ($reply_count - 1). " " .$locale['033']; if($ticker_reads != "0"){ $ticker_content .= " | "; } } if($ticker_reads == "1") { $ticker_content .= $data['thread_views'] .$locale['044']; $ticker_content .= " | "; } if($ticker_author == "1") { $ticker_content .= $locale['034']. " dodał ".$data['user_name'].""; if($ticker_date+$ticker_comments+$ticker_reads != "0"){ $ticker_content .= " | "; } } if($ticker_date == "1") { $ticker_content .= showdate("shortdate", $data['thread_lastpost']); if($ticker_comments+$ticker_reads != "0"){ } } $ticker_content .= "]"; } $ticker_content .= " | "; } $ticker_content .= ""; echo $ticker_content; @closetable(); ?>