Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Student projects/Admin page cleanup/Admin block.

Student projects/Admin page cleanup/Admin block: Difference between revisions

From MoodleDocs
Line 9: Line 9:
Try out the block at [http://betaserv.vkm.ca:82/moodle/ this] Moodle installation. To login as a creator, use username ''creator'' password ''rotaerc''. To login as a student, use username ''student'' password ''tneduts''. Sorry, no admin login will be posted here!
Try out the block at [http://betaserv.vkm.ca:82/moodle/ this] Moodle installation. To login as a creator, use username ''creator'' password ''rotaerc''. To login as a student, use username ''student'' password ''tneduts''. Sorry, no admin login will be posted here!


== Remarks, Bugs and Things To Be Done ==
== Issues Remaining ==
* I have to double-check how to get the icons to interface properly with the different themes.
* I have to double-check how to get the icons to interface properly with the different themes.
* Better way to require("$CFG->dirroot/newadmin/admin.php") since it's used in multiple blocks? Somehow, using global $admin (since $admin is the object created by admin.php that everything depends on) doesn't work.
* I'll have to look into tightening up the code, especially with regards to the $...->locate() and $...->path() calls, since those are (potentially) pretty processor-intensive.


[[Category:Developer]]
[[Category:Developer]]
[[Category:Project]]
[[Category:Project]]

Revision as of 01:52, 3 August 2006

As part of the Student projects/Admin page cleanup project, I'm redesigning the admin block that appears on the main page and course pages. The new block interfaces with the XML hierarchy and uses JavaScript to make folders collapsible.

Latest Version

The code for the latest version of the new admin block is available here.

Demo

Try out the block at this Moodle installation. To login as a creator, use username creator password rotaerc. To login as a student, use username student password tneduts. Sorry, no admin login will be posted here!

Issues Remaining

  • I have to double-check how to get the icons to interface properly with the different themes.
  • Better way to require("$CFG->dirroot/newadmin/admin.php") since it's used in multiple blocks? Somehow, using global $admin (since $admin is the object created by admin.php that everything depends on) doesn't work.
  • I'll have to look into tightening up the code, especially with regards to the $...->locate() and $...->path() calls, since those are (potentially) pretty processor-intensive.