x

Main chapters

  1. LimeSurvey Cloud vs LimeSurvey CE
  2. LimeSurvey Cloud - Quick start guide
  3. LimeSurvey CE - Installation
  4. How to design a good survey (Guide)
  5. Getting started
  6. LimeSurvey configuration
  7. Introduction - Surveys
  8. View survey settings
  9. View survey menu
  10. View survey structure
  11. Introduction - Questions
  12. Introduction - Question Groups
  13. Introduction - Surveys - Management
  14. Survey toolbar options
  15. Multilingual survey
  16. Quick start guide - ExpressionScript
  17. Advanced features
  18. General FAQ
  19. Troubleshooting
  20. Workarounds
  21. License
  22. Version change log
  23. Plugins - Advanced
 Actions

Notifications

From LimeSurvey Manual

Revision as of 11:00, 2 August 2016 by Olle (talk | contribs) (Usage)

Have an icon in top menu about notifications to user. Can be bound to user, user group or survey.

GUI

  • Bell icon
  • List of last 5 messages in menu where you can can see which messages are new
  • History view of all messages? Grid view.

Usage

Should be possible for the developer to invoke new notification both from PHP and JS?

PHP:

$not = new Notification();
$not->type = 'danger';
$not->message = gT('New info!');
$not->save();

JS:

$.ajax(
  url: 'notification.php',
  data: {
    message: translatedMessageString
  }
).done(function() {
  updateNotifications();
});

Database

New database table required to make notifications persist between login/logout.

Fields:

  • id
  • entity, like survey, user, ...
  • entity_id, survey id, user id, ...
  • message, the actual message
  • type, success, warning, danger, info
  • status, new, read
  • created, datetime
  • read, datetime