BTW, I used ($_SERVER['SCRIPT_FILENAME']=="/path/to/moodle/index.php") to test if the student is viewing a course main page and then present them with a course navigation in the header so thanks for posting . me() gave me the path with the id which was too specific!
Darren
Themes
Need help with some variables
This discussion has been locked so you can no longer reply to it.