Got the post icon issue resolved, for anyone else who is having problems, here is the fix.
Find:
PHP Code:
$iforumperms = 'AND forumid=' . implode(' OR forumid=', $iforumperms)
Change to:
PHP Code:
$iforumperms = 'AND thread.forumid=' . implode(' OR thread.forumid=', $iforumperms);
Find:
PHP Code:
$threads=$DB_site->query("SELECT threadid,title,replycount,postusername,postuserid,dateline,views".iif($showthreadicon, ',thread.iconid','')."
FROM thread WHERE open='1' AND open<>10 $iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads");
Change to:
PHP Code:
$threads=$DB_site->query("SELECT thread.threadid as threadid,thread.title as title,thread.replycount
as replycount,thread.postusername as postusername,thread.postuserid as
postuserid,thread.dateline as dateline,thread.views
as views,".iif($showthreadicon,'thread.iconid as iconid,icon.title as icontitle,icon.iconpath as iconpath','')." FROM thread ".iif
($showthreadicon,'LEFT JOIN icon ON icon.iconid=thread.iconid','')."
WHERE open='1' AND open<>10 $iforumperms GROUP BY
thread.threadid ORDER BY lastpost DESC LIMIT $maxlatethreads");
Find:
PHP Code:
$thread['icon'] = '<img src="https://vborg.vbsupport.ru/vbimages/icons/icon' . $thread['iconid'] . '.gif" border="0" align="absmiddle" alt="">';
Change to:
PHP Code:
$thread['icon'] = '<img src="'.$thread['iconpath'].'" border="0" align="absmiddle" alt="">';
That's it.
Regards,
Liz.