47 Commits

Author SHA1 Message Date
Ben Kelada
5f219cf181 MDL-372 forum: Improve pinning and update for Moodle 3.0 2016-01-13 02:01:26 +00:00
Adam Olley
1e36665719 MDL-50993 forum: Display timed posts/discussions in a logical order
Users that don't have permission to view timed posts outside of the release
time frame will have discussions that have entered the visible frame appear
in an odd order from their point of view on the discussion list.

Example:
Discussion 1, modified 2015-01-01, hidden till 2015-01-03
Discussion 2, modified 2015-01-02, not hidden

The standard 'modified descending' order means that D2 is listed at the top
even after D1 becomes visible. When scanning the list of discussions for new
posts, the user could be tricked into thinking they'd already read it.

This fix instead takes into account the release time of the discussion when
timed forum posts are enabled.

I opted to use CASE statements to handle this instead of GREATEST as the
latter is not supported by MSSQL.
2015-10-19 04:04:58 +00:00
Sam Hemelryk
f25a6839fd MDL-44120 block: tidied up block @package uses 2014-02-16 12:17:14 +13:00
Mark Nelson
d448625682 MDL-37414 blocks: re-added the ability to add some blocks to the My Moodle 2013-01-22 10:52:41 +08:00
Mark Nelson
bfe20414c0 MDL-36455 blocks: removed ability to add blocks to the My Moodle page that did not make sense in that context 2012-12-18 11:32:35 +08:00
Dan Poltawski
f534c1c0c0 MDL-31599 block_news - incorrect RSS feed for guest user
Was previously using the userid 0, rather than guest to use
authenticated RSS feed.

Thanks to Paul Verrall at LUNS for helping me debug this.
2012-08-02 11:11:11 +08:00
Frederic Massart
fe2fdd11e4 MDL-34456 Librairies: Replaced deprecated get_context_instance() 2012-07-24 09:49:47 +08:00
Michael Aherne
7edfa373fd MDL-24298 news block Remove "more" link for improved accessibility 2012-07-17 09:53:46 +01:00
andyjdavis
d95a02faa9 rss MDL-24870 latest news block was supplying the wrong context ID when creating its RSS feed link 2011-02-03 15:24:27 +08:00
Petr Skoda
3bcc53cd83 MDL-25607 respect visibility of news forum in the Latest news block 2010-12-09 06:23:18 +00:00
Andrew Davis
aa60291e12 rss MDL-23391 alter the rss urls to be component names ie mod_forum instead of just module name ie forum 2010-07-19 10:57:52 +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
Patrick Malley
29ef7d4fe6 Working on Boxxie, Canvas, and Formactor 2010-05-16 22:57:31 +00:00
Andrew Davis
6444367ce1 rss MDL-22204 fixed rss autodiscovery and some strings in the UI 2010-05-13 08:25:56 +00:00
Andrew Davis
b3a7e5f33b rss MDL-22204 fixed rss autodiscovery and some strings in the UI 2010-05-13 08:23:42 +00:00
Andrew Davis
fcce139aa3 RSS MDL-22204 committing new RSS code. Uses a token to ID the user. RSS feeds also generated/updated as needed rather than by cron.php 2010-05-02 11:43:57 +00:00
Petr Skoda
8e5c60bd56 MDL-22054 converting block name strings to pluginname
AMOS START
 MOV [latestnews,core],[pluginname,block_news_items]
AMOS END
2010-04-11 11:29:39 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +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
tjhunt
cb6402296c blocklib: MDL-19010 remove no-longer-necessary global variable use from blocks 2009-05-06 09:28:26 +00:00
stronk7
5e71406d93 MDL-14998 - roles: User needs to have mod/forum:viewdiscussion to be able to see news block. Merged from 19_STABLE 2008-10-31 19:05:56 +00:00
moodler
433c242f1a Merged new block versions from 1.9 2008-03-03 11:43:32 +00:00
skodak
dd97c32868 MDL-12945 a slightly bigger patch for performance in recent activity and various group related issues + some other fixes - see list of subtasks in tracker; merged from MOODLE_19_STABLE 2008-01-24 20:33:50 +00:00
skodak
fffa8b358f MDL-12926 Discussion list shows all discussion in separate mode if user not member of any group and does not have accessallgroups; merged from MOODLE_19_STABLE 2008-01-11 13:09:51 +00:00
skodak
d9bf198292 MDL-10939 converting news_item block too 2007-09-07 09:43:14 +00:00
Martin Langhoff
08103c9364 cvsimport fixups 2007-07-07 14:18:30 +12:00
moodler
1519aa2b71 Merged fixes for latest news from 1.8 MDL-9308 2007-04-15 07:26:23 +00:00
nfreear
5489fce7f7 Fixes MDL-6548 "... block should use lists" - blocks: blog tags, news items, recent activity - forum. 2007-03-01 11:13:37 +00:00
moodler
99b054e4e8 SMall Strict fix 2007-01-06 05:06:35 +00:00
toyomoyo
17d6a25e5c adding capabilitiies 2006-09-13 09:08:14 +00:00
moodler
1a2ea6f488 Merged $course -> $COURSE fixes from 1.6 stable 2006-05-29 08:17:57 +00:00
mjollnir_
0d6b9d4f4d MyMoodle: new /my/ page, contains course overview (module based, forum done). User defined blocks on /my/ page, admin defined stickyblocks. Needs lots of testing. Held off bumping version.php for blocks because of the postgres upgrade fixes Patrick is putting in. 2005-08-16 00:25:39 +00:00
moodler
49f7d01d2b Changed spans to DIV, and fixed non-XHTML tag 2005-05-14 02:51:34 +00:00
moodler
f39bba50d6 Added RSS feed to latest news block 2005-05-02 04:13:29 +00:00
stronk7
c3cb9fb9a7 The news_items block is working with the new filterall style. 2005-04-10 23:02:19 +00:00
moodler
0710337efe Brought some styles into line 2005-03-10 13:28:51 +00:00
moodler
6580d0af68 Updated version, since it's a significant re-write 2005-03-08 14:36:03 +00:00
moodler
90ec387a54 Major gain in efficiency for the latest news block and better styles
Still working on more improvements here
2005-03-08 12:58:51 +00:00
defacer
3ef642d96a Implemented discussion from bug 2547:
* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
  instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience
2005-03-02 19:22:26 +00:00
moodler
e889941458 Just some quotes 2005-02-28 07:10:08 +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
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
moodler
fbc6c4295f Changes for XHTML compatibility 2004-10-07 11:24:31 +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
675dbdd9f5 FIxed some notices when installing Moodle fresh 2004-08-11 09:00:53 +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
stronk7
0f3fe4b6ad First Official realease of the "Blocks System".
Integrated with Moodle:
    - Install automatically.
    - Update course->blockinfo for each course at installation time.
    - Modified course creation to insert into blockinfo field.
    - Modified restore to insert into blockinfo field.
    - Admin options (hide, show, delete, config) from admin page.
    - Lang strings inserted (en only).
    - Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.

TODO:
=====
Support it really in backup/restore.
????

Enjoy!! Ciao :-)
2004-04-18 23:20:53 +00:00