In weekview I now implemented Gustav's FIRST "Go To This week" solution behind the current day. In Escalendar you can make that red..
If a student LEFT clicks on this Bold day in the Kalendar, Moodle jumps to the weeksection of that day. (I wish that with hoover over the other info becomes visible and with RIGHT click you go to a big agenda with all the details.
(My hidden agenda is that users get used to use this Kalendar first for handy things, just as a stepstone, so that later the use of the extra functionality - like the results from the project on this forum - will be a natural next step...)
All I did (at the end, I learned a lot during this php/html trial!) was replacing $cd in the Kalendar code in the routine for current day into a modified string from Gustav and then some makeup around it to conform to my theme style
link to forum: http://moodle.org/mod/forum/discuss.php?d=3428
In the code from Gustav I did replace $subtext by a dot. So still there, not really visible (handy when you hide the calendar for some reasons)
*** weeksold.php Fri Nov 7 23:55:59 2003
--- weeks.php Sat Nov 8 00:01:03 2003
***************
*** 80,85 ****
--- 80,90 ----
/// Start main column
echo "</td><td width=\"*\">";
+ $subtext = get_string("jumptocurrentweek");
+ $headertext = "<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td>".
+ get_string("weeklyoutline")."</td><td align=right><font size=1>".
+ "<a href=\"#current\"></a></td></tr></table>";
+ print_heading_block($headertext, "100%", "outlineheadingblock");
print_heading_block(get_string("weeklyoutline"), "100%", "outlineheadingblock");
print_spacer(8, 1, true);
***************
*** 185,190 ****
--- 190,198 ----
}
echo "<tr>";
+ if ($currentweek) {
+ echo "<a name=\"current\"></a>";
+ }
echo "<td nowrap $colorsides valign=top width=20>";
echo "<p align=center><font size=3><b>$section</b></font></p>";
echo "</td>";
Now the original string of Gustav: "<a href=\"#current\">$subtext</a></td></tr></table>";
I first said in Kalender: $gercourse=$course->id;
then changed Gustav's string (only in Kalendar, see below) into:
<a href=\"/moodle/course/view.php?id=".$gercourse."\#current\">
End then replaced in the loop for current day with some trial&error make-up:
if ($daycount==$tnum && $nt!="1" && $cd>0 && $cd<$nd) {
echo " <td bgcolor=\"#";if ($bgc[$daycount]) {
echo $mbc;} else {
echo $nbc;}
echo "\"> <font color=\"#$tfc\">$cd</font>
</td>\n";$daycount++;$cd++;}
with:
if ($daycount==$tnum && $nt!="1" && $cd>0 && $cd<$nd) {
echo "<td bgcolor=\"#"; if ($bgc[$daycount]) {
echo $mbc;} else {
echo $nbc;}
echo "\"> <b><a href=\"/moodle/course/view.php?id=".$gercourse."\#current\">
<font size=\"3\">".$cd."</font></a></b> </td>\n";$daycount++;$cd++;}
(I think that goto current topic = section with the bulbe on - will function also?)
I think someone can simplify this..
You mean this one? A little to much I think..