53 Commits

Author SHA1 Message Date
moodler
10b9a26a20 Add link for advanced searching 2005-04-24 15:13:58 +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
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
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
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
moodler
4e471fc62a Forum searching now allows searching by date, and no longer has confusing help. 2005-02-28 12:40:29 +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
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
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
9044a3874e Cleaned up some bodgy search code and formatted according to guidelines .. 2005-02-12 04:41:17 +00:00
fiedorow
cdea3a531c Highlight search terms found only in HTML markup 2005-02-08 18:06:06 +00:00
moodler
fe98d35d43 FIxes from tony for highlighting 2005-02-01 02:58:51 +00:00
moodler
b2432b7fbb Fixed xml again (bug 2413) 2005-01-31 07:17:54 +00:00
moodler
f37da85054 MAJOR NEW FEATURE: Tracking of read/unread posts
Many thanks to Mike Churchward for his work on this and persevering
with sending updated versions to me.  :-)

Shane and I have polished it up, rewritten a few parts (display-related)
and here it is, finally in CVS!

I think there will still need to be some optimisation for the SQL,
since it's still pretty intensive. Perhaps some sort of caching in
the session that gets modified along with the database whenever
something gets read.

However if there are problems the whole thing can be switched off
in the forum module config so this is not crucially urgent.
2005-01-29 09:49:42 +00:00
moodler
6a855f5b89 Searching was still calling $usexml Bug #2413 2005-01-23 05:55:02 +00:00
urs_hunkler
680afe2e26 _ added the DIV framework for new CSS 2005-01-19 13:16:29 +00:00
gustav_delius
8f0cd6ef0f Resolved problems with previous replacement of
& to & and fixed redirect() to entity encode the
inut where needed.
Julian Sedding
2004-09-21 11:41:58 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
41905731b7 fixed capitalization and quoting of attribute values 2004-09-12 16:24:41 +00:00
gustav_delius
f950af3c43 All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
gustav_delius
77915f7aa7 Site option forcelogin is now respected by /mod/forum/search.php, fixing bug 1566 2004-06-14 20:02:50 +00:00
moodler
2abc70b558 Whoops typo 2003-11-05 13:48:25 +00:00
moodler
c7563a9c70 Improved fix to $search variable 2003-11-05 13:47:19 +00:00
moodler
cd6f0c1e28 Fixing up some handling when searching for strings with quotes in them 2003-11-05 13:43:31 +00:00
moodler
e764aa71ef Add navmenu to header of forum search pages 2003-10-31 08:31:39 +00:00
moodler
1c10b4c5c1 Search results link use the anchor tag rather than parent for better context 2003-08-31 06:39:06 +00:00
moodler
1930e95964 Even nicer interface with help 2003-08-19 04:45:29 +00:00
moodler
1ede7c03ce tweak 2003-08-19 04:40:35 +00:00
moodler
b1267a180d Slightly neater help 2003-08-19 04:39:59 +00:00
moodler
8b9c7aa069 Searching forums now has proper paging. 2003-08-19 03:35:53 +00:00
moodler
ceca2ad2b0 Looks better when nothing is found 2003-08-09 07:59:39 +00:00
moodler
3f26745351 Better button behaviour 2003-08-09 06:02:01 +00:00
moodler
b800ac5a10 Much improved forum searching, with independent words and paging 2003-08-09 05:35:02 +00:00
moodler
88438a5893 New highlighting function that is able to cope with HTML.
It's a bit slower, but links in forums no longer cause problems.

See bug #589
2003-08-09 03:57:46 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
moodler
97485d0726 More database tweaks and improved access to forum search engine 2002-12-23 15:33:40 +00:00
moodler
ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler
9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
moodler
048ccc473a Highlight matches in post subject and discussion name too 2002-11-28 09:10:22 +00:00
moodler
88e729beed Add searching of subjects as well as messages 2002-11-28 09:04:04 +00:00
moodler
405ea757e6 Fixed some more missing strings 2002-11-06 09:13:19 +00:00
moodler
46217d06b5 Language fixes 2002-11-06 07:40:36 +00:00
martin
8223d27193 Widespread changes throughout Moodle to make sure it works on
servers that have register_globals turned off (this is the
default setting on newer version of PHP).

In fact it's partly a hack that globalises all GET, POST, FILES
AND COOKIE variables.  Unfortunately though the SESSION and
USER global session variables are only available as $_SESSION["USER"]
and $_SESSION["SESSION"], which is cumbersome to use.

So, for every request I now make a copy of these two session variables
into $USER and $SESSION.  Whenever I update them thoughout Moodle I
now have to call save_session("USER") which copies them back to the
session variable.  This seems to be working well now.

Because I'm using $_SESSION etc now this will raise
the required minimum version of PHP to 4.1.0
2002-08-06 17:23:45 +00:00
martin
94361e021e Lots of work on site display, over many files. Improved front page
and display of site modules.
2002-08-03 08:16:31 +00:00
martin
7a12aab48b Fixed up some forum functions and constants (consistency) 2002-08-02 09:50:53 +00:00