Last Comment For Article » DataLife Engine Support

DLEVIET - DataLife Engine Support Home Page

DataLife Engine Support » DataLife Engine » Edit Code » Last Comment For Article

Last Comment For Article

  • Author: admin;  
  • Views: 1074;  
  • Date: 26 April 2009;  
Last Comment For Article

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","");


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]', ''); }
We encourage you to Register or Login to website under your name.
Information
Members of Guest cannot leave comments.

Pagerank Update

    Updates Yandex SEO
    13.04.2012
    16.02.2012
    04.02.2012
    Updates Yandex search
    17.05.2012
    15.05.2012
    12.05.2012
    Updates Yandex Catalogue
    18.05.2012
    16.05.2012
    11.05.2012
    Updates Google
    03.05.2012
    06.02.2012
    08.11.2011

Find us on Facebook

Poll

How do you know DataLife Engine Support?

Search Engine
Other DLE Support websites
Forum
Friends
Others

Sponsor

Calendar

«    May 2012    »
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Contact us in social network

Facebook

Twitter