Login / User info

Blocks ::: block_login_userinfo
Maintained by Eiz Eddin Al Katrib
Moodle block which provides all functionality of block_login and displays additional information (username, avatar, logout button) as soon as the user is logged in

Login / User info 2.8 (Build: 2015012300)

Moodle 2.8
Released: Saturday, 24 January 2015, 6:05 AM

moodle-block_login_userinfo

Moodle block which provides all functionality of block_login and displays additional information (username, avatar, logout button) as soon as the user is logged in

Requirements

This plugin requires Moodle 2.8+

Changes

  • 2015-01-23 - Check compatibility for Moodle 2.8, no functionality change
  • 2014-08-29 - Update README file
  • 2014-08-19 - Use another "username" string when $CFG->authloginviaemail is used
  • 2014-06-30 - Drop support for Non-Bootstrap based themes
  • 2014-06-30 - Check compatibility for Moodle 2.7, no functionality change
  • 2014-01-31 - Bugfix: This block used the same title as the core block_login plugin which caused CLI updates to fail under certain circumstances
  • 2014-01-31 - Check compatibility for Moodle 2.6, no functionality change
  • 2013-09-02 - Add non-vendor-prefixed styles for pulse text style (used when displaying failed logins)
  • 2013-07-30 - Transfer Github repository from github.com/abias/... to github.com/moodleuulm/...; Please update your Git paths if necessary
  • 2013-07-30 - Check compatibility for Moodle 2.5, no functionality change
  • 2013-04-23 - Add required capability for placing block on MyMoodle page
  • 2013-03-25 - Small code change because of change in Moodle core which is the basis for this plugin
  • 2013-03-18 - Fix php strict standards bug, Code cleanup according to moodle codechecker
  • 2013-02-18 - Check compatibility for Moodle 2.4, modified HTML and CSS to overcome problems in some core themes. Please check your custom theme if you have one
  • 2012-11-27 - German language has been integrated into AMOS and was removed from this plugin. Please update your language packs with http://YOURMOODLEURL/admin/tool/langimport/index.php after installing this plugin version
  • 2012-11-27 - Small code cleanup
  • 2012-09-26 - Replace deprecated get_context_instance function
  • 2012-06-25 - Initial version

Installation

Install the plugin like any other plugin to folder /blocks/login_userinfo

See http://docs.moodle.org/en/Installing_plugins for details on installing Moodle plugins

Placement

block_login_userinfo is used ideally as sticky block and appears on all of your moodle pages at the same position

See http://docs.moodle.org/en/Block_settings#Making_a_block_sticky_throughout_the_whole_site for details about sticky blocks

Usage

The block_login_userinfo plugin has two views:

  • As long as the user is logged out, it displays a login form just as block_login does.
  • As soon as the user is logged in, block_login dispears. In contrast to this, block_login_userinfo displays pleasant information about the logged in user like his/her username, his/her avatar. Additionally, it displays a logout button where the user expects it to be: exactly at the position where the login button was previously.

Furthermore, for teachers and admins, block_login_userinfo shows exactly the same information as the login info section which is normally found in the top right corner of your moodle page - especially information about role changes and about failed user logins.

Themes

block_login_userinfo should work with all Bootstrap based Moodle Themes.

As block_login_userinfo duplicates information and widgets from the login info section which is normally found in the top right corner of your moodle page, I recommend to experienced themers to remove $OUTPUT->login_info() from your theme layout files.

Settings

block_login_userinfo has neither a settings page nor settings in config.php.

Further information

block_login_userinfo is found in the Moodle Plugins repository: https://moodle.org/plugins/view/block_login_userinfo

Report a bug or suggest an improvement: https://github.com/moodleuulm/moodle-block_login_userinfo/issues

Moodle release support

Due to limited ressources, block_login_userinfo is only maintained for the most recent major release of Moodle. However, previous versions of this plugin which work in legacy major releases of Moodle are still available as-is without any further updates in the Moodle Plugins repository.

There may be several weeks after a new major release of Moodle has been published until we can do a compatibility check and fix problems if necessary. If you encounter problems with a new major release of Moodle - or can confirm that block_login_userinfo still works with a new major relase - please let us know on https://github.com/moodleuulm/moodle-block_login_userinfo/issues

Right-to-left support

This plugin has not been tested with Moodle's support for right-to-left (RTL) languages. If you want to use this plugin with a RTL language and it doesn't work as-is, you are free to send me a pull request on github with modifications.

Copyright

University of Ulm kiz - Media Department Team Web & Teaching Support Alexander Bias

Version information

Version build number
2014111000
Version release name
2.8 (Build: 2015012300)
Can be updated from
2.7 (Build: 2014063000) (2014051200)
Can be updated to
2.9 (Build: 2015081800)
Maturity
Stable version
MD5 Sum
1be2b13dcad8b9bcd14491804df425b8
Supported software
Moodle 2.8
  • Latest release for Moodle 2.8

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit http://yoursite.com/admin to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.