• 29-04-2014, 19:39:56
    #10
    _sinan_ adlı üyeden alıntı: mesajı görüntüle
    Son resimde öyle yapmıştım Hocam.

    Emin olmamakla beraber sanırım burdan çözebilirim ?

      // displays the possible choices on a question
      function display_choices($question, $choices) {
      	   $autocontinue = '';
      	   if($question->qtype == 'radio' and $question->autocontinue) {
      	   	$autocontinue = "onclick=\"chainedQuiz.goon(".$question->quiz_id.", '".admin_url('admin-ajax.php')."');\"";
      	   }
      	   
      	   
    		switch($question->qtype) {
    			case 'text':
    				return "<div class='chained-quiz-choice'><textarea class='chained-quiz-frontend' name='answer'></textarea></div>";
    			break;
    			case 'radio':
    			case 'checkbox':
    				$type = $question->qtype;
    				$name = ($question->qtype == 'radio') ? "answer": "answers[]";
    				
    				$output = "";
    				foreach($choices as $choice) {
    					$choice_text = stripslashes($choice->choice);
    					
    					$output .= "<div class='chained-quiz-choice'><label class='chained-quiz-label'><input class='chained-quiz-frontend chained-quiz-$type' type='$type' name='$name' value='".$choice->id."' $autocontinue> $choice_text</label></div>";
    				}
    						
    				return $output;
    			break;
    		}
      } // end display_choices
     // displays the possible choices on a question 
      function display_choices($question, $choices) { 
             $autocontinue = ''; 
             if($question->qtype == 'radio' and $question->autocontinue) { 
                 $autocontinue = "onclick=\"chainedQuiz.goon(".$question->quiz_id.", '".admin_url('admin-ajax.php')."');\""; 
             } 
              
              
            switch($question->qtype) { 
                case 'text': 
                    return "<div class='chained-quiz-choice' style='float:left;position:relative'><textarea class='chained-quiz-frontend' name='answer'></textarea></div>"; 
                break; 
                case 'radio': 
                case 'checkbox': 
                    $type = $question->qtype; 
                    $name = ($question->qtype == 'radio') ? "answer": "answers[]"; 
                     
                    $output = ""; 
                    foreach($choices as $choice) { 
                        $choice_text = stripslashes($choice->choice); 
                         
                        $output .= "<div class='chained-quiz-choice' style='float:left;position:relative'><label class='chained-quiz-label'><input class='chained-quiz-frontend chained-quiz-$type' type='$type' name='$name' value='".$choice->id."' $autocontinue> $choice_text</label></div>"; 
                    } 
                             
                    return $output; 
                break; 
            } 
      } // end display_choices
    olarak denermisiniz?
  • 29-04-2014, 20:34:51
    #11
    samsunikinciel adlı üyeden alıntı: mesajı görüntüle
    olarak denermisiniz?

    Bu hatayı verdi Hocam

    Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/a4305443/public_html/wp-content/plugins/chained-quiz/models/question.php on line 82
  • 29-04-2014, 20:43:27
    #12
    _sinan_ adlı üyeden alıntı: mesajı görüntüle
    Bu hatayı verdi Hocam

    Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/a4305443/public_html/wp-content/plugins/chained-quiz/models/question.php on line 82
    Hocam illa fonksiyon içinde vermeye de gerek yok.
    Bir tane
    <style type="text/css">
    .chained-quiz-choice{float:left;position:relative;}
    </style>
    oluştururmusunuz
  • 30-04-2014, 19:38:02
    #13
    samsunikinciel adlı üyeden alıntı: mesajı görüntüle
    Hocam illa fonksiyon içinde vermeye de gerek yok.
    Bir tane
    <style type="text/css">
    .chained-quiz-choice{float:left;position:relative;}
    </style>
    oluştururmusunuz
    Yok hocam yine olmadı
  • 30-04-2014, 20:26:27
    #14
    PM gönderdim.

    Eklenti dosyasında değişiklik yapmak gerekli. Width:100px; değeri verilmiş.