dhawes
37fe05a345
added in an extra layer of cache. The rendered string is now cached in block's config. If the config settings are changed the config entry is overwritten and the cached string is lost - which is perfect - it gets rebuilt to the new specifications on next page load. If the filesystem cache has expired then the stored config string is ignored and a fresh read is sought.
2005-01-21 03:23:26 +00:00
dhawes
6cee965c7a
minor spacing cleanup
2005-01-21 03:20:56 +00:00
moodler
4b22e391e4
Don't show message shortcut icons when not logged in
2005-01-21 02:29:29 +00:00
dhawes
d6501ee371
if there are multiple feeds within a single block the title of each feed is shown with a horizontal rule between feeds
2005-01-20 01:32:58 +00:00
dhawes
53034e080a
now displays a link to the full error text if there is a problem loading a feed (and debug is on) rather than display the full text inline
2005-01-19 23:59:21 +00:00
dhawes
7530140579
I couldn't find a way to do this so I added this file. When an RSS feed fails to load and debug is on the rendered page could get quite ugly. I now capture the error into a string and simply show the user a 'load feed error' link pointing to this new error page. This new error page simply displays the full error message with more detail about why that particular feed failed to load (from file or url, etc)
2005-01-19 23:55:25 +00:00
mjollnir_
b2597e0bad
Initial support for postgres for rss client block table
2005-01-18 21:58:28 +00:00
dhawes
221a85301e
using localized string instead of hard coded english for print header functioncall
2005-01-17 23:22:16 +00:00
stronk7
f516e2b9cf
Changed required templib.php to rsslib.php. This will, at least, allow to
...
install and use 1.5dev. Not completely, but usable...
2005-01-17 17:12:24 +00:00
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