Bugfixes and extending things

This commit is contained in:
genuineparts 2025-06-19 17:16:19 +02:00
parent fd22e35e04
commit 425350d402
7 changed files with 222 additions and 31 deletions

View file

@ -13,6 +13,7 @@ class plugins_mybbnews{
function newsview(){
global $db, $config;
date_default_timezone_set($config['timezone']);
$this->tpl= new Smarty();
$parser=new textparser(true);
$root = $_SERVER['DOCUMENT_ROOT'] . $config["path"];
@ -33,7 +34,7 @@ class plugins_mybbnews{
$row["year"]=date("Y",$row["dateline"]);
$row["month"]=date("M",$row["dateline"]);
$row["day"]=date("d",$row["dateline"]);
$row["time"]=date("h:i",$row["dateline"]);
$row["time"]=date("H:i",$row["dateline"]);
$row["date"]=date("d.m.Y",$row["dateline"]);
$row["text"]=$parser->parse(nl2br($row["message"]));
$row["title"]=$parser->parse(nl2br($row["subject"]));