WebsiteBaker 2.13.9 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<ul> <!-- NEWS READER --><?php$group = 3; // Specify the Group(id) you want to read the news fromglobal $database;$query = "SELECT *, DATE_FORMAT(FROM_UNIXTIME(posted_when), '%d/%m/%Y') AS datum_nlFROM ".TABLE_PREFIX."mod_news_postsWHERE group_id = $groupORDER BY post_idDESC LIMIT 0,3;"; // This limits the results to max 3, so if you want it to be 10, make it LIMIT 0, 10.// The first number defines the starting point, and the second the max/end of the results$content = mysql_query($query) or die (mysql_error() .'<BR>'. $query);while ($data = mysql_fetch_array($content)){ $id = $data[post_id]; $link = $data[link]; $query_comments = $database->query("SELECT title,comment,commented_when,commented_by FROM ".TABLE_PREFIX."mod_news_comments WHERE post_id = '".$id."'"); $comments_count=$query_comments->numRows();?><li><? echo $data[datum_nl]; ?>-<a href="<?php echo WB_URL.PAGES_DIRECTORY.$link.PAGE_EXTENSION;?>"><?php echo $data[title]; ?></a><br /><a class="nieuws" href="<?php echo WB_URL.PAGES_DIRECTORY.$link.PAGE_EXTENSION;?>">lees het volledige bericht</a></li><?php}?><!-- END NEWS READER -->