Seite 2 von 2

Verfasst: 01.12.2002 20:55
von itst
Hmm... Ich wüsste nicht, so der non-breaking-space vor dem span-Tag sonst herkommen sollte...

Versuchen wir mal das:

Finde

Code: Alles auswählen

// This is to fix Mac IE bug that expands cell if there is nothing in it
                        if ($numEvents == 0)
                        {
                    $template->assign_block_vars('date_row.date_cell.switch_date_cells.date_event', array(
                        'U_EVENT' => " ")
                    );
                        }

                         // For the Birthday Mod
            $query = "select user_id, username, DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(date_add(\"1970-01-01\", interval(user_birthday) day))), '%Y')+1 as birthday
      FROM ".USERS_TABLE." u
      WHERE month(date_add(\"1970-01-01\", interval(user_birthday) day)) = '".$monthView['month']."'
      AND dayofmonth(date_add(\"1970-01-01\", interval(user_birthday) day)) = '$day'
      AND user_birthday < '999999';";

            if (!$result = $db->sql_query($query)) {
                message_die(GENERAL_ERROR, 'Error querying dates for calendar.');
            }

            while ($topic = $db->sql_fetchrow($result)) {
                $topic_text = $lang['Birthday'];
                $username = $topic['username'];
                $birthday = $topic['birthday'];
                $user_id = $topic['user_id'];
                $profillink = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id");

                $template->assign_block_vars('date_row.date_cell.switch_date_cells.date_event', array(
                     'U_EVENT' => "$first_date<span class='gensmall'><font color='#000000'>&#149;</font></span>&nbsp;<a href=\"$profillink\" align='left' onMouseOver=\"createTitle(this, '<b>" . $lang['Birthday'] . ":</b> $username<br>" . $lang['Calendar_birthday_greeting_first'] . "&nbsp;<b>$birthday</b>&nbsp;" . $lang['Calendar_birthday_greeting_sec'] . "', event.pageX, event.pageY);\" onMouseOut=\"destroyTitle();\" class=\"gensmall\">$topic_text: <b>$username</b></a>\n\t<div style='height: 1px;'><IMG SRC='dot.gif' WIDTH='1' HEIGHT='1' BORDER=0></div>")
                );
            }
und ändere in

Code: Alles auswählen

                         // For the Birthday Mod
            $query = "select user_id, username, DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW())-TO_DAYS(date_add(\"1970-01-01\", interval(user_birthday) day))), '%Y')+1 as birthday
      FROM ".USERS_TABLE." u
      WHERE month(date_add(\"1970-01-01\", interval(user_birthday) day)) = '".$monthView['month']."'
      AND dayofmonth(date_add(\"1970-01-01\", interval(user_birthday) day)) = '$day'
      AND user_birthday < '999999';";

            if (!$result = $db->sql_query($query)) {
                message_die(GENERAL_ERROR, 'Error querying dates for calendar.');
            }

            while ($topic = $db->sql_fetchrow($result)) {
                $topic_text = $lang['Birthday'];
                $username = $topic['username'];
                $birthday = $topic['birthday'];
                $user_id = $topic['user_id'];
                $profillink = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id");

                $template->assign_block_vars('date_row.date_cell.switch_date_cells.date_event', array(
                     'U_EVENT' => "$first_date<span class='gensmall'><font color='#000000'>&#149;</font></span>&nbsp;<a href=\"$profillink\" align='left' onMouseOver=\"createTitle(this, '<b>" . $lang['Birthday'] . ":</b> $username<br>" . $lang['Calendar_birthday_greeting_first'] . "&nbsp;<b>$birthday</b>&nbsp;" . $lang['Calendar_birthday_greeting_sec'] . "', event.pageX, event.pageY);\" onMouseOut=\"destroyTitle();\" class=\"gensmall\">$topic_text: <b>$username</b></a>\n\t<div style='height: 1px;'><IMG SRC='dot.gif' WIDTH='1' HEIGHT='1' BORDER=0></div>")
                );
                $numEvents++;
            }
            // This is to fix Mac IE bug that expands cell if there is nothing in it
                if ($numEvents == 0)
                    {
                        $template->assign_block_vars('date_row.date_cell.switch_date_cells.date_event', array(
                        'U_EVENT' => "&nbsp;")
                        );
                     }

Verfasst: 04.12.2002 17:29
von SQRT
wo bekommt man das denn her, ich meine diesen advanced mod?

Verfasst: 08.12.2002 17:27
von SQRT
und? wollte nicht aufdringlich werden, aber wäre schön, wenn jemand nett wäre und den linbk hier posten würde, thx in advance!