Commit Graph

114 Commits

Author SHA1 Message Date
Charles Fulton 4f54f20d78 MDL-32230 block_rss_client: remove extra cleaning step 2012-09-18 01:23:02 +02:00
Petr Skoda f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Gerard (Gerry) Caulfield bc9cc60191 MDL-29178 Fix block naming inconsistencies 2012-02-24 16:28:17 +08:00
Petr Skoda 138c76789b MDL-29014 fix a few incorrect uses of strlen and substr 2011-09-10 10:21:31 +02:00
Dan Poltawski ac9695e5d8 MDL-26285 block_rss_client - do not disable with enablerssfeeds
This setting was used in 1.9 and below to control feed generation only, not
for RSS consumption.
2011-07-06 21:10:43 +01:00
Andrew Davis 77fb01833e rss MDL-25563 made the rss block unescape item URLs to prevent double escaping 2010-12-09 03:02:26 +00:00
Sam Hemelryk 367a75fae4 themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.
2010-11-05 02:53:47 +00:00
Petr Skoda dd4bee83ae MDL-24321 switching to stdClass in /blocks/ 2010-09-21 08:10:17 +00:00
Petr Skoda 43ba7a54c2 MDL-23980 finally removed the sloppy urldecode() that was just a workaround for the regression in simplepie itself 2010-08-28 13:57:03 +00:00
Andrew Davis d0ce3d0300 rss MDL-23734 fixed rss block link back to item parents ie the forum itself 2010-08-10 02:41:38 +00:00
Andrew Davis a30ec92268 rss MDL-23588 rss block now filters urls contained within rss feeds 2010-08-02 07:24:49 +00:00
Andrew Davis cdb4a88d1a rss MDL-23588 refactored rss block to use html_writer 2010-08-02 02:36:17 +00:00
Andrew Davis 4fdb592ebb rss MDL-23588 unescaped urls in the rss block 2010-07-30 08:27:04 +00:00
Petr Skoda 8571833f0b MDL-23069 moving version and cron info into standard version.php - finally, yay! 2010-07-04 12:18:22 +00:00
Petr Skoda 4ca6cfbfd4 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:00:47 +00:00
nicolasconnault b58961acaa MDL-20565 When editing is off, hiding blocks whose sub-system is disabled at site level. When editing is on, printing a "[subsytem] is disabled" message. 2009-10-15 01:36:50 +00:00
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 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 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
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 e92c286c20 block contexts: MDL-19098 every block should have a context
even non-course and sticky blocks.

The parent context is block_instances.parentcontextid.

The block context should be used for checking permissions directly
related to the block, like moodle/block:view or moodle/site:manageblocks.

However, if the block is displaying information about the current page,
for example the participants block showing who 'here', then it may be
better to use the context of the page where the bloack is appearing -
in other words $this->page->context - to check permissions about the
user's ability to see participants here.

Or, if the block is displaying something stronly related to courses,
for example, a course meny block, the block should probably use the
context for $this->page->course to check permissions.
2009-07-13 08:37:34 +00:00
tjhunt f4d76b9cdf blocklib: MDL-19010 fix some minor problems with existing blocks. 2009-06-05 08:28:45 +00:00
tjhunt f474a4e583 blocks: MDL-19010 Fix further blocks-related breakage, including removing all references to blocks_insance_old outside blocklib.php 2009-05-07 08:55:10 +00:00
tjhunt cb6402296c blocklib: MDL-19010 remove no-longer-necessary global variable use from blocks 2009-05-06 09:28:26 +00:00
tjhunt 3179b0006a blocklib: MDL-19010 Fix blocks that were relying on ->instance in an unfortunate way 2009-05-06 09:15:33 +00:00
tjhunt ad52c04f4c moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
Jonathan Newman 4d933beb8a cvsimport fixups 2009-01-20 23:53:34 +00:00
skodak f432bebff2 MDL-11421 context levels fixed in capability definitions, sorting of caps by name, plug-ins may report used core caps, fixed some risks; merged from MOODLE_19_STABLE 2008-07-24 21:59:13 +00:00
skodak f28f2d9022 MDL-14679 towards blocks conversion 2008-06-02 20:15:51 +00:00
skodak df61da5331 MDL-14027 cron sometimes hangs in rss_client block; merged from MOODLE_19_STABLE 2008-03-23 16:24:29 +00:00
moodler 433c242f1a Merged new block versions from 1.9 2008-03-03 11:43:32 +00:00
moodler 2ace936bbd MDL-11960 Hide RSS block on tag pages 2008-02-29 07:05:12 +00:00
moodler 874da31fcd Merged a notice fix 2008-02-20 08:11:02 +00:00
moodler 92efb8f2dc Merged fix for notice when feed dies 2008-02-01 03:06:11 +00:00
skodak 5c10879f55 MDL-11814 use system context for pinned blocks; merged from MOODLE_19_STABLE 2007-12-20 16:25:49 +00:00
scyrma 8e4636c26f Fix a bug passed on after commit of by http://lists.moodle.org/arc/commits/2007-12/msg00352.html
There shouldn't be html tags in this place.
2007-12-19 05:58:27 +00:00
poltawski 325744cb14 MDL-9851 - RSS block links previously used to open in new window. Restoring this
behaviour. Had to tweak the cleaning to ensure the JS hack for XHTML complaint new
window gets through. Merged from MOODLE_18_STABLE
2007-09-03 10:26:44 +00:00
stronk7 6aad3d297e Fix one-character-wrong-indentation. Nothing important. 2007-07-31 19:34:20 +00:00
stronk7 f0aae42f41 rss_client cron added. Min time between executions set to 5 mins. And
online fetching will use a double caching time, so chance of caching
feeds by the cron process will be near 100%. MDL-9292
2007-07-31 18:52:38 +00:00
stronk7 9c6808457e Moving block_rss_timeout to block_rss_client_timeout. Work in progres... 2007-07-31 17:05:50 +00:00
stronk7 88dffda52c Cleaning some trailing spaces here and there. 2007-07-30 17:11:55 +00:00
nicolasconnault 5db0cffcf6 MDL-8922: Had to modify another bunch of files to fix a simple problem:
when a config block contains a form, the previous form needs to be closed
properly (it was, but there were non-matching closing divs etc...).
2007-03-26 03:06:45 +00:00
poltawski f419655de9 MDL-8922 Some Xhtml fixes, merged from MOODLE_18_STABLE 2007-03-15 16:58:16 +00:00
skodak efe12f6c22 MDL-8524 general roles cleanup; MDL-8373 authenticated user role now created during upgrade from 1.7.x, xhtml and CSS cleanup in roles GUI; accesslib inline docs cleanup; risk bitmask fixes 2007-03-05 11:27:01 +00:00
skodak 440d164869 MDL-7861xhtml strict and css fixes in blocks 2007-01-09 23:45:24 +00:00
nfreear 808c2a69fe Adding space in channel <img /> element. Minor whitespace cleanup. 2006-12-01 10:10:56 +00:00
skodak 810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
skodak 45155244af better cleaning of rss feeds SC#328; merged from MOODLE_17_STABLE 2006-10-24 22:40:07 +00:00
toyomoyo 8c449ca33f merged fix for 6884 2006-10-17 06:25:50 +00:00