Changeset 44 for dev/common/comments.php

Show
Ignore:
Timestamp:
11/01/06 23:56:02 (16 years ago)
Author:
exi
Message:

Changed Synchronization to use http-request class
Changed portrait generation to use http class and fixed some issues there aswell
Ordered Killist on alliance losses / explicit cast to int from URI
Added date support to comments (autoupgrading, just save your settings once again)
Added a combined view to campaigns so you can filter kills and losses for each shipclass on one page
Cast corpid to int from URI
Changed DB, define DB_HALTONERROR in your config to stop page generation on error.
Set minor version to svn revision
Adding base alliance logos as stated on  http://www.eve-dev.net/forums/viewtopic.php?t=35 Thanks to DarkXeRoX for those.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/comments.php

    r41 r44  
    5656 
    5757$qry = new DBQuery(); 
    58 $qry->execute("SELECT id, name, comment FROM kb3_comments WHERE `kll_id` = $kll_id"); 
     58$qry->execute("SELECT * FROM kb3_comments WHERE `kll_id` = $kll_id"); 
    5959if ($qry->recordCount() == 0) 
    6060{ 
     
    6868        $name = $data['name']; 
    6969        $comment = $data['comment']; 
    70         $html .= "<div class=\"comment-text\"><a href=\"?a=search&searchtype=pilot&searchphrase=".$name."\">".$name."</a>:<p>".$comment."</p>"; 
     70        $html .= "\n<div class=\"comment-text\" style=\"position: relative;\"><a href=\"?a=search&searchtype=pilot&searchphrase=".$name."\">".$name."</a>:"; 
     71        if ($data['posttime'] && $data['posttime'] != '0000-00-00 00:00:00') 
     72        { 
     73            $html .= '<span style="position:absolute; right: 0px;">'.$data['posttime'].'</span>'; 
     74        } 
     75        $html .= "<p>".$comment."</p>"; 
    7176        if ($page->isAdmin()) 
    7277        { 
    7378            $html .= "<a href=\"javascript:openWindow('?a=comments_delete&c_id=".$data['id']."', null, 480, 350, '' );\">Delete Comment</a>"; 
    7479        } 
    75         $html .= "</div><br/>"; 
     80        $html .= "</div>"; 
    7681    } 
    7782}