Warn users while browsing non-production server using Environment Bar plugin #MoodlePlugins

Moodle developers often works with multiple Moodle instances sometimes makes mistake in detecting the non-production environments. Nicholas Hoobin & Brendan Heywood has created a very simple and yet powerful plugin for all developers named Environment Bar which can save you from creating a havoc by identifying which server you currently reside on based on the URL.

The plugin named Environment Bar can warn users with a notification block across the top of the screen when you’re browsing a non-production server like staging or a local development box.

This slideshow requires JavaScript.

The plugin is available for all Moodle versions above Moodle 2.7 onwards and can be downloaded from the Moodle plugins database here.

You can also configure the bars in config.php file of your Moodle code by adding the code mentioned in the plugin documentation here.

What are the other methods to identify the production and development environment in Moodle? Do share with us in the comments below.

Jaswinder Singh

Jaswinder Singh, passionate about using Moodle in improving the Indian Education System and reaching the students in far flung areas where still education seems to be a impossible prospect of life. He is the author of the popular Moodle Book "How to use Moodle 2.7". In October 2016, Jaswinder was elected as the Moodle User's Association Committee member - the first to make it from India.

Related Articles