Adaptation

Adaptation

by Herman van Keulen -
Number of replies: 5

Hello,

I would like to adapt Moodle to special school wishes: change some items of the mainpage . I would like to change the items Main menu, courses.

Where in de Moodle dir can I find the html/php-page which I should change? In the folder lang?

gr.

Herman 

Average of ratings: -
In reply to Herman van Keulen

Re: Adaptation

by John Gone -
Have you logged in as admin and turned editing on? Have you logged in as admin and then from main page goto-> admin -> check language where you can edit 'til you go blind? Good luck,
John
In reply to John Gone

Re: Adaptation

by Runy Calmera -

John,

Got the same requirements

I got the same requirements on adaptation. In admin you have plenty of options to edit, you are right about that.

I would like to improve the "usability" of my moodle by just changing the way things look. For example on the home page:

  • Add deep links (direct links) to some discussions
  • Have navigation  in the top (bread crums) on each page. For instance I want to show the users on each page: "you are here:---->   Moodle.org.-->Forum --> Intallations. etc. I want this setting on the home page and on ALL pages within moodle consistently.
  • From the homepages a link to an "About this place" page
  • A search engine on EACH page, including the homepage in the left top corner.

Question:

So the question is: can you by yourself change the way moodle looks (especially navigation and search engine) without breaking Moodle (and the great work "our" Martin did?).

 

In reply to Runy Calmera

Re: Adaptation

by John Gone -
Those sound like some good ideas for a frontpage. If you're able to wait for a bit I think there are some pretty big changes coming that will make it easier to change your page appearance and the elements that appear there. I've done some fairly deep hacks to a couple of my Moodle sites as far as style goes but not the stuff you mention here. Sorry Runy, can't help except to say wait for a couple of versions or so. Keep an eye on this
http://moodle.org/doc/?file=release.html
for a release date and expected features
In reply to Runy Calmera

Re: Adaptation

by John Gone -
Runy, this is a bit of a hack for some of the adaptations you were asking about. This is all done to the header.html in your theme. Hack away...

<!-- No doctype yet - we are slowly migrating towards XHTML transitional 1.0 -->
<html<?php echo $direction ?>>
<head>
<title><?php echo $title ?></title>
<meta name="keywords" content="moodle, <?php echo $title ?> ">
<?php echo $meta ?>
<link rel="stylesheet" type="text/css" href="<?php echo $styles ?>">
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico">
<?php include("$CFG->javascript"); ?>
</head>

<body<?php
  if ($focus) {
      echo " onload=setfocus()";
  }
  echo " bgcolor="$THEME->body">";
?>

<?php if ($home) {  // This is what gets printed on the home page only  ?>

  <table width="100%" cellpadding="10" cellspacing="0" border="0" class="headerhome">
    <tr>
      <td valign="top"><form NAME=search ACTION="http://yoursite.com/moodle/mod/forum/search.php"><font SIZE="-1"><input NAME=search TYPE=text SIZE=15 VALUE=""><input VALUE="Search forums" TYPE=submit></font><input NAME=id TYPE=hidden VALUE="4"></form></td>
    </tr>
    <tr>
      <td valign="top" class="headerhomemain"><a href="http://www.yoursite.com/" target=_blank"><img
          border="0" src="<?=$CFG->wwwroot?>/theme/standard/yourlogo.gif" ?></a></td>
      <td align="right" valign="top" class="headerhomemenu"><?php echo $menu ?></td>
    </tr>
    <tr align="left">

      <td align="left" valign="top"><a href="<?=$CFG->wwwroot?>/theme/standard/about.html">About this site</a><a href="http://yoursite.com/dl/course/view.php?id=4">&nbsp&nbsp Link</a><a href="http://yoursite.com/dl/course/view.php?id=4">&nbsp&nbsp Link</a><a href="http://yoursite.com/dl/course/view.php?id=4">&nbsp&nbsp Link</a></td>
    </tr>
  </table>

<?php } else if ($heading) {  // This is what gets printed on any other page with a heading ?>

Replace: yoursite with yoursite; standard with your chosen theme
I generally keep all my customization images, logos styles etc. in my theme folder as this makes it easier to do updates
In reply to John Gone

Re: Adaptation, a thank you URL

by Runy Calmera -

John,

Many, many thanks! I'll try in on my test server and inform you how it worked.

About my usability research

As a thank you to you  smiley.gif here i send you a link about usability:

These patterns might help us to build quality courses. Especially the patterns about usability (e.g. navigation, user experience) are interesting as it helps us to make things in moodle which our studens could use.