1050 Commits

Author SHA1 Message Date
poltawski
612e3be501 blocks/rss_client: MDL-13932 - alter output formating
Doesn't make much sense to have FORMAT_MOODLE for external
rss content.
2009-08-05 16:38:27 +00:00
poltawski
28dd2513a2 block/rss_client: MDL-19990 Make feed discovery configurable
Simplepie will try quite aggresively to autodiscover rss feeds by
default. Make this configurable when adding a feed and also store
the autodiscovered location rather than the input location.

I also removed the feed validator as this doesn't make much sense with
feed autodiscovery, and I think we can improve simplepie integration to
do this instead
2009-08-03 16:56:53 +00:00
skodak
0a127169fe MDL17980 reverting last commit - other devs agreed, to be explained in tracker 2009-08-03 07:35:41 +00:00
peterbulmer
1b509b3699 MDL17980 mnet improvements
* Allow multiple roles to be allocated by identity provider
* Allow existing enrolment plugins to manage mnet enrolments


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-08-03 03:38:23 +00:00
poltawski
8887711be4 blocks/rss_client: MDL-13932 Fix typo when editting feed
This caused loss of which course we were adding/edditing a feed to.
2009-07-31 21:20:35 +00:00
poltawski
3095d19932 blocks/rss_client: MDL-13932: viewfeed.php typo
link -> description
2009-07-31 21:20:21 +00:00
poltawski
5966474298 blocks/rss_client: MDL-13932 Incease timeout when adding feeds
In order to stop 'slow loading feeds' causing performance problems
with standard moodle pages, i've set the timeout for simplepie quite
low. When cron runs i've set this timeout high and cache duration low.

The intention is that cron does all the hard work of connecting to remote
sites and users get this fast fast fast from cache.

However, in the case of adding a feed its probably better to try and get the
feed more agressively..
2009-07-31 21:19:55 +00:00
poltawski
6d2382b6d7 blocks/rss_client: MDL-13932 fix config_shownumentries typo
This caused incorrect rules/defaults to be added

Also add client side validation of the number
2009-07-31 21:19:37 +00:00
moodler
e530f3a97b blocks MDL-19010 Fixed a typo to make the title a string 2009-07-31 04:18:57 +00:00
moodler
e54f4a78cc blocks MDL-19010 Slight reordering of logic to allow titles to be changed by block get_contents (credit to tim) 2009-07-31 04:17:09 +00:00
poltawski
d175fe4c53 lib/simplepie MDL-7946 - improve simplepie defaults
- Specify default low connect timeout in order that 'interactive' pages are
  not slowed down by slow feeds
- Set default cache feed duration of 1 hour

In RSS feed block:
- Try really hard in cron to retreive the feed
- Set the cache duration low in order to help cron refresh the cache
2009-07-30 18:57:19 +00:00
poltawski
e760cced27 block/rss_client MDL-19970 - feeds failed to be deleted
The removing the rssfeed from cache is no longer relevant with simplepie,
but i'll create a bug to investigate clearning the cache.
2009-07-30 13:52:05 +00:00
tjhunt
2cdb8d8452 blocks: MDL-19893 move blocks on page UI - part 2
This updates the DB.

I beleive this is correct, but it is very hairy and badly needs unit tests.
2009-07-30 10:29:14 +00:00
tjhunt
00a24d44f7 blocks: MDL-19893 move blocks on page UI - part 1
This does all the UI. It does not yet update the DB when you click to complete the action.
2009-07-30 08:22:12 +00:00
nicolasconnault
52fa87553e MDL-19791 Fixed call to add_action 2009-07-30 06:29:38 +00:00
tjhunt
d14edf06ee blocks: MDL-19399 proper permissions checks for editing blocks.
In particular for editing sticky blocks. If the admin addes one at site level,
then the teacher should not be able to change its configuration from
the course page, but should be able to set the position on this page.
2009-07-30 03:44:10 +00:00
poltawski
53fe72ee1f block_rss_client/rsslib MDL-1393 Clean up
- Remove obsolete magpie configuration
- Remove block_rss_client_submitters which has not been used for some
  time
- Remove some block_rss_client setup from rsslib.php
2009-07-29 14:10:15 +00:00
poltawski
0864a0837b block_rss_client: MDL-13932/MDL-7946 - Switch to use Simplepie
Simplepie is actively maintained and supports a broader range of feeds
2009-07-29 13:44:28 +00:00
poltawski
6dcf276fb2 block_rss_client: MDL-13932 Fix equality typo 2009-07-29 13:13:04 +00:00
tjhunt
f1a34d8f05 block_rss_client: MDL-13932 Clean up a lot of the crap.
This was all in order to do MDL-19889!

* The old tabbed interface is gone.
* The manage feeds UI has been completely rewritten to be a few
separate sane scripts like managefeeds.php, editfeed.php and viewfeed.php
* This is used from both Admin -> plugins -> blocks ... and as a link from the block edit_form.php
* new edit_form.php for the block replacing config_istance.php.
* A lot of stuff to do with UI specific to this block has been removed from rsslib.php
2009-07-29 11:18:55 +00:00
tjhunt
f34b1a71a0 blocks: MDL-19889 Convert mentees block to use edit_form.php 2009-07-29 05:19:39 +00:00
tjhunt
b4a2d7f711 blocks: MDL-19889 Convert blog tags block to use edit_form.php - fix comment typo. 2009-07-29 05:13:34 +00:00
tjhunt
603c0789cb blocks: MDL-19889 Convert blog tags block to use edit_form.php 2009-07-29 05:12:47 +00:00
tjhunt
6526cc3468 blocks: MDL-19889 Convert random glossary block to use edit_form.php 2009-07-29 03:57:56 +00:00
tjhunt
c6084d31b4 blocks: MDL-19889 Convert quiz results block to use edit_form.php 2009-07-29 03:55:12 +00:00
tjhunt
a23bbaa30b blocks: MDL-19946 More bug fixes. 2009-07-29 03:51:16 +00:00
tjhunt
a19f419db2 blocks: MDL-19946 Block editing form must be displayed from the original URL, with properliy initialised $page 2009-07-28 09:59:21 +00:00
stronk7
4e1cb3397e MDL-18901 formatXXX fields - changed missed occurrence 2009-07-26 09:36:14 +00:00
dongsheng
346ac86b10 "MDL-19839, comments block" 2009-07-24 02:52:09 +00:00
dongsheng
1bcb7eb540 "MDL-19118, comments api" 2009-07-24 02:44:44 +00:00
tjhunt
d81f1d6fd8 blocks editing: MDL-19889 edit tag_flickr block form. 2009-07-21 10:32:34 +00:00
tjhunt
f1ec6a630c flickr and youtube blocks: don't call print_error!
That screws up the entire page the block appears on, when this is just an error local to this block.
2009-07-21 10:32:04 +00:00
tjhunt
7b2b1a915c blocks editing: MDL-19889 edit tags block form. 2009-07-21 09:45:27 +00:00
tjhunt
5f3d8dd52b blocks editing: MDL-19889 edit tag_youtube form. 2009-07-21 09:23:29 +00:00
tjhunt
a60bdd8cfd blocks editing: MDL-19889 tidy up HTML form class. 2009-07-21 09:20:44 +00:00
tjhunt
4092803615 Clean up some more todos. 2009-07-17 08:26:13 +00:00
tjhunt
1428f47181 block/search: Eliminate todo that was already done, and clean up whitespace. 2009-07-17 08:07:50 +00:00
tjhunt
f7acfadd0a admin block: MDL-16693 fix todo. 2009-07-17 07:46:04 +00:00
tjhunt
9ce7265cd0 admin bookmarks: remove useless todo. 2009-07-17 07:42:21 +00:00
tjhunt
73e2e5c03d blocks editing ui: MDL-19398 Can now edit the position of any block.
I think this is probaby insecure at the moment. I am still working on it.
2009-07-16 11:05:26 +00:00
tjhunt
1d13c75c15 blocks editing ui: MDL-19398 Can how precisely control block positioning using the edit icon
This mostly works now, but ...
* The UI needs further work. In particular we need a non-advanced mode.
* This only works for blocks that use a new edit_form.php to replace config_instance.html.
* .. and so far I have only implemented edit_form.php for the HTML block so far.
* Needs to be enabled (with no block-specific config) for blocks without instance config, so you can control their positioning.
2009-07-16 10:50:19 +00:00
tjhunt
ec972adefe Fix boilerplate. 2009-07-15 08:59:51 +00:00
tjhunt
15a00b4be0 blocks editing ui: MDL-19398 Remove stupid pass by reference.
Was causing errors when this method was called via block_method_result
2009-07-15 08:55:52 +00:00
tjhunt
7cf51142ab blocks editing ui: MDL-19398 Make block config_global.html files more strongly deprecated. 2009-07-15 08:52:33 +00:00
tjhunt
bc422e6955 blocks editing ui: MDL-19398 Make invisible blocks at least partly invisible. 2009-07-15 07:45:48 +00:00
tjhunt
ae42ff6fee blocks editing ui: MDL-19398 showing and hiding blocks now works. 2009-07-15 07:41:25 +00:00
tjhunt
1936f20b8b blocks editing ui: MDL-19398 move generating the block edit icons to blocklib.php
Since that is where the resulting actions are processed.
2009-07-14 10:57:06 +00:00
tjhunt
b97fb57fe3 fix typo 2009-07-14 09:35:33 +00:00
tjhunt
a2789e3426 blocks editing ui: MDL-19398 add block now secure. Delete block works insecurely.
Will add security checks in a moment.
2009-07-14 08:37:28 +00:00
tjhunt
f674ec8640 blocks: MDL-19010 show empty blocks if they have controls. 2009-07-14 07:06:06 +00:00