From: moodler Date: Fri, 26 Sep 2008 03:27:54 +0000 (+0000) Subject: MDL-16267 Moved and tidied help files X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=97844c1ddaac0460132e63f4ee5c87f85fd39514;p=moodle.git MDL-16267 Moved and tidied help files --- diff --git a/lang/en_utf8/help/forum/message_digests.html b/lang/en_utf8/help/forum/message_digests.html new file mode 100644 index 0000000000..0af80ef448 --- /dev/null +++ b/lang/en_utf8/help/forum/message_digests.html @@ -0,0 +1,3 @@ +

Forum digests

+ +

Digests are daily collections of posts from forums you have subscribed to.

diff --git a/lang/en_utf8/help/forum/message_posts.html b/lang/en_utf8/help/forum/message_posts.html new file mode 100644 index 0000000000..8492805925 --- /dev/null +++ b/lang/en_utf8/help/forum/message_posts.html @@ -0,0 +1,3 @@ +

Forum posts

+ +

These are ordinary single posts from forums you have subscribed to.

diff --git a/lang/en_utf8/help/message/message_instantmessage.html b/lang/en_utf8/help/message/message_instantmessage.html new file mode 100644 index 0000000000..7effd57055 --- /dev/null +++ b/lang/en_utf8/help/message/message_instantmessage.html @@ -0,0 +1,5 @@ +

Messages from other users

+ +

This section configures what happens to messages that are sent to you directly from other users on this site.

+ +

You can have configure things to happen differently when you are online or offline.

diff --git a/lang/en_utf8/help/message/moodle_errors.html b/lang/en_utf8/help/message/moodle_errors.html new file mode 100644 index 0000000000..a3965d91c8 --- /dev/null +++ b/lang/en_utf8/help/message/moodle_errors.html @@ -0,0 +1,3 @@ +

Moodle errors

+ +

These are important errors that an administrator should know about.

diff --git a/lang/en_utf8/help/message/moodle_notices.html b/lang/en_utf8/help/message/moodle_notices.html new file mode 100644 index 0000000000..2b324b15f7 --- /dev/null +++ b/lang/en_utf8/help/message/moodle_notices.html @@ -0,0 +1,3 @@ +

Moodle notices

+ +

These are notices that an administrator might be interested in seeing.

diff --git a/message/edit.php b/message/edit.php index 8a52ea6449..a339fc9cea 100644 --- a/message/edit.php +++ b/message/edit.php @@ -212,7 +212,14 @@ foreach ( $providers as $providerid => $provider){ $providername = get_string('messageprovider:'.$provider->name, $provider->component); - $helpbtn = helpbutton(str_replace('/', '_', $provider->component).'_'.$provider->name, $providername, "messaging", true, false, '', true); + + /// TODO XXX: This is only a quick hack ... helpfile locations should be provided as part of the provider definition + if ($provider->component == 'moodle') { + $helpbtn = helpbutton('moodle_'.$provider->name, $providername, 'message', true, false, '', true); + } else { + $helpbtn = helpbutton('message_'.$provider->name, $providername, basename($provider->component), true, false, '', true); + } + echo ''.$providername.$helpbtn.''."\n"; foreach (array('loggedin', 'loggedoff') as $state){ $state_res = get_string($state, 'message');