To fix thread icon problem in the news :
In portal . php, find :
PHP Code:
$haberal = $db->query_read("
SELECT thread.threadid, post.title, thread.replycount, postusername, ".
"postuserid, thread.dateline AS postdateline, thread.lastpostid, thread.lastposter, ".
"thread.lastpost, IF(views<=thread.replycount, thread.replycount+1, views) AS views, ".
"thread.forumid, post.postid, pagetext, allowsmilie FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid)
WHERE thread.visible = 1 $iptalforum_query ORDER BY thread.dateline DESC LIMIT 0,$news_limit");
Replace by :
PHP Code:
$haberal = $db->query_read("
SELECT thread.threadid, post.title, thread.replycount, postusername, ".
"postuserid, thread.dateline AS postdateline, thread.lastpostid, thread.lastposter, ".
"icon.title AS icontitle, icon.iconpath, ".
"thread.lastpost, IF(views<=thread.replycount, thread.replycount+1, views) AS views, ".
"thread.forumid, post.postid, pagetext, allowsmilie FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = post.iconid)
WHERE thread.visible = 1 $iptalforum_query ORDER BY thread.dateline DESC LIMIT 0,$news_limit");
In the XML , find :
HTML Code:
<a href="$vboptions[bburl]/showthread.php?t=$haberbitno">$haber[title]</a></td>
Replace by :
HTML Code:
<if condition="$vboptions[osportal_news_icon]"><img class="inlineimg" src="$haber[iconpath]" alt="$haber[icontitle]" border="0" /> </if><a href="$vboptions[bburl]/showthread.php?t=$haberbitno">$haber[title]</a></td>