Not ImplementedThe page you are looking for cannot be displayed because a header value in the request does not match certain configuration settings on the Web server.
on an old webpage
I've used news anywhere several times, but I need to use it for a specific layout which includes the "published date", "news title" and "display name". Can someone please help me?... I've spent most of the past few days trying to make it work. I did find the post showing how to add the date, and was able to change it to show the published date, but when I add multiple news items, the dates don't display correctly.Here's an example of what I'm looking for: 02.12.2008 - Name of Article - Author's Display Name 02.11.2008 - News Title Here - Author's Display Name
if ($data['posted_when'] != "") {$output .= "<div class=\"any-date\">".date("M d, Y",$data['posted_when'])."</div>\n";
but its still bugging me that the "line" under the text is overlapping if i have a picture in the small text.... the line "jumbs around"..... and it doesn´t look nice.... and the only solution i can figure out it so "enter" until it looks nice, but thats not a very smart solution... so i have tried to change it, but no luck, so if anyone has a solution, please post it here!!
I made very rough code, that makes a listing of a specific group(id)With the option of setting a "max results", and order them by date added. etc..Just read the code, play with it. Refine it, restyle it. Have fun..Code: [Select]<!-- NEWS READER --><?php$group = 0; // Specify the Group(id) you want to read the news fromglobal $database;$query = "SELECT post_id,title,group_id,link FROM ".TABLE_PREFIX."mod_news_posts WHERE group_id = $group ORDER BY posted_when DESC LIMIT 0, 5;"; // This limits the results to max 5, 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$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; ?> <p> <a href="<?php echo WB_URL; ?><?php echo $link ?><?php echo PAGE_EXTENSION; ?>"><?php echo $title; ?></a> </p> <?php }?><!-- END NEWS READER -->
<!-- NEWS READER --><?php$group = 0; // Specify the Group(id) you want to read the news fromglobal $database;$query = "SELECT post_id,title,group_id,link FROM ".TABLE_PREFIX."mod_news_posts WHERE group_id = $group ORDER BY posted_when DESC LIMIT 0, 5;"; // This limits the results to max 5, 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$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; ?> <p> <a href="<?php echo WB_URL; ?><?php echo $link ?><?php echo PAGE_EXTENSION; ?>"><?php echo $title; ?></a> </p> <?php }?><!-- END NEWS READER -->
Hallo,I have installed the new wb 2.7.with the new news module i can put an start date an end dat to the news.the problem is that anynews wil show it anyway. Is there a way to fix this?
// query to obtain news items for the selected groupif ($group_id < 1) {$query = "SELECT * FROM " .TABLE_PREFIX ."mod_news_posts WHERE active=1 ORDER BY position DESC LIMIT 0, $max_news_items;";} else {$query = "SELECT * FROM " .TABLE_PREFIX ."mod_news_posts WHERE group_id=$group_id AND active=1 ORDER BY position DESC LIMIT 0, $max_news_items;";}
// query to obtain news items for the selected group$t = time();if ($group_id < 1) {$query = "SELECT * FROM " .TABLE_PREFIX ."mod_news_posts WHERE active=1 AND (published_when = '0' OR published_when <= $t) AND (published_until = 0 OR published_until >= $t) ORDER BY position DESC LIMIT 0, $max_news_items;";} else {$query = "SELECT * FROM " .TABLE_PREFIX ."mod_news_posts WHERE group_id=$group_id AND active=1 AND (published_when = '0' OR published_when <= $t) AND (published_until = 0 OR published_until >= $t) ORDER BY position DESC LIMIT 0, $max_news_items;";}
Hi,How can I remove the 'read more' function if there is no long text placed?I checked the doc and the forum but could not find a solution.GrtzKnert
http://local...%3c/p%3E%3Cp%3E%3Ca%20href=