dilluns, 3 de maig del 2010

Moodle Gadget for Blogger

 

Vicent Frasquet from the IES Joan Fuster (Bellreguard - Spain) has created a Gadget that let us embed the Moodle Control Access into our Blog (Blogger, Wordpress, TypePad…) and define the access parameters such such a course, the whole courses, some courses…

If you want to embed this gadget in order to let the students to enter with their account into your moodle course select in Blogger “Layout”, then where you want to insert the gadget and finally select “HTML/JavaScript”. Copy the next script, changing your moodle adress. So where it puts http://iesjoanfuster.edu.gva.es/moodle/login/index.php write down your adress:

<script language=JavaScript>
   function actuar(form){
   //enviar formulari
   form.submit();
  //neteja les dades del formulari
   form.reset();

}
</script>
      <div>
          <form action="http://iesjoanfuster.edu.gva.es/moodle/login/index.php" method="post" id="login" target="_blank">
          <div>
            <div class="form-label" style="margin-top:1em"><label for="username">Nom d'usuari</label>
                <input type="text" name="username" id="username" size="15" value="" />
            </div>
            <div class="form-label" style="margin-top:0.5em"><label for="password">Contrasenya</label>
              <input type="password" name="password" id="password" size="15" value="" />
            </div>
            <div class="form-submit" style="margin-top:0.5em;margin-left:2em">
              <input type="submit" value="Entrada" onClick="actuar(this.form);return false" />
              <input type="hidden" name="testcookies" value="1" />

            </div>
          </div>
        </form>
      </div>

 

Enjoy

© 2010 Vicent Frasquet i Fran Cadenas.

IES Joan Fuster (Bellreguard - Spain) – Departament de Ciències Socials, Geografia i Història.