Hi BerndJM
So it's fine! Thanks a lot!!
This is the code for anynews to show the day and the month: (change Line 98-136)
// output all new itmes found
$output = "";
if($number_news) {
while($data = $result->fetchRow()) {
// fill the variable $publ_date_d and $publ_date_m
$publ_date_d = date("d", $data['published_when']);
$publ_date_m = date("F", $data['published_when']);
// strip tags if specified
if($strip_tags) {
$data['title'] = strip_tags($data['title']);
$data['content_short'] = strip_tags($data['content_short']);
}
// shorten news text to defined news length (-1 for full text length)
if($max_news_length != -1 && strlen($data['content_short']) > $max_news_length) {
$data['content_short'] = substr($data['content_short'], 0, $max_news_length) ."...";
}
// output news items depending on choosen display mode
if($display_mode == 2) {
// OUTPUT NEWS ITEMS AS UNSORTED LIST
if ($data['title'] != "") {
$output .= "<li><a href=\"" .WB_URL.PAGES_DIRECTORY .$data['link'] .PAGE_EXTENSION ."\">" .$data['title'] ."</a></li>\n";
}
} else {
// OUTPUT NEWS ITEMS WITH NEWS TITLE, SHORT NEWS TEXT AND READ MORE LINK
if ($data['title'] != "") {
$output .= "<p><strong>" .$data['title'] ."</strong></p>\n";
}
if($max_news_length !== 0 ) {
$output .= "<p>" .$data['content_short'] ."</p>\n";
}
//$output = "<p>" .$publ_date ."<a href=\"" .WB_URL.PAGES_DIRECTORY .$data['link'] .PAGE_EXTENSION ."\">" .$readmore_text ."</a></p>\n";
$output .= "<p class=\"month\">" .$publ_date_m ."</p>";
$output .= "<p class=\"day\">" .$publ_date_d ."<a href=\"" . WB_URL.PAGES_DIRECTORY .$data['link'] .PAGE_EXTENSION ."\">" .$readmore_text ."</a></p>\n";
$output .= "<hr />\n";
}
}