MyBB-Plugins Forums

Full Version: MyAlerts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
MyAlerts is a plugin for MyBB that aims to add a notification/alert system to MyBB similar to those found in competing software such as XenForo and IP.Board.

jQuery or Prototype:

As we all know, MyBB ships with Prototype as it's core JS framework (unless you've somehow got hold of a 1.8 build...). I personally prefer to use jQuery and as such it's the default library of choice for MyAlerts. I understand, however, that a few people don't want to load jQuery too. As such, I've included a Prototype version of the MyAlerts JS. To make use of prototype, edit the headerinclude and remove any mentions of MyAlerts then add the following below your other JavaScript inclusions:

PHP Code:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.prototype.js"></script> 


The currently supported events are:
  • When you're quoted in a post
  • When somebody replies to a thread you started
  • When somebody adds you to their buddy list
  • When somebody PMs you

More events are currently in development or planned to be added in the near future. If you have suggestions for events to be added to the core, post them in an issue on GitHub.

Integrating with MyAlerts

MyAlerts provides several key hooks to allow other plugins to add support for it's features. For more details, see the wiki entry.

Contributing, questions, and more:

MyAlerts is fully maintained on github at it's official repository:

If you'd like to contribute to MyAlerts, feel free to submit pull requests for features you feel would improve the plugin. If you have an idea or find a bug, please create an issue so we can all discuss it. It'd also be great if you helped document MyAlerts on the GitHub Wiki by writing about the uses of certain features, creating lists of useful information, or expanding on other's writings.


[Image: 21114-1349877969-Alerts%20icon.PNG]

[Image: 21114-1349877975-Alerts%20popup.PNG]

[Image: 21114-1349877961-Alert%20settings.PNG]
This plugin looks good no doubt. Perhaps I should give it a try here.
I'd be glad of any feedback you may be able to provide on it Smile
One thing that immediately caught my eyes was the fact that you use a language variable as the value of the help section related to this plugin. People may inadvertently make it not to remove (on uninstallation) the help section if they edit that value in the language file.
Yeah, I really couldn't think of a better way of doing it. I'm open to suggestions on that one. The help system seems quite limited compared to every other area of MyBB. Perhaps because it's rarely used.
Why not use a certain default value and then replace it with the language variable ?
As in replace it using a hook in the helpdocs area? I can look into it. MyBB by default stores the actual full titles in English in the database it seems.
Yes either use a hook in the help section area (preferably) or in pre_output_page (the problem with this one is that you're adding unnecessary load on pages that don't need it).
I'll look into it. I really do think it would be nice to see the Help pages used more often and being a little more powerful tbh.
I try this.