Aportación realizada por Chad Parmentier

Moodle in English -> Themes -> Navigation (admin) only tab

de Chad Parmentier -
I am trying to add a link to myphpadmin and webmin for my administrators and am unsure how to write the php. the following works but I dont know how to rewrite the mysite/myphpadmin part. Any help would be great!


if (!isadmin() or isadmin()) {
echo '<ul><form class="loginform" id="login" method="post" action="'.$wwwroot.'/login/index.php">';
//echo '<li><label for="login_username">'.get_string('username').'</label><input class="loginform" type="text" name="username" id="login_username" value="" /></li>';
//echo '<li><label for="login_password">'.get_string('password').'</label><input class="loginform" type="password" name="password" id="login_password" value="" /></li>';
//echo '<li><input type="submit" value="&nbsp;&nbsp;'.get_string('login').'&nbsp;&nbsp;" /></li>';
//echo '</form></ul>';

} else {
echo '<ul>';
echo '<li><a href="'.$CFG->wwwroot.'/user/edit.php?id='.$USER->id.'&amp;course='.$COURSE->id.'">'.get_string('updatemyprofile').'</a></li>';
echo '<li><a href="'.$CFG->wwwroot.'/my">'.get_string('mycourses').'</a></li>';
echo '<li><a href="'.$CFG->wwwroot.'/login/logout.php?sesskey='.sesskey().'">'.get_string('logout').'</a></li>';
echo '</ul>';

}
?>
Promedio de valoraciones: -
Hello,

If any K-12 teachers would like to use moodle but are just getting into it, I will host your class for free and help you with materials. My Moodle site is well designed and has many custom components. Don't pay for cheap hosting offered by people who know very little about k-12 instructional design. I only ask that k-12 not discriminate and turn moodle into a political battleground. My Moodle is open and free. I will also make moodle available to k-12 teachers who are blocked. I am real tired of k-12 school screwing up good technology that helps kids. If you would like to see the site it is at http://www.virtuallanguagearts.org and you may contact me via cparment@chartermi.net

I also have a lot of materials i.e Examview test banks, Prentice Hall digital textbooks, and lots of embedded audio books and video.

Moodle in English -> Themes -> Remote theme import via PHP or CSS???

de Chad Parmentier -
I have been attempting to remotely call a theme such as aardvark beta from a remote server and apply it to a course (course only) in another moodle installation. I can get CSS to change in the course theme but when changing to forums and what not the css import does not apply because its not present to override the main css. I have been using an html block to import the styles from a remote server which point to locally installed php, and directories for the theme.

Why or What you ask?

I am a moodle admin at a local school, we do not have access to the server files. This is in part due to the power struggle that ensues over district wide installations of moodle. So essentially I want to use a remote server to make my course better and not have to worry about what the district does. Any thoughts on hacks to do this?
Promedio de valoraciones: -