Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
maik76

Kalenderansicht Montags beginnend!?

Recommended Posts

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

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? :unsure:

Gruß

Maik

Edited by maik76

Share this post


Link to post

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×