When using the html editor to compose a label or summary, the font color and heading size revert back to the theme css. Is there away to fix this?
Chad Parmentier
Mensagens colocadas por Chad Parmentier
I defined it in the script element in the html page. I will paste the code below and you should see how I added the so.addParm("wmode", "transparent");
if this doesn't help provide more info like or zip the files and post them so I can see exactly what you have going on.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo $meta ?>
<meta name="keywords" content="medical revision, medical finals, medical learning, social networking, <?php echo $title ?> " />
<title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
<link rel="stylesheet" href="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/aardvark_print.css" type="text/css" media="print" />
<LINK REL="StyleSheet" HREF="http://moodle.brandon.k12.mi.us/theme/BHS_theme/aardvark_topmenu.css" TYPE="text/css" MEDIA=screen>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Monoslideshow 1.3 Example page</title>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<body>
<div id="monoSlideshow" style="float:left;z-index:0;">
<p><strong>Please install Flash® and turn on Javascript.</strong></p>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("monoslideshow.swf", "SOmonoSlideshow", "100%", "260", "9", "#ffffff");
so.addVariable("showLogo", "false");
so.addParam("wmode", "transparent");
so.write("monoSlideshow");
// ]]>
</script>
</body>
</html>
if this doesn't help provide more info like or zip the files and post them so I can see exactly what you have going on.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo $meta ?>
<meta name="keywords" content="medical revision, medical finals, medical learning, social networking, <?php echo $title ?> " />
<title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
<link rel="stylesheet" href="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/aardvark_print.css" type="text/css" media="print" />
<LINK REL="StyleSheet" HREF="http://moodle.brandon.k12.mi.us/theme/BHS_theme/aardvark_topmenu.css" TYPE="text/css" MEDIA=screen>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Monoslideshow 1.3 Example page</title>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<body>
<div id="monoSlideshow" style="float:left;z-index:0;">
<p><strong>Please install Flash® and turn on Javascript.</strong></p>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("monoslideshow.swf", "SOmonoSlideshow", "100%", "260", "9", "#ffffff");
so.addVariable("showLogo", "false");
so.addParam("wmode", "transparent");
so.write("monoSlideshow");
// ]]>
</script>
</body>
</html>
if you are adding youtube or some other kind of flash element you need to do two things.
- add this )or similar div to the html embed page. <div id="monoSlideshow" style="float:left; padding: -5px; overflow: hidden; z-index:0;">
- the wmode id defined in the script call which i am guessing you will need to link to, here is an example of the code: <script type="text/javascript">
var so = new SWFObject("monoslideshow.swf", "SOmonoSlideshow", "750", "240", "9", "#ffffff");
so.addVariable("showLogo", "false");
so.addParam("wmode", "transparent");
so.write("monoSlideshow");
</script>
I made som modifications so links could be added to the theme that are only seen by admin's. I thought this would be nice to add links to phpMyadmin, and the Webmin panel. bellow is what i did and I have attached a modified proflieblock.php.
*************************************************************
-- And if anyone else wants to place links in a theme for admins only here is what i did:
<?PHP
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))){
print '<br /><li><a href="'.$CFG->wwwroot.'/myphpadmin">My Admin</a></li>';
print '<li><a href="https://mysite:10000">WebMin</a></li>';
}
?>
I placed the in the profileblock.php file from the MemMed theme and this works great. If user is not logged in is shows login box in header, if a student is logged in it add links by their profile pic for updating profile, logging out, and My Courses. If admin is logged in the code above adds links for phpMyAdmin and webmin. I will attach the profileblack.php with the code change. you can edit the file to include any links you would like.
*************************************************************
-- And if anyone else wants to place links in a theme for admins only here is what i did:
<?PHP
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))){
print '<br /><li><a href="'.$CFG->wwwroot.'/myphpadmin">My Admin</a></li>';
print '<li><a href="https://mysite:10000">WebMin</a></li>';
}
?>
I placed the in the profileblock.php file from the MemMed theme and this works great. If user is not logged in is shows login box in header, if a student is logged in it add links by their profile pic for updating profile, logging out, and My Courses. If admin is logged in the code above adds links for phpMyAdmin and webmin. I will attach the profileblack.php with the code change. you can edit the file to include any links you would like.
Problem solved. And if anyone else wants to place links in a theme for admins only here is what i did:
<?PHP
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))){
print '<br /><li><a href="'.$CFG->wwwroot.'/myphpadmin">My Admin</a></li>';
print '<li><a href="https://mysite:10000">WebMin</a></li>';
}
?>
I placed the in the profileblock.php file from the MemMed theme and this works great. If user is not logged in is shows login box in header, if a student is logged in it add links by their profile pic for updating profile, logging out, and My Courses. If admin is logged in the code above adds links for phpMyAdmin and webmin. I will attach the profileblack.php with the code change. you can edit the file to include any links you would like.
<?PHP
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))){
print '<br /><li><a href="'.$CFG->wwwroot.'/myphpadmin">My Admin</a></li>';
print '<li><a href="https://mysite:10000">WebMin</a></li>';
}
?>
I placed the in the profileblock.php file from the MemMed theme and this works great. If user is not logged in is shows login box in header, if a student is logged in it add links by their profile pic for updating profile, logging out, and My Courses. If admin is logged in the code above adds links for phpMyAdmin and webmin. I will attach the profileblack.php with the code change. you can edit the file to include any links you would like.