
Last Comment For Article
Install
1. Open file engine/modules/show.short.php
Find
    if ($row['allow_comm']) {
        $tpl->set('[com-link]',"<a {$go_page}href=\"".$full_link."#comment\">");
        $tpl->set('[/com-link]',"</a>");
    } else $tpl->set_block("'\\[com-link\\](.*?)\\[/com-link\\]'si","");
        $tpl->set('[com-link]',"<a {$go_page}href=\"".$full_link."#comment\">");
        $tpl->set('[/com-link]',"</a>");
    } else $tpl->set_block("'\\[com-link\\](.*?)\\[/com-link\\]'si","");
Replace with
    $idnews = $row['id'];
    $db->query("SELECT autor, post_id FROM " . PREFIX . "_comments where post_id=$idnews");
    if ($row2 = $db->get_row()){
   Â
    if ($row['allow_comm']) {
        $tpl->set('[com-link]',"<a title=\"Last Comment By: ".$row2['autor']."\" {$go_page}href=\"".$full_link."#comment\">");
        $tpl->set('[/com-link]',"</a>");
    } else $tpl->set_block("'\\[com-link\\](.*?)\\[/com-link\\]'si","");
} else { $tpl->set('[com-link]', ''); $tpl->set('[/com-link]', ''); }
    $db->query("SELECT autor, post_id FROM " . PREFIX . "_comments where post_id=$idnews");
    if ($row2 = $db->get_row()){
   Â
    if ($row['allow_comm']) {
        $tpl->set('[com-link]',"<a title=\"Last Comment By: ".$row2['autor']."\" {$go_page}href=\"".$full_link."#comment\">");
        $tpl->set('[/com-link]',"</a>");
    } else $tpl->set_block("'\\[com-link\\](.*?)\\[/com-link\\]'si","");
} else { $tpl->set('[com-link]', ''); $tpl->set('[/com-link]', ''); }

Updates
Dle templates English


