2014-11-10, 03:46 PM
I tried searching whole thread and internet to fix this issue, but could not, so that why asking you here.
I have got an issue regarding MyAlerts plugin, It is not a big one, I am just a noob on java script stuff thats why asking it here from experts.
MyBB Version : Latest
MyAlert Version : Latest - Downloaded from github page of this plugin.
Issue : This code which MyAlert added in headerinclude, conflicts with some other jQuerry of the theme which I am using.
So I had to remove this code and resort to other method which was described in main github page of this plugin (to add following lines in headerinclude instead of above myalert code snippet).
So now I am getting an issue, that drop down of MyAlert are not working when I click on alert button, it takes me to alert page. When I "Inspected Element" in chrome browser, I am getting this error.
How can I get MyAlerts to work properly without any conflict ?
I have got an issue regarding MyAlerts plugin, It is not a big one, I am just a noob on java script stuff thats why asking it here from experts.
MyBB Version : Latest
MyAlert Version : Latest - Downloaded from github page of this plugin.
Issue : This code which MyAlert added in headerinclude, conflicts with some other jQuerry of the theme which I am using.
<script type="text/javascript">
var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></script>
So I had to remove this code and resort to other method which was described in main github page of this plugin (to add following lines in headerinclude instead of above myalert code snippet).
<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>
So now I am getting an issue, that drop down of MyAlert are not working when I click on alert button, it takes me to alert page. When I "Inspected Element" in chrome browser, I am getting this error.
Quote:Uncaught script.aculo.us requires the Prototype JavaScript framework >= 1.6.0.3 scriptaculous.js:53
Uncaught TypeError: undefined is not a function ----- myalerts.prototype.js:1
How can I get MyAlerts to work properly without any conflict ?