Du meinst die Zeitverstellungen?
Achso, ich bin gerade an Coden ein Newsausgabe, deswegen auch diese Thread.
Also ich möchte es folgendermaßen ausgeben,
Datum (Sonntag, 3 Juli 2005)
----- (News des Tages)
Uhrzeit | Link
Uhrzeit | Link
Uhrzeit | Link
Uhrzeit | Link
Uhrzeit | Link
Datum (Samstag, 2 Juli 2005)
----- (News des Tages)
Uhrzeit | Link
Uhrzeit | Link
Uhrzeit | Link
Uhrzeit | Link
Uhrzeit | Link
usw.
Das Script ist das hier, wie bekomme ich das hin, habe nicht so wirklich ideen, da ich noch Anfänger bin. Habe das Script Modifizirt war vorher nur ein script was die Titel als link ausgibt.
Kann man vielleicht ein helfen, wie man die Ausgabe macht?
PHP-Code:
<?php
/**
* @version $Id: mod_latestnews.php,v 1.16 2004/09/14 14:20:43 stingrey Exp $
* @package Mambo_4.5.1
* @copyright (C) 2000 - 2004 Miro International Pty Ltd
* @license [url]http://www.gnu.org/copyleft/gpl.html[/url] GNU/GPL
* Mambo is Free Software
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
global $mosConfig_offset, $mosConfig_live_site, $mainframe;
$timestamp = time ();
$count = intval( $params->get( 'count', 5 ) );
$catid = trim( $params->get( 'catid' ) );
$secid = trim( $params->get( 'secid' ) );
$show_front = $params->get( 'show_front', 1 );
$moduleclass_sfx = $params->get( 'moduleclass_sfx' );
$now = date( 'Y-m-d H:i:s', time()+$mosConfig_offset*60*60 );
$query = "SELECT a.id, a.title, a.introtext, a.created, u.name, a.sectionid"
. "\n FROM #__content AS a"
. "\n LEFT JOIN #__users AS u ON u.id=a.created_by"
. "\n WHERE a.sectionid & a.state = 1 "
. "\n ORDER BY created DESC"
. "\n LIMIT 30"
;
$database->setQuery( $query );
$rows = $database->loadObjectList();
// needed to reduce queries used by getItemid
$bs = $mainframe->getBlogSectionCount();
$bc = $mainframe->getBlogCategoryCount();
$gbs = $mainframe->getGlobalBlogSectionCount();
// Output
foreach ( $rows as $row ) {
$row->introtext = substr($row->introtext , 0, 12);
// get Itemid
$Itemid = $mainframe->getItemid( $row->id, 0, 0, $bs, $bc, $gbs );
// Blank itemid checker for SEF
if ($Itemid == NULL) {
$Itemid = '';
} else {
$Itemid = '&Itemid='. $Itemid;
}
$row->created = mosFormatDate ($row->created, $params->get( 'date_format' ));
echo ' '. $row->created. ' | [url="'. sefRelToAbs( 'index.php?option=com_content&task=view&id='. $row->id . $Itemid ) .'"]introtext. '">'. $row->title .' [/url] <hr color="#BACFE1" size="1" /> ';
}
?>