387 Commits

Author SHA1 Message Date
moodler
a702e65741 At site level, admin can see user posts from ALL courses 2005-04-11 08:43:28 +00:00
stronk7
95c67e2fe1 Now xxx_print_recent_mod_activity() supports filterall.
(assignment, forum, quiz and workshop)
2005-04-02 23:19:01 +00:00
moodler
5c8d186608 Removed some cellspacing to help IE 2005-04-02 14:06:53 +00:00
stronk7
ac21ad392d Now course/recent.php works under PHP5.
See bug 2828
(http://moodle.org/bugs/bug.php?op=show&bugid=2828)

Merged from MOODLE_14_STABLE
2005-04-02 11:32:22 +00:00
stronk7
c78ac79818 Now discussion->name works under filterall. 2005-03-26 17:11:30 +00:00
stronk7
17dc3f3cc6 Now post->subject works under filterall too. 2005-03-26 11:43:16 +00:00
stronk7
3849dae80f Now the FIRST string working under CFG->filterall is done:
forum->name
(everything tested but email)

(I'm going to maintain a list of strings in Developers Wiki)
2005-03-26 01:57:40 +00:00
moodler
7105cf8d21 More generic indent tag 2005-03-24 02:37:11 +00:00
martinlanghoff
0362d553eb Merged from MOODLE_14_STABLE - More efficient SQL UPDATE in forum_mark_old_posts_as_mailed() -- improves performance under PostgreSQL. 2005-03-20 23:13:18 +00:00
moodler
4f321bdb3d SOme necessary fixes to searching to allow arbitrary SQL to be added to the
search, and also removed some old stuff
2005-03-20 12:05:58 +00:00
moodler
7ff9860db0 This change will break themes for sideblock, but now all the main TH cells that use
the standard kind of look (eg gradient) have a consistent class "th.header"
2005-03-13 13:50:23 +00:00
stronk7
c206050394 Old bug introduced in lib.php 1.280. It was causing a lot of mails being sent
instead of the 2 days limit. Bug 2716
(http://moodle.org/bugs/bug.php?op=show&bugid=2716)
2005-03-10 20:26:25 +00:00
moodler
8f7dc7f1c7 Variety of small fixes, but mostly related to how the recent activity
block is constructed.  A new function exists to pump these notes out
in a standard way :  print_recent_activity_note.

Module dependencies also updated because of this.
2005-03-10 13:30:57 +00:00
defacer
6f1cc8d63c Simplified by removing two optional parameters from forum_print_search_form,
because everyone was using the same values for them!

Also renamed the function to simply forum_search_form, because in the end
noone was using it to PRINT html, it was just put into a variable.
2005-03-09 20:50:37 +00:00
moodler
0efb3c3d1d Prevent guests from making ratings in forums 2005-03-08 17:59:57 +00:00
moodler
af328e4b14 Speed and beauty improvements when displaying discussion listings 2005-03-08 17:32:08 +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
moodler
f1e0649c1c Removed files/mimetype.php and put it into lib/filelib.php instead
where it always should have been.
2005-03-07 11:32:03 +00:00
moodler
baa2f74e1c Default old posts from 60 > 30 ... 2005-03-04 05:59:22 +00:00
mchurch
226f79e03a Corrected a typo that was throwing errors. 2005-03-04 05:36:26 +00:00
mjollnir_
cf4a271d64 Reworking join to make it compatible with postgres 2005-03-03 23:19:19 +00:00
moodler
77ffdf4b4c Finishing off search capability with the ability to search by instance,
and in this case, by forum.
2005-03-03 12:22:13 +00:00
moodler
3320057725 Cellspacing 0 for forum posts to help poor little IE 2005-03-01 17:16:57 +00:00
mchurch
1051a2a4a0 Improved speed of database calls for read tracking. 2005-02-28 21:31:13 +00:00
moodler
4e471fc62a Forum searching now allows searching by date, and no longer has confusing help. 2005-02-28 12:40:29 +00:00
defacer
f99fcffeb9 Fix for bug 2648: call-time pass by reference has been deprecated, the constructor
of search_lexer now accepts the parser argument by reference all... one time it's called :)
2005-02-28 00:30:39 +00:00
defacer
0b5257c351 Bugfix for bug 2653 (visual glitch).
Better and less HTML for the "block" version of forum_print_search_form().
2005-02-27 20:32:56 +00:00
moodler
b23c06ada1 Show link even when no discussions 2005-02-27 10:12:45 +00:00
moodler
173dbed416 Added a link from the user page to a search for all posts.
It works but it's not very pretty ... feedback welcome!
2005-02-27 10:08:13 +00:00
moodler
e6ae4dc8dd Much better "full" search page. Still needs some polishing.
Also, you can now search for all posts by one user.  Which brings me to my
next check-in....
2005-02-27 09:57:31 +00:00
moodler
f0b8884d08 Added search help to the small search forms (big search form coming next) 2005-02-26 08:52:03 +00:00
moodler
d5bbc5568b A few minor changes for XHTML compatibility and general tidy up. (SE) 2005-02-25 13:20:48 +00:00
gustav_delius
1c887009ab fixed single quote bug that led to $post->subject being displayed. 2005-02-24 22:24:03 +00:00
moodler
5b257acd23 Merged fix for 2613 2005-02-21 15:39:44 +00:00
moodler
a48e8c4b7e Efficiency for forum_count_discussion_replies() from stable 2005-02-18 08:00:00 +00:00
gustav_delius
56c0715e77 The teacher forum has no coursemodule and this led to errors in particular in forum_print_latest_discussions(). 2005-02-18 06:41:12 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
moodler
c8680d86e9 Remove html around paging bar 2005-02-16 07:41:29 +00:00
moodler
c2b552feeb Some fixes to styles etc 2005-02-16 07:35:57 +00:00
moodler
f51e8d7ed6 FIxed up styles and lots of quotes 2005-02-16 06:17:31 +00:00
moodler
d3583b418b Checking in what I've got so far here ... lots to do. 2005-02-15 17:27:52 +00:00
gustav_delius
c7a5b3b1f7 Forum search now no longer shows posts from other groups from forums that are in separate groups mode, see bug 2308 2005-02-13 20:49:28 +00:00
moodler
0d2c0cfdf8 Added a little class to the "edited by" line 2005-02-13 17:26:13 +00:00
moodler
0936de64a5 Add an "edited by" message to posts when they have been edited by a
different person from the original poster.   See bug 2392
2005-02-13 17:20:17 +00:00
gustav_delius
e3ff14ca3c Fixed bug 2392 2005-02-13 16:41:12 +00:00
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
moodler
425b4f1abe Err, fixed a typo 2005-02-12 15:56:03 +00:00
moodler
4e00a4d923 A new discussion is now marked read by the current user right away 2005-02-12 15:01:39 +00:00
moodler
3a68fbbb04 Show group icon or group name on the discussion listing 2005-02-12 14:53:48 +00:00
defacer
83a305a7e7 Renaming some $course to $courseid to make it clear to anyone reading the code... 2005-02-08 01:34:14 +00:00