aber gerne ^^
so, das is meine index.php
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
//my_cal_peek
$cal_num = 14; // number of days to look ahead
$peeklen = 30; // subject character length
$datefirst = ''; // display the date in which order 'month' = Month/Day
// (Default: Day/Month)
include_once('./cal_settings.php');
$today = date("Y-m-d") . " 00:00:00";
$window = date("Y-m-d", mktime(0,0,0,date("m"),date("d")+$cal_num,date("Y")));
$sql = "SELECT * FROM ". $table_prefix . $tablename;
$sql .= " WHERE eventspan >= '$today' AND stamp <= '$window'";
$sql .= " ORDER BY eventspan";
$result = $db->sql_query($sql);
$result = mysql_db_query($dbname, $sql);
if ($result)
{
while ($row = mysql_fetch_array($result))
{
$row[stamp] = substr($row[stamp], 0, 10);
$evntdate = split("-", $row[stamp]);
if ($datefirst == 'month') { $shortdate = $evntdate[1] . "/" . $evntdate[2]; }
else { $shortdate = $evntdate[2] . "/" . $evntdate[1]; }
$link = "calendar.php?mode=display&day=".$evntdate[2];
$link .= "&month=".$evntdate[1]."&year=".$evntdate[0];
$link = ereg_replace("=0", "=", $link);
$curevnt = $row[subject];
if (strlen($curevnt) > ($peeklen+3))
{
$curevnt = substr($curevnt, 0, $peeklen) . "...";
}
else
{
$curevnt = $curevnt;
}
$template->assign_block_vars('calpeek', array(
'LINK' => $link,
'DATE' => $shortdate,
'EVENT' => $curevnt
)
);
} # end of while
}
//end of my_cal_peek
ööhm...der link, wie oben....
http://www.mcloudclan.de/phpbb2/index.php
edit: ich sagte die datei als link posten und nicht die ganze datei!!!
mfg saerdnaer