Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support

Z3R0

Mitglied
  • Content count

    64
  • Joined

  • Last visited

Posts posted by Z3R0


  1. Kann es sein das das irgendwie so gehen könnte??

    In der skin_calender:

    function calendar_event_title($data="") {
    
    global $ibforums;
    
    return <<<EOF
    
      
    
    <tr> 
    
              <td class="pformleft"><strong>{$ibforums->lang['calendar_title']}</strong></td>
    
              <td class="pformright"><input type='text' size='40' maxlength='40' name='event_title' class='forminput' value='$data' /></td>
    
            </tr>
    
    EOF;
    
    }

    einfach bei event_title soetwas wie {$author['member_group']} davorsetzen??


  2. Hi

    Ich hätte da eine Frage zum Kalender:

    Ich habe bei uns im Forum 4 Klassen (Schule) und da jede Klasse ihre Tests zu anderen Terminen hat, weiß dann keiner welche Klasse jetz gemeint is (im Kalender)

    Und ich wollte fragen ob es irgendwie möglich wäre vor den Events einen Prefix zu machen, welcher der Klassennahmen angibt. (also den Gruppennamen des Posters als Prefix dazuschreibt)

    Würde mich über ein paar antworten freuen.


  3. Irgendwo da muss die Verschiebung eingebaut werden, aber wo weiß ich nicht :(

    function show_month() {
    
            global $ibforums, $DB, $std, $print;
    
            
    
            //-----------------------------------------
    
            // Get the birthdays from the database
    
            //-----------------------------------------
    
      $birthdays = $this->get_month_birthdays();
    
      
    
      //-----------------------------------------
    
            // Get recurring events
    
            //-----------------------------------------
    
      $recurring = $this->get_month_recurring();
    
      
    
      //-----------------------------------------
    
            // Get the single day events
    
            //-----------------------------------------
    
            $events = $this->get_events('single');
    
      
    
      //-----------------------------------------
    
            // Get the ranged events
    
            //-----------------------------------------
    
            $r_events = $this->get_events('ranged');
    
    
            //-----------------------------------------
    
            // Figure out the next / previous links
    
            //-----------------------------------------
    
            
    
            $prev_month = array();
    
            $next_month = array();
    
            
    
            $prev_month['year_id']    = $this->chosen_year;
    
            $next_month['year_id']    = $this->chosen_year;
    
            
    
            $prev_month['month_id']   = $this->chosen_month - 1;
    
            $prev_month['month_name'] = $this->month_words[$this->chosen_month - 2];
    
            
    
            $next_month['month_name'] = $this->month_words[$this->chosen_month];
    
            $next_month['month_id']   = $this->chosen_month + 1;
    
            
    
            if ($this->chosen_month == 1)
    
            {
    
           	 $prev_month['month_name'] = $this->month_words[11];
    
           	 $prev_month['month_id']   = 12;
    
           	 $prev_month['year_id']    = $this->chosen_year - 1;
    
           	 
    
            }
    
            else if ($this->chosen_month == 12)
    
            {
    
           	 $next_month['month_name'] = $this->month_words[0];
    
                $next_month['month_id']   = 1;
    
                $next_month['year_id']    = $this->chosen_year + 1;
    
            }
    
            
    
            $this->output .= $this->html->cal_main_content($this->month_words[$this->chosen_month - 1], $this->chosen_year, $prev_month, $next_month);
    
            
    
            //-----------------------------------------
    
            // Print the days table top row
    
            //-----------------------------------------
    
            
    
            $day_output = "";
    
            $cal_output = "";
    
            
    
            foreach ($this->day_words as $day)
    
            {
    
           	 $day_output .= $this->html->cal_day_bit($day);
    
            }
    
      $day_output .= $this->html->cal_new_row();
    
            //-----------------------------------------
    
            // Print the main calendar body
    
            //-----------------------------------------
    
            
    
            $seen_days = array(); // Holds yday
    
            $seen_ids  = array();
    
      
    
      $weekinfo=$this->helper_get_week_info();
    
      
    
      //do weeks
    
      for( $c = 1; $c <= $weekinfo['num_weeks']; $c++ )
    
      {
    
     	 
    
     	 $r_week_events = $this->get_events('ranged',$weekinfo[$c]);
    
     	 
    
     	 //do we have starting blank days in this week? -> do blank cells on date cell row
    
     	 for( $i = 0; $i <$weekinfo[$c]['start_blank']; $i++ )
    
     	 {
    
        $cal_output .= $this->html->cal_blank_cell();
    
     	 }
    
     	 
    
     	 //do weeks date cells
    
     	 for( $i = 0; $i <count($weekinfo[$c]['days']); $i++ )
    
     	 {
    
        $cal_date = "<a class='caldatelink' href='{$ibforums->base_url}&act=calendar&code=showday&y=".$this->chosen_year."&m=".$this->chosen_month."&d=".$weekinfo[$c]['days'][$i]."'>{$weekinfo[$c]['days'][$i]}</a>";
    
        if ( ($weekinfo[$c]['days'][$i] == $this->now_date['mday']) and ($this->now_date['mon'] == $this->chosen_month) and ($this->now_date['year'] == $this->chosen_year))
    
              {
    
             	 $cal_output .= $this->html->cal_date_cell_today($cal_date);
    
              }else{
    
       	 $cal_output .= $this->html->cal_date_cell($cal_date);
    
        }
    
        
    
        
    
     	 }
    
    
     	 //do we have ending blank days in this week? -> do blank cells on date cell row
    
     	 for( $i = 0; $i <$weekinfo[$c]['blank_end']; $i++ )
    
     	 {
    
        $cal_output .= $this->html->cal_blank_cell();
    
     	 }
    
    
     	 $cal_output .= $this->html->cal_new_row();
    
     	 //do this weeks ranged event rows + one row for all other events
    
     	 for( $rwe = 1; $rwe <= max(count($r_week_events),4)+1; $rwe++ )
    
     	 {
    
        
    
        //do we have starting blank days in this week?
    
        for( $i = 0; $i <$weekinfo[$c]['start_blank']; $i++ )
    
        {
    
       	 $cal_output .= $this->html->cal_blank_cell();
    
        }
    
        //first do a row for each ranged event in this week
    
        if($rwe<max(count($r_week_events),4)+1)
    
        {
    
       	 //add the non-blank days of this week. With and without events
    
       	 $shown=0;
    
       	 for( $i = 0; $i <(count($weekinfo[$c]['days'])-max(1,$r_week_events[$rwe-1]['week_duration'])+1); $i++ )
    
       	 {
    
          if($shown==0 AND $r_week_events[$rwe-1]['unix_stamp'] < ($weekinfo[$c]['daystamps'][$i]+86399) AND $r_week_events[$rwe-1]['end_unix_stamp'] > ($weekinfo[$c]['daystamps'][$i]))
    
          {
    
         	 $event_title=$this->html->cal_events_wrap_range( "code=showevent&eventid=".$r_week_events[$rwe-1]['eventid'], $r_week_events[$rwe-1]['title'], $r_week_events[$rwe-1]['event_color'], $r_week_events[$rwe-1]['event_bgcolor']);
    
         	 $cal_output .= $this->html->cal_event_cell($event_title,$r_week_events[$rwe-1]['week_duration']);
    
         	 $shown=1;
    
          }else{
    
         	 $cal_output .= $this->html->cal_event_cell("",1);
    
          }
    
       	 }
    
        //now do the row for the single day events of this week
    
        }else{
    
       	 for( $i = 0; $i <(count($weekinfo[$c]['days'])-max(1,$r_week_events[$rwe-1]['week_duration'])+1); $i++ )
    
       	 {
    
          $this_day_events="";
    
          $day_array = getdate($this->our_datestamp);
    
          //----------------------------------------
    
              // Recurring Events...
    
              //----------------------------------------
    
          $this_day_events.=$this->html_month_recurring($recurring, $day_array);
    
          //----------------------------------------
    
          // Normal Events...
    
          //----------------------------------------
    
          $this_day_events.=$this->html_month_normal($events, $day_array);
    
          //----------------------------------------
    
          // Birthdays
    
          //----------------------------------------
    
          $this_day_events.=$this->html_month_birthdays($birthdays, $day_array);
    
         	 
    
          $cal_output .= $this->html->cal_event_cell($this_day_events,1);
    
         	 
    
          $this->our_datestamp += 86400;
    
       	 }
    
        }
    
        //do we have ending blank days in this week?
    
        for( $i = 0; $i <$weekinfo[$c]['blank_end']; $i++ )
    
        {
    
          $cal_output .= $this->html->cal_blank_cell();
    
        }
    
        $cal_output .= $this->html->cal_new_row();
    
        
    
     	 }
    
      }
    
            
    
            //-----------------------------------------
    
            // Switch the HTML tags...
    
            //-----------------------------------------
    
           
    
            if ( $this->chosen_year < 1500 )
    
            {
    
           	 $this->month_words[$this->chosen_month - 1] = str_replace(",", ';&#', "Y,101,32,111,108,100,32,99,97,108,101,110,100,97,114,32,111,102;").' '.$this->month_words[$this->chosen_month - 1];
    
            }
    
            
    
            $this->output = str_replace( "<!--IBF.DAYS_TITLE_ROW-->", $day_output, $this->output );
    
            $this->output = str_replace( "<!--IBF.DAYS_CONTENT-->"  , $cal_output, $this->output );
    
            
    
            $this->output = str_replace( "<!--IBF.MONTH_BOX-->"     , $this->get_month_dropdown(), $this->output );
    
            $this->output = str_replace( "<!--IBF.YEAR_BOX-->"      , $this->get_year_dropdown() , $this->output );
    
            
    
            $this->nav[] = "<a href='{$ibforums->base_url}&act=calendar'>{$ibforums->lang['page_title']}</a>";
    
            $this->nav[] = $this->month_words[$this->chosen_month - 1]." ".$this->chosen_year;
    
            
    
        }

    Bitte kann sich das mal wer anschaun *ganzliebguck*


  4. Hello

    Habe ein Problem:

    Ich habe den Mod installiert, und er funktioniert wunderbar, das einzige Problem das ich habe ist ...

    ... das ich die zeilen

    // 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
    
    //+++++++++++++++++++++++++++++++++++++

    wieder irgendwo brauche, da sonst das Samstag als Sonntag angezeigt wird, weil ich einen Mod installiert hab der den Montag als 1. Wochentag einttägt ...

    plz HELP


  5. @STEFAN ...

     $count = 0;
    
     foreach ($this->champions as $k => $v)
    
      {    
    
       if ($v['m_id'] == $member['id'])
    
        { 
    
         $count ++;
    
         $member['member_champion'] .= "<a href='index.php?act=Arcade&do=stats&gameid=".$k."'><img src='arcade/images/".$v['game']."2.gif' border='0' title='".$v['title']." Champion'></a>&nbsp;";
    
         if ($count == 6)
    
          {
    
          $member['member_champion'].= "<br>";
    
          }
    
        }
    
      }

    Ist der Code okay, oder viel zu idiotisch ? Kann ich den so drinlassen, oder hast du ne bessere/einfachere Idee, nach 6 Symbolen einen Zeilenumbruch reinzubauen ... ?

    Eine kuze Frage:

    Wo muss den der Teil genau hin??

    Ich hab ihn in der skin topic gehabt, aber habe dann eine Fehlermeldung bekommen! :(

    wie immer: thx im Voraus! ;)


  6. :( Kannst du mir dabei echt nicht helfen??

    Nochmal zu deiner Frage (is das ein pip?): Bei den pips kann man ja auch grafiken anstatt der nummer der pips eingeben, das hab ich in dem Fall auch gemacht ;)

    Ich hab schon versucht nach den pips ein paar zeilen frei zulassen, geht leider auch nicht :( und wenn ich gar keine Zeile frei lasse auch nicht!

    HELP


  7. Bedenke aber, das bei den meisten PHP Einstellungen die maximale Uploadgröße 2 MB ist und das auch ein größerer Wert im ACP nichts dagegen machen kann.

    Hm, hast recht, geht nicht mehr!! Kann man das irgendwie ändern?? Denn 2MB bringt mir bei Mp3s nicht wirklich was :(

    UP!!!

    Hat da wirklich keiner eine Idee dazu???

    Muss das der Hoster einstellen oder geht das anders auch??

    Vorausgesetzt es geht überhaupt irgendwie??? :blink:


  8. Hi

    Mein Board wird meistens an öffendlichen PCs genutzt, dies stellt allerdings ein Problem mit der Erinnerungsfunktion dar!!

    Denn meistens vergessen die user sie abzuschalten und so kann eigendlich dann jeder rein!!

    Ich bräuchte da jetz bitte ein bisschen Hilfe!

    Ich will das ganze jetz so machen das man die Erinnerungsfunktion nicht mehr benutzen kann. Und wenn ich da einfach das zeug zum Auswählen auf der Einloggseite im Skript lösche (in der Login.php oder so) wird da ja immer die Funktion eingeschalten und man kann sie dann gar nichtmehr ausschalten!

    Gibts da ne eleganze lösung für dieses Problem??

    plz help!

    mfg zero

×