Advanced MyCalendar - Kosmetisches Problem!

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
itst
Ehrenadmin
Beiträge: 7418
Registriert: 21.08.2001 02:00
Wohnort: Büttelborn bei Darmstadt
Kontaktdaten:

Beitrag 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;")
                        );
                     }
Sascha A. Carlin,
phpBB.de Ehrenadministrator
:o
SQRT
Mitglied
Beiträge: 452
Registriert: 17.05.2002 15:10
Wohnort: Köln
Kontaktdaten:

Beitrag von SQRT »

wo bekommt man das denn her, ich meine diesen advanced mod?
SQRT
Mitglied
Beiträge: 452
Registriert: 17.05.2002 15:10
Wohnort: Köln
Kontaktdaten:

Beitrag 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!
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“