Verfasst: 08.01.2003 17:20
ich hab mich mal bei dir registriert damit ich besser sehen kann was du meinst... ( schalt mich frei
)

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
//my_cal_peek
if ($userdata['session_logged_in'])
{
$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
Code: Alles auswählen
// MOD MINI CAL BEGIN
include($phpbb_root_path . 'mini_cal.'.$phpEx);
// MOD MINI CAL END
Code: Alles auswählen
if ($group_member($userdata, $group_id))
{
include($phpbb_root_path . 'mini_cal.'.$phpEx);
}
Code: Alles auswählen
AND group_id = '$group_id'
Code: Alles auswählen
AND group_id IN($group_id)
Code: Alles auswählen
if ($userdata['session_logged_in'])
{
include($phpbb_root_path . 'glance.'.$phpEx);
]
Code: Alles auswählen
if ( $userdata['session_logged_in'] && group_member($userdata, '7,15,20') )
{
include($phpbb_root_path . 'glance.'.$phpEx);
include($phpbb_root_path . 'mini_cal.'.$phpEx);
}
Code: Alles auswählen
// MOD MINI CAL BEGIN
if ($userdata['session_logged_in'])
{
include($phpbb_root_path . 'mini_cal.'.$phpEx);
}
// MOD MINI CAL END