0 Members and 1 Guest are viewing this topic.
if ($show_bdays) { $bdays = $show_bdays_past ? getBirthdayRange($low_date, $high_date) : getBirthdayRange($low_date_base, $high_date); ksort($bdays); }
if ($show_bdays) { $low_date_bd = strftime('%Y-%m-%d', $now); $high_date_bd = strftime('%Y-%m-%d', $now); $bdays = getBirthdayRange($low_date_bd, $high_date_bd); ksort($bdays); }
if(($flag == 'B') && $show_bdays) { if($show_bdays_to_guests || !$user_info['is_guest']) { if (!empty($bdays)) { echo '<tr'. (isset($list_label_class) ? ' class="'.$list_label_class.'"' : '') .'><td colspan="7" class="smalltext" align="center" style="padding-top: 10px; font-weight: bold;">'.$list_label_bdays.'</td></tr>'; $ctr = 0; foreach($bdays as $startdate => $bday_date) { if (($startdate >= strftime('%Y-%m-%d', $low_date_ts)) && ($startdate <= strftime('%Y-%m-%d', $now + $modSettings['cal_days_for_index'] * 24 * 3600))) { foreach ($bday_date as $member) { $class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : ''; $birthdate = strtotime($startdate); $text_start = !isset($month_nam['12']) ? date("M j",$birthdate) : substr($month_nam[strftime('%m', $birthdate)],0,3) . date(" j",$birthdate); echo '<tr'.$class_to_use.'><td colspan="7" class="smalltext" style="padding: 0px 0px 0px 0px;" width="100%" align="'.$align_list_entries.'">';echo '<div align="center"><img src="http://www.dream-collector.de/archiv/grafiken/forum/schaf.gif"></div><br>';echo '<div align="center">Wir gratulieren unserem Geburtstagskind</div>'; echo '<center><a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '" title="' . $txt['profile_of'] . ' ' . $member['name'] . '">' . '<span class="'.$hilite_bday_class.'">' . ( ($nowdate == $startdate) ? '<b>' : '') . $member['name'] . (isset($member['age']) ? '(' . $member['age'] . ')' : '') . ( ($nowdate == $startdate) ? '</b>' : '') . '</span>' . '</center></a>'; echo '</td></tr>'; } } } } } }
Was meinst du zu dem Schäfchen? Dass es nur einmal angezeigt wird - ist das machbar oder eine zu große Code-Änderung?
$birthdate = strtotime($startdate);$text_start= !isset($month_nam['12']) ? date("M j",$birthdate) :substr($month_nam[strftime('%m', $birthdate)],0,3) . date("j",$birthdate);
$birthdate = strtotime($startdate);$text_start = !isset($month_nam['12']) ? date("M d",$birthdate) : substr(date("d",$birthdate) .'. '. $month_nam[strftime('%m', $birthdate)],0,7);
$text_start = !isset($month_nam['12'])? date("M j",$evt_start) : substr($month_nam[strftime('%m',$evt_start)],0,3) . date(" j",$evt_start);$text_end= ($event['start_date'] == $event['end_date'] ? '' : '-'.(substr($event['start_date'],5,2) == substr($event['end_date'],5,2) ?date("j",$evt_end) : (!isset($month_nam['12']) ? date("M j",$evt_end) :substr($month_nam[strftime('%m', $evt_start)],0,3) . date("j",$evt_start))));
$text_start = !isset($month_nam['12']) ? date("M d",$evt_start) : substr(date(" j",$evt_start) .'. '. $month_nam[strftime('%m', $evt_start)],0,7);$text_end = ($event['start_date'] == $event['end_date'] ? '' : '-'. (substr($event['start_date'],5,2) == substr($event['end_date'],5,2) ? date("d",$evt_end) : (!isset($month_nam['12']) ? date("M d",$evt_end) : substr($month_nam[strftime('%m', $evt_start)],0,3) . date(" d",$evt_start))));
$class_to_use =isset($list_entry_class) ? ( !is_array($list_entry_class) ? 'class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++)% count($list_entry_class)].'"') : '';$text_start= !isset($month_nam['12']) ? date("M j",$eventdate) :substr($month_nam[strftime('%m', $eventdate)],0,3) . date("j",$eventdate);
$class_to_use = isset($list_entry_class) ? ( !is_array($list_entry_class) ? ' class="'.$list_entry_class.'"' : ' class="'.$list_entry_class[($ctr++) % count($list_entry_class)].'"') : '';$text_start = !isset($month_nam['12']) ? date("M d",$eventdate) : substr(date("d",$eventdate) .'. '. $month_nam[strftime('%m', $eventdate)],0,7);