132 Commits

Author SHA1 Message Date
moodler
34dd5900e4 FIxed my last hasty checkin 2004-12-28 15:12:46 +00:00
moodler
3c6b56daa4 Viewing site front page is now logged. 2004-12-28 15:11:16 +00:00
defacer
9b12850043 Fix for bug 2241:
I hope this time I got everything changed to the new Page interface! I 'm
really sorry for messing up and breaking new installations... :(

Also moved the only two functions of the API outside the page_base class.
2004-11-29 04:19:05 +00:00
defacer
99110470ba Somehow I forgot to commit these and the whole page setup wasn't working
after renaming MoodlePage => page_base.
2004-11-25 17:23:57 +00:00
gustav_delius
b61536bc9b insert line break before language selection menu to make front page look similar to Moodle 1.4 2004-11-24 09:40:20 +00:00
defacer
c8e0b57900 Pages/blocks code updates:
NEW: The code now supports dynamically plugging your own Pages and block position
identifiers into Moodle without messing with the main libraries at all.

UPDATE: Many functions in blocklib now use pass-by-reference for speed.

UPDATE: Class MoodlePage has been made more presentable and robust.
2004-11-12 18:39:25 +00:00
defacer
f032aa7a5f MAJOR CHANGES:
--------------

Brand-new pagelib.php at your disposal! It slices, it dices, it makes your coffee.
It still doesn't understand women... Read the comments in pagelib.php for a first
impression. Feedback highly encouraged!

Blocks code has undergone significant changes to work with Pages. Flexibility is its
middle name, since I think (without having tried it) that adding e.g. a third
placeholder for "center" blocks in courses, with full support for moving around etc,
will now take about 15 lines of new or edited code. If you are not impressed yet, I
suggest watching a documentary on solar physics. :P

MINOR CHANGES:
--------------

Added instance_allow_config() in the blocks class hierarchy to supplement per-instance
configuration options. You can override it to return true and thus get configuration
amenities without allowing multiple instances.

Minor polishing to comments and documentation (whatever caught my eye was game).

Tightened up some code here and there by utilizing all the new features.

BUGFIXES:
---------

A bug in restore_execute.html caused hidden blocks to not be restored at all.
2004-11-08 19:36:07 +00:00
paca70
63fa3f8014 If selected news count is zero, dont print forum headers. 2004-11-07 09:12:45 +00:00
dhawes
4bab5275b2 some string quote and spacing cleanup 2004-10-22 02:33:18 +00:00
defacer
9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
gustav_delius
dfc12289a3 after removing empty line at top of section the editing icon was now a bit cramped in, so added an empty line below it but only if editing is on. 2004-09-30 18:56:08 +00:00
gustav_delius
eab617f96c removed spurious empty line at start of sections 2004-09-30 18:43:24 +00:00
gustav_delius
26686b7ae3 closed some br and img tags 2004-09-12 22:39:20 +00:00
gustav_delius
98ea2a6e02 closed some image tags 2004-09-12 21:55:34 +00:00
gustav_delius
9a58f7cb85 towards XHTML compliance 2004-09-12 21:43:59 +00:00
moodler
0eff2a843b FIxed typos from stable 2004-09-07 14:15:17 +00:00
moodler
8deb0ff5e2 Merged file path improvements from stable 2004-09-07 13:39:41 +00:00
defacer
2b0d60ec78 Fix for bug 1662:
Changed the way applicable formats for blocks are handled. The changes are
short codewise, but to grasp all the implications read the forum discussion
at the relevant URL.
2004-08-22 16:54:48 +00:00
moodler
8b5b10281c New automatic installation script! No need to make config.php anymore!
It's rough but it works.  I will be doing lots of work on making it
slicker so don't translate the strings just yet.
2004-08-12 15:53:32 +00:00
moodler
7dd826818e More notices 2004-08-09 14:18:40 +00:00
moodler
e17781c874 FIxing a notice for PHP5 2004-08-08 03:35:46 +00:00
moodler
720754da9e Fix menu on site page section for new resources 2004-07-26 16:22:45 +00:00
moodler
45a6b40db2 FIxed up the Site Topic 2004-07-09 05:33:07 +00:00
gustav_delius
5fc2f2fdcb site front page can now have a topic section, see http://moodle.org/mod/forum/discuss.php?d=9444#45748 2004-07-02 09:32:17 +00:00
moodler
6236ed990d Pass the whole $course variable to block_print_blocks_admin()
so we have more information.
2004-06-30 13:11:15 +00:00
moodler
8a33e3717d Based on code from Janne - this allows secure logins via https
$CFG->loginhttps

After logging in via https, Moodle returns to a normal http URL


More info:  http://moodle.org/mod/forum/discuss.php?d=8555
2004-06-19 16:13:28 +00:00
defacer
df9e0f89e3 Fixes for bug 1485:
Now the site has blocks by default. Also, block panel width is restricted even
if there are no blocks to display.
2004-06-01 13:47:55 +00:00
defacer
89adb17442 Merging the changes from 1.4 dev branch (site index blocks + various bugfixes) 2004-05-28 10:53:54 +00:00
moodler
e6d8258521 A fix to help some misconfigured sites (without DirectoryIndex) 2004-04-07 13:07:38 +00:00
moodler
ba2cde498d WHen showing just course categories, then the title of the section
is now "Course categories" rather than "Available courses"
2004-03-13 00:53:17 +00:00
moodler
a711021a75 Added a missing style for the internal table of the headingblock,
since inheritance doesn't seem to work

   headingblockcontent
2004-02-15 13:54:47 +00:00
moodler
46d621261b Use format_text on the site-info 2004-01-20 08:50:00 +00:00
moodler
0a45ffe301 A new configuration setting - "forcelogin".
Default is false, everything is as it is now.

If turned on, then users are forced to log in before
being able to see the front page or the course listings.
2004-01-14 08:27:18 +00:00
moodler
4020587b9a Shorter search box to help smaller screens 2003-12-20 02:47:14 +00:00
moodler
f33db1ce37 Use CFG->admin 2003-10-19 02:40:03 +00:00
moodler
3b3ab94282 Never checked this in with the course search 2003-08-12 16:44:22 +00:00
moodler
ee00b8b948 There's always one, isn't there? 2003-08-07 16:15:14 +00:00
moodler
c2cb45451f COURSE DISPLAY REVAMP
OK, some big changes here to the front end, particularly in
course categories and course display.

Course categories can now be nested (to any level).

Courses and course categories can now be manually sorted
any way required.

There is a groovy front end for managing these, and a better
range of options for formatting the front page.

It all still needs some polishing, which I'll be doing over
the next couple of days, including better auto-sorting.

I would not use this on production systems just yet.
2003-07-30 13:02:45 +00:00
moodler
699ea457f9 Slight improvement for implementing styles ... since nested styles
don't seem to work as advertised
2003-07-23 14:03:01 +00:00
moodler
c28a94c0ac A missing style 2003-07-23 13:35:24 +00:00
moodler
52dcc2f9e6 Some slight cleanup (optimisation) of print_section and print_section_block 2003-07-12 06:52:26 +00:00
moodler
54c1a20cba Strip tags from Window title 2003-06-03 03:23:29 +00:00
moodler
958facf055 Better cleanup of site description meta tag 2003-05-17 03:46:31 +00:00
moodler
c6a0f9d5bf Minor touch-ups to the front page HTML 2003-05-15 14:02:13 +00:00
moodler
984a8bf349 Two new language variables implemented.
langmenu  - turns the language menu on and off
langlist  - allows the admin to restrict and/or re-order the available language choices
2003-05-03 06:50:29 +00:00
moodler
3565715c76 Moved the "turn editing on" button and tidied some other things up a bit 2003-05-03 05:57:29 +00:00
moodler
55271c3047 Removed save_session() - no longer needed 2003-02-27 02:43:34 +00:00
paca70
1924074c76 Added support for nonadmin course creation.
Course creators are managed by /admin/creator.php , same way that admins.
Or if authetication module have 'auth_iscreator'-function (right now only ldap-module have) ,
users are added to creators at login time.
2003-02-24 18:48:55 +00:00
moodler
789a2500eb Slightly better formatting ... needs work still I think 2003-01-20 08:22:53 +00:00
moodler
3e9b5d5a90 Moved session lang setting into setup.php (works on all pages) 2003-01-20 08:09:25 +00:00