We are currently working on our servers, so there may be outages on the domains.Zurzeit wird an unseren Servern gearbeitet, deshalb kann es zu Ausfällen bei den Domains kommen.
<?php ob_start(); // start output buffer global $database; $query = "SELECT post_id,title,content_short,group_id,link FROM ".TABLE_PREFIX."mod_news_posts ORDER BY position DESC LIMIT 0,3"; $error = mysql_error(); if (!$result = mysql_query($query)) { print "$error"; exit; } while($data = mysql_fetch_object($result)){ $title = $data->title; $id = $data->post_id; $link = $data->link; $short = $data->content_short; echo '<p><a href="'.WB_URL.'/pages/'.$link.PAGE_EXTENSION.'">'.$title.'</a><br />'.$short.'</p>'; } $foo=ob_get_contents(); // put outputbuffer in $foo ob_end_clean(); // clear outputbuffer if ($foo<>"") { // some code to execute cause there is some block echo '<h1>Latest News</h1>'; echo $foo; } else { // some code for no info echo '<h1>No New News</h1>'; } ?>
<?php display_news_items(0, 5, 50, 2, 'The latest news', 'show full news text', 'uups, no news available', true, '<a><img>', true, ' (h:i, d.m.Y)', 1, 1); ?>