303 Commits

Author SHA1 Message Date
defacer
abea5d6940 Fix for bug 2371:
The alt text is now the same as the tooltip for the block control icons in
editing mode (i.e., language pack configurable).
2005-01-17 14:51:18 +00:00
defacer
1a33f699b2 Merging fix for bug 2264 & improvements from MOODLE_14_STABLE 2005-01-12 11:40:46 +00:00
defacer
67677908a0 Fixing the alt attributes for the icons used to move/hide etc. blocks when
editing is on. Also a few minor corrections for things inside comments.
2005-01-11 19:38:19 +00:00
moodler
99f40f4188 Prevents a notice on installation 2005-01-11 14:04:31 +00:00
moodler
792197b095 Added cookie detection, based on Petr's code. Thanks!
A notice will be printed on the login page if the session cookie can not be set.
2005-01-11 12:43:29 +00:00
gustav_delius
3cebccea7b defined $timeago 2004-12-31 20:42:53 +00:00
defacer
a2017e62da Latest updated guide. The Appendixes need more work but up till there
it's pretty much final.
2004-12-31 16:35:29 +00:00
fiedorow
ff4bc07f7e fixing an instance of hardcoded /admin/ 2004-12-31 16:08:26 +00:00
moodler
c2a75e442c Some HTML tidyups 2004-12-31 08:51:21 +00:00
moodler
839bbd4d10 This block now works without blog 2004-12-31 07:42:22 +00:00
dhawes
9723afd1d0 bug fixes 2004-12-31 03:38:22 +00:00
dhawes
fd6360ecac minor bug fixes 2004-12-31 03:11:03 +00:00
dhawes
e999246f3f bug fixes - had let a blog specific function sneak back in 2004-12-31 02:22:30 +00:00
moodler
b1b4e59618 Minor fixes 2004-12-31 01:53:59 +00:00
dhawes
92ce1eb2ef Updated for better reporting when loading from remote url fails. Now displays error when adding URL when it cannot load even when ->debug is off. Added new feature - select multiple feeds to display in each block instance. 2004-12-30 18:08:38 +00:00
moodler
caa0f2ffa2 No need to show profile editing link to guests 2004-12-28 17:52:05 +00:00
moodler
b603ccb72c Hide Messages block from guests 2004-12-28 17:50:35 +00:00
moodler
bc8ccf6b18 First quick go at a Messages block. Needs polishing but seems to work. 2004-12-28 16:34:13 +00:00
moodler
7ccab9b1d5 Added messaging buttons to the online users list 2004-12-28 13:50:17 +00:00
moodler
1376ebb1c1 Undoing the "login as student" link that chooses a student at random. 2004-12-27 02:29:46 +00:00
gustav_delius
48d3eadabc I have put a "Login as Student" link into the admin block. 2004-12-26 20:18:24 +00:00
dhawes
a7c17aa0c7 fixed lang string reference and added link to add/edit feeds from admin page 2004-12-17 03:39:10 +00:00
dhawes
12a33d9ff6 oops, this should have been put in the moodle/lang folder. moving 2004-12-14 18:10:48 +00:00
dhawes
72035d793e first add of new rss client block. please take a moment to test its features and provide feedback 2004-12-14 18:09:20 +00:00
gustav_delius
adfefeb12a $this->course was used but not defined. 2004-12-07 07:32: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
db019d9358 Ummm... more changes due to the renaming. 2004-11-25 17:35:25 +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
defacer
e89d741af3 New naming conventions for class names to bring them in line with the
rest of Moodle. The convention for blocks is now:

class block_something extends block_base { ... }

HOWTO updated accordingly, plus some more minor polishing. More to come.
2004-11-23 18:53:34 +00:00
moodler
735547525a Added dummy constructor to keep PHP5 happy. 2004-11-22 16:09:06 +00:00
moodler
35a0379ac2 Merged sesskey fix in social activities block from stable 2004-11-22 14:44:24 +00:00
defacer
331063054a Slight change to the HOWTO to be more clear.
Removed the $course var from MoodleBlock (useless now).
2004-11-20 19:36:47 +00:00
defacer
9e094fd54b Silly me... forgot to update url_get_path when I moved this thing in here. 2004-11-19 03:29:16 +00:00
defacer
db9b01eda2 Proof of concept for the things you can do with the new Blocks and Pages APIs.
What's important to stress here is that this demo is completely self-contained;
it does not require modifying ANY core Moodle code.
2004-11-19 03:16:56 +00:00
defacer
f8582e3e0a Tweaked class MoodleBlock some. Removed a useless function (how did it get in here?)
and renamed handle_config(), print_config() to config_save(), config_print() for
consistency with the new instance_ functions().

Removed that old and obsolete README file.
2004-11-19 02:41:32 +00:00
defacer
2456d7c815 Updated the two standard blocks that have configuration features to work
with the latest version of the Blocks API.
2004-11-19 02:36:57 +00:00
defacer
833d033623 First version of the Developer Documentation: Blocks how-to.
Still a bit rough around the edges and definitely will see refining.
Almost killed me, though. I hope it turns out to be useful.
2004-11-19 02:32:48 +00:00
moodler
ade736f13c When there are no courses to list in the block, then include a link for adding one. 2004-11-18 06:33:23 +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
dhawes
e0134f842c added comments and some spacing cleanup 2004-11-10 16:43:57 +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
defacer
681ad23b3d Bugfix: The table prefix_block in blocks/db/postgres7.sql was incorrectly constructed as prefix_block.
Thanks to Penny Leach for pointing it out.
2004-11-08 19:18:19 +00:00
paca70
1b2a38043b Theres no enums in postgresql 7.x. Fix for this. 2004-10-31 14:36:35 +00:00
dhawes
c7e3bc51e2 spacing updates and addition of some phpdoc comments 2004-10-28 01:26:33 +00:00
dhawes
d041e44fb1 spacing, tab and quote cleanup 2004-10-28 00:10:29 +00:00
dhawes
6195e04a9d clarified comments and added some spacing. 2004-10-25 03:30:48 +00:00
dhawes
43038ce6d7 added comment for new specialization function 2004-10-25 00:09:47 +00:00
dhawes
59b2920778 added spacing 2004-10-24 21:49:58 +00:00
jpuntd
e633cfff62 *** empty log message *** 2004-10-24 20:09:05 +00:00
dhawes
e1b8bdf8e3 some spacing added 2004-10-24 15:52:25 +00:00