Global Message

General plugins (Local) ::: local_globalmessage
Maintained by mohamed alsharaf
Enables a Moodle administrator to create automatic pop-up messages

Global Message 2.1.4

Moodle 2.7, 2.8
Released: Monday, 10 November 2014, 4:43 AM
=== Global Message "Administrator Plugin" ===

Author: Mohamed Alsharaf (mohamed.alsharaf@gmail.com)
Website: http://jamandcheese-on-phptoast.com
Copyright: 2011-2012 Mohamed Alsharaf
License: http://www.gnu.org/copyleft/gpl.html
Version: 2.1.4

== Changelog: ==
2.0.0 - First version for Moodle 2.1
2.0.2 - Fixed missing close button from the popup box
- New requirements from Moodle.org, database tables for local plugin must start with 'local_'. This only affect new installation.
2.0.3 - Fixed database table names
- Minor bug fixes
2.0.4 - Minor bug fixes
2.1.0 - New section under 'Info' to manage custom rules. Install/Uninstall custom rules.
- Style sheet modifications
- JavaScript modifications & extract shared code into a separate file base.js
- Custom rules class interface modifications
- New Methods:
- public function is_installed();
- public function install();
- public function uninstall();
- Method definition changes from validate() to validate($options = null)
- Language string modifications.
- Removed unused code.
2.1.1 - Compatible with Moodle 2.4.*
2.1.2 - Bug fixes in info/about page
2.1.3 - Compatible with Moodle 2.6.*
2.1.4 - Compatible with Moodle 2.7.*

== Installation ==
1. Copy and paste the folder globalmessage into the local directory. If you don't have a local directory then create one in the Moodle root folder.

2. Log into your Moodle site as an admin user.

3. Go to the notifications page to install this plugin. The plugin will install 3 global settings and 3 database tables.

4. The plugin location is Site Administration --> Front Page --> Global Message

7. Open your theme config in /theme/[theme name] and place the following at the end of the file. If you have a closing tag ?> then make sure the code line below is before it.
$THEME->rendererfactory = 'theme_overridden_renderer_factory';

8. Create a new file in the same direcotry of your theme renderers.php and then place the following code.

class theme_[theme name]_core_renderer extends core_renderer
{
public function standard_end_of_body_html() {
global $CFG;

include_once $CFG->dirroot . '/local/globalmessage/lib/base.php';
moo_globalmessage::show_message();

return parent::standard_end_of_body_html();
}
}

9. Replace [theme name] with the name of your theme.
10. If the file renderers.php exists in your theme then place the following code before the last '}' of the theme core renderer "theme_[theme name]_core_renderer" if exists.
public function standard_end_of_body_html() {
global $CFG;

include_once $CFG->dirroot . '/local/globalmessage/lib/base.php';
moo_globalmessage::show_message();

return parent::standard_end_of_body_html();
}
10. If the theme core renderer does not exists in the file, then place the code in step 8 at the top of the file after <?php

== Upgrade ==

1. Make a backup of your folder /local/globalmessage/

2. Disable global message.

2. Copy and paste the folder globalmessage into the local directory to override all of the existing plugin files.

3. Go to the notifications page to upgrade this plugin.

4. Enable global message.

== Thank You for your contribution ==

- Spanish translation (By the Moodler "Nacho Aguilar")
- German translation (By the Moodler "Joachim Vogelgesang")
- Portuguese/Brazil translation (By the Moodler "felipe camboa")

Version information

Version build number
2014110501
Version release name
2.1.4
Can be updated from
2.1.2 (2013020101), 2.1.2 (2013020101), 2.1.3 (2014110500)
Maturity
Stable version
MD5 Sum
78f94daa4f06602fc8bd71375a2f1b50
Supported software
PHP 5.3, PHP 5.4, PHP 5.5, Moodle 2.7, PHP 5.6, Moodle 2.8
  • Latest release for Moodle 2.7
  • The more recent release 2.1.5 (2015040100) exists for Moodle 2.8

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS branch
master
VCS tag
v2.1.4

Default installation instructions for plugins of the type General plugins (Local)

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder in the "local" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation.