567 Commits

Author SHA1 Message Date
moodler
556963f5f1 Much more user-friendly for guests 2005-03-06 06:48:48 +00:00
moodler
c59eb3416a Got rid of the dead end when guests are trying to post 2005-03-06 06:20:37 +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
a4affadef1 Show last search in the mini search bar 2005-03-03 12:25:10 +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
fefefb4898 Use a require_once just in case 2005-03-03 05:03:41 +00:00
mjollnir_
729d325004 Changing a require to a require_once in forum postgres upgrade (was getting included twice) 2005-03-01 23:38:51 +00:00
moodler
3320057725 Cellspacing 0 for forum posts to help poor little IE 2005-03-01 17:16:57 +00:00
moodler
7369657c9b Use s function to print search string properly 2005-03-01 08:12:25 +00:00
moodler
ab00aa12a9 Disable dates if not being used.
Fixed bug that wasn't highlighting search words
2005-03-01 06:54:30 +00:00
mchurch
be69cefb90 Removed debug lines inadvertently left in last commit. 2005-02-28 21:37:11 +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
stronk7
22bb909b57 Now forum_read is included in backup & restore 2005-02-18 19:05:09 +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
fb83bd5075 Fixed a notice 2005-02-15 17:44:02 +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
8203d211ad Fix bug 1937 2005-02-14 00:04:09 +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
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +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
moodler
9044a3874e Cleaned up some bodgy search code and formatted according to guidelines .. 2005-02-12 04:41:17 +00:00
moodler
f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +00:00
moodler
d73754ee84 Removed old file 2005-02-09 03:44:41 +00:00
fiedorow
cdea3a531c Highlight search terms found only in HTML markup 2005-02-08 18:06:06 +00:00
moodler
b61aed4297 Fixed up some layout issues in the configuration files 2005-02-08 09:23:21 +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
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00