maik76 0 Report post Posted July 21, 2004 Hallo, kann mir vielleicht jemand bei einem kleinen Kalenderproblem helfen? Standardmäßig ist es ja so, das in der Kalenderblattansicht der erste (linke) Tag der Sonntag und der letzte (rechte) der Samstag ist. Ich würde das gerne auf Montag beginnend und Sonntag endend einstellen. Geht das? Gruß Maik Share this post Link to post
Stefan 0 Report post Posted July 21, 2004 Klick mich. Nebenbei, ist dir der Kalender hier im Forum schon mal aufgefallen? :P Share this post Link to post
maik76 0 Report post Posted July 21, 2004 (edited) Hi Stefan, danke erstmal, habe es gleich ausprobiert, bekomme jetzt aber beim kalenderaufruf die Fehlermeldung Parse error: parse error in .../forum/sources/calendar.php on line 866 Habe mal in der calender.php nachgeschaut, in der Zeile steht nur else Im Zusammenhang um diese Zeile sieht das ganze so aus: //----------------------------------------- // Run out of legal days for this month? // Or have we yet to get to the first day? //----------------------------------------- //+++++++++++++++++++++++++++++++++++++ // Start Modifikation Mod_Calendarview /* Start originaler Quelltext if ( ($c < $this->first_day_array['wday']) or ($day_array['mon'] != $this->chosen_month) ) Ende originaler Quelltext */ $this->first_day_array['wday'] = $this->first_day_array['wday'] == 0 ? 7 : $this->first_day_array['wday']; if ( ($c+1 < $this->first_day_array['wday']) or ($day_array['mon'] != $this->chosen_month) ) // Ende Modifikation Mod_Calendarview //+++++++++++++++++++++++++++++++++++++ { $cal_output .= $this->html->cal_blank_cell(); } else { if ( $seen_days[ $day_array['yday'] ] == 1 ) { //$c++; continue; } Das "else" in der siebtletzten Zeile ist Zeile 866. Synchronisieren der HTML-Vorlagen hat auch nichts verändert. Was mache ich falsch? Gruß Maik Edited July 21, 2004 by maik76 Share this post Link to post
Blackman 0 Report post Posted July 21, 2004 mach aus //----------------------------------------- // Run out of legal days for this month? // Or have we yet to get to the first day? //----------------------------------------- //+++++++++++++++++++++++++++++++++++++ // Start Modifikation Mod_Calendarview /* Start originaler Quelltext if ( ($c < $this->first_day_array['wday']) or ($day_array['mon'] != $this->chosen_month) ) Ende originaler Quelltext */ $this->first_day_array['wday'] = $this->first_day_array['wday'] == 0 ? 7 : $this->first_day_array['wday']; if ( ($c+1 < $this->first_day_array['wday']) or ($day_array['mon'] != $this->chosen_month) ) // Ende Modifikation Mod_Calendarview //+++++++++++++++++++++++++++++++++++++ { $cal_output .= $this->html->cal_blank_cell(); } else { if ( $seen_days[ $day_array['yday'] ] == 1 ) { //$c++; continue; } einfach //----------------------------------------- // Run out of legal days for this month? // Or have we yet to get to the first day? //----------------------------------------- //+++++++++++++++++++++++++++++++++++++ // Start Modifikation Mod_Calendarview /* Start originaler Quelltext if ( ($c < $this->first_day_array['wday']) or ($day_array['mon'] != $this->chosen_month) ) Ende originaler Quelltext */ $this->first_day_array['wday'] = $this->first_day_array['wday'] == 0 ? 7 : $this->first_day_array['wday']; if ( ($c+1 < $this->first_day_array['wday']) or ($day_array['mon'] != $this->chosen_month) ) // Ende Modifikation Mod_Calendarview //+++++++++++++++++++++++++++++++++++++ { $cal_output .= $this->html->cal_blank_cell(); } else { if ( $seen_days[ $day_array['yday'] ] == 1 ) { //$c++; continue; } Share this post Link to post
Stefan 0 Report post Posted July 21, 2004 Das was Blackman geschrieben hat, behebt den Fehler, den du beim Einbau gemacht hast und danach sollte es funktionieren. :) Share this post Link to post
maik76 0 Report post Posted July 21, 2004 Oh, sorry, den Klammerfehler hätte ich wohl auch selber entdecken sollen... Vielen Dank für eure Hilfe, jetzt gehts Maik Share this post Link to post