Mensagens colocadas por Judy Hsu

Moodle in English -> General developer forum -> Newbie Moodle developer formlib question

por Judy Hsu -

hi,

I'm trying to develop a simple custom report that either take Enrollment date or Post-test date range and return the results... here is a test that I have so far:

    echo '
    <form action="'. $CFG->wwwroot.'/xxx/report.php?id='. $course->id.'">
        <fieldset>
            <table width="100%">
                <tr>
                    <td><label>Course:</label></td>
                    <td><select class="courseid" name="id">'.$options.'</select></td>
                    
                    <td><label>Enrollment date:</label></td>
                    <td><input id="efrom" type="text" name="efrom" placeholder="From" value="'.$efrom.'" /></td>
                    <td><input id="eto" type="text" name="eto" placeholder="To" value="'.$eto.'" /></td>

                    <td><label>Post test date:</label></td>
                    <td><input id="pfrom" type="text" name="pfrom" placeholder="From" value="'.$pfrom.'" /></td>
                    <td><input id="pto" type="text" name="pto" placeholder="To" value="'.$pto.'" /></td>
                    
                    <td><input type="submit" name="submit" value="Submit" /></td>
                    <td><input type="submit" name="output" value="Download" /></td>
                </tr>
            </table>
        </fieldset>
    </form>';

This did work. However, it will NOT prevent users to enter BOTH Enrollment date and Post-test date. I want it to behave in a way that if users specify the Enrollment date, then they can't specify the Post-test date. How do I do that? Also, if I am to use Moodle's formslib to implement this, how would the codes be like? Thanks in advance!

 

Moodle in English -> General developer forum -> mp3 Autoplay -> Re: mp3 Autoplay

por Judy Hsu -

Hi Matt, does that mp3 player compatible with Moodle 2.3.3, 2.4.x, and 2.5.x? How do you replace this MP3 player with the moodle original mp3 player, and make it "autoplay?"

BTW a quick side question. Is it true that the autoplay feature used to be possible with Moodle 1.9.x, and now the feature was removed due to accessibility reason?

Moodle in English -> General help -> mp3 filter autoplay option in 2.3.3?

por Judy Hsu -

hi,

We are running Moodle 2.3.3 and I'm trying to make the mp3 audio that we embeded in our quizzes to play back automatically without students click on the play button. I found these documents:

http://docs.moodle.org/19/en/MP3_player

and

http://docs.moodle.org/23/en/MP3_player

and

http://docs.moodle.org/24/en/MP3_player

It seems that in /19 (Moodle 1.9.x) and /24 (Moodle 2.4.x), both mentioned about the autoPlay feature, but NOT the /23 (Moodle 2.3.x) documentation. Does that mean that for Moodle 2.3.x, the mp3 filter does NOT support the autoPlay feature? I did try to add the autoPlay lines in our customized theme (theme/yourtheme/config.php), but it didn't work. Can anyone help? Thanks!

Hola everyone, just a quick question.

We would like to roll out a quick fix for a modified /course/lib.php file on our live site, and I currently noticed that there are around 10 students online doing course view (which could have also needed to use /course/lib.php)... If I just do a quick SFTP to replace the whole /course/lib.php, for those students, would they be logged our or have any side effects? It's just a one line change (correcting some file pointers) but I don't want to take the risk if those online students will be affected in someone, but we do want to deploy the fix ASAP instead of waiting until midnight... thanks you!