MyBB Community Forums

Full Version: MyAlerts v2.0.4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Thanks Dear Euan T.


Regards
Juniba
(2018-10-01, 11:44 PM)NotAdmin Wrote: [ -> ]Some members on my small forum note that if they go on a hiatus, they are often missing any aged alerts when they get back

So I see that there is a task to clear out alerts every month on a Monday; does this delete all alerts?  So if there was an alert the day before, it would delete it, or am I misunderstanding?

If possible I would prefer to see aged alerts deleted, so alerts are deleted when they get to, say, 3months - is this possible?
I thought the task already did that, until I looked at the source - it just deletes any alerts that have been marked as read: https://github.com/MyBBStuff/MyAlerts/bl...ts.php#L24

You could modify that line in that task file to add a conditional "WHERE" clause to check the date on the alert too, something like:

$db->delete_query('alerts', 'unread = 0 AND dateline <= DATESUB(NOW(), INTERVAL3 MONTH)')

(Note that the above is MySQL specific).

(2018-10-02, 07:02 AM)Nna Wrote: [ -> ]hi please guys help me, alerts.php showing blank page when i click the button

Can you check your server error logs to see if any errors are reported? You can normally access these via cPanel or your hosting control panel.
@Euan T - maybe that would be great to add it to MyAlerts, lets say hard coded value (3 months?) or just make a setting in ACP (delete old alerts, or leave them)
(2018-10-04, 08:31 AM)Eldenroot Wrote: [ -> ]@Euan T - maybe that would be great to add it to MyAlerts, lets say hard coded value (3 months?) or just make a setting in ACP (delete old alerts, or leave them)

It would probably be a good idea, yes.
@Euan T: reading this post, I think there's probably an incompatibility with Imgur plugin (didn't test yet).
I'm not sure I can verify that until a few days, peharps can you ?
(2018-10-04, 10:04 PM)Crazycat Wrote: [ -> ]@Euan T: reading this post, I think there's probably an incompatibility with Imgur plugin (didn't test yet).
I'm not sure I can verify that until a few days, peharps can you ?

Interesting. Line 11 is fairly simple, I'd need to debug the issue on the live board I think. I doubt it's caused by your plugin though, as it looks like a problem with jQuery rather than anything else.
hello when i click to the bell icon it wont poup up its giving me this error:

GET http://192.168.1.6/images/netpen/js/share.js net::ERR_ABORTED 404 (Not Found)
(index):1014 GET https://i.imgur.com/rXf0lpG.gif net::ERR_CONNECTION_REFUSED
jquery.js?ver=1813:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
jquery.js?ver=1813:4 GET http://192.168.1.6/images/netpen/js/share.js 404 (Not Found)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
jquery.js?ver=1813:2 Uncaught SyntaxError: Unexpected token <
   at eval (<anonymous>)
   at jquery.js?ver=1813:2
   at Function.globalEval (jquery.js?ver=1813:2)
   at text script (jquery.js?ver=1813:4)
   at Xb (jquery.js?ver=1813:4)
   at y (jquery.js?ver=1813:4)
   at c (jquery.js?ver=1813:4)
   at Object.send (jquery.js?ver=1813:4)
   at Function.ajax (jquery.js?ver=1813:4)
   at Function.n._evalUrl (jquery.js?ver=1813:4)
(anonymous) @ jquery.js?ver=1813:2
globalEval @ jquery.js?ver=1813:2
text script @ jquery.js?ver=1813:4
Xb @ jquery.js?ver=1813:4
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
VM3332:23 Uncaught TypeError: $(...).inewsticker is not a function
   at HTMLDocument.eval (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:23:23)
   at i (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:27449)
   at Object.fireWith [as resolveWith] (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:28213)
   at ready (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:30006)
(2018-10-21, 12:31 PM)djyee Wrote: [ -> ]hello when i click to the bell icon it wont poup up its giving me this error:

GET http://192.168.1.6/images/netpen/js/share.js net::ERR_ABORTED 404 (Not Found)
(index):1014 GET https://i.imgur.com/rXf0lpG.gif net::ERR_CONNECTION_REFUSED
jquery.js?ver=1813:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
jquery.js?ver=1813:4 GET http://192.168.1.6/images/netpen/js/share.js 404 (Not Found)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
jquery.js?ver=1813:2 Uncaught SyntaxError: Unexpected token <
   at eval (<anonymous>)
   at jquery.js?ver=1813:2
   at Function.globalEval (jquery.js?ver=1813:2)
   at text script (jquery.js?ver=1813:4)
   at Xb (jquery.js?ver=1813:4)
   at y (jquery.js?ver=1813:4)
   at c (jquery.js?ver=1813:4)
   at Object.send (jquery.js?ver=1813:4)
   at Function.ajax (jquery.js?ver=1813:4)
   at Function.n._evalUrl (jquery.js?ver=1813:4)
(anonymous) @ jquery.js?ver=1813:2
globalEval @ jquery.js?ver=1813:2
text script @ jquery.js?ver=1813:4
Xb @ jquery.js?ver=1813:4
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
VM3332:23 Uncaught TypeError: $(...).inewsticker is not a function
   at HTMLDocument.eval (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:23:23)
   at i (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:27449)
   at Object.fireWith [as resolveWith] (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:28213)
   at ready (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:30006)

Could you possibly provide your forum URL and details for a test account? This looks like a problem with jQuery which may be caused by having multiple versions of jQuery on your site.
(2018-10-21, 09:32 PM)Euan T Wrote: [ -> ]
(2018-10-21, 12:31 PM)djyee Wrote: [ -> ]hello when i click to the bell icon it wont poup up its giving me this error:

GET http://192.168.1.6/images/netpen/js/share.js net::ERR_ABORTED 404 (Not Found)
(index):1014 GET https://i.imgur.com/rXf0lpG.gif net::ERR_CONNECTION_REFUSED
jquery.js?ver=1813:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
jquery.js?ver=1813:4 GET http://192.168.1.6/images/netpen/js/share.js 404 (Not Found)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
jquery.js?ver=1813:2 Uncaught SyntaxError: Unexpected token <
   at eval (<anonymous>)
   at jquery.js?ver=1813:2
   at Function.globalEval (jquery.js?ver=1813:2)
   at text script (jquery.js?ver=1813:4)
   at Xb (jquery.js?ver=1813:4)
   at y (jquery.js?ver=1813:4)
   at c (jquery.js?ver=1813:4)
   at Object.send (jquery.js?ver=1813:4)
   at Function.ajax (jquery.js?ver=1813:4)
   at Function.n._evalUrl (jquery.js?ver=1813:4)
(anonymous) @ jquery.js?ver=1813:2
globalEval @ jquery.js?ver=1813:2
text script @ jquery.js?ver=1813:4
Xb @ jquery.js?ver=1813:4
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
VM3332:23 Uncaught TypeError: $(...).inewsticker is not a function
   at HTMLDocument.eval (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:23:23)
   at i (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:27449)
   at Object.fireWith [as resolveWith] (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:28213)
   at ready (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:30006)

Could you possibly provide your forum URL and details for a test account? This looks like a problem with jQuery which may be caused by having multiple versions of jQuery on your site.

well i give up with netpen theme, idk why but it has lot of problem with myalerts Sad

i like to give web site adress but its in my localhost.
(2018-10-22, 11:47 AM)djyee Wrote: [ -> ]
(2018-10-21, 09:32 PM)Euan T Wrote: [ -> ]
(2018-10-21, 12:31 PM)djyee Wrote: [ -> ]hello when i click to the bell icon it wont poup up its giving me this error:

GET http://192.168.1.6/images/netpen/js/share.js net::ERR_ABORTED 404 (Not Found)
(index):1014 GET https://i.imgur.com/rXf0lpG.gif net::ERR_CONNECTION_REFUSED
jquery.js?ver=1813:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
jquery.js?ver=1813:4 GET http://192.168.1.6/images/netpen/js/share.js 404 (Not Found)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
jquery.js?ver=1813:2 Uncaught SyntaxError: Unexpected token <
   at eval (<anonymous>)
   at jquery.js?ver=1813:2
   at Function.globalEval (jquery.js?ver=1813:2)
   at text script (jquery.js?ver=1813:4)
   at Xb (jquery.js?ver=1813:4)
   at y (jquery.js?ver=1813:4)
   at c (jquery.js?ver=1813:4)
   at Object.send (jquery.js?ver=1813:4)
   at Function.ajax (jquery.js?ver=1813:4)
   at Function.n._evalUrl (jquery.js?ver=1813:4)
(anonymous) @ jquery.js?ver=1813:2
globalEval @ jquery.js?ver=1813:2
text script @ jquery.js?ver=1813:4
Xb @ jquery.js?ver=1813:4
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n._evalUrl @ jquery.js?ver=1813:4
Ha @ jquery.js?ver=1813:3
append @ jquery.js?ver=1813:3
(anonymous) @ jquery.plugins.min.js?ver=1813:1
i @ jquery.js?ver=1813:2
fireWith @ jquery.js?ver=1813:2
y @ jquery.js?ver=1813:4
c @ jquery.js?ver=1813:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1813:4
ajax @ jquery.js?ver=1813:4
n.(anonymous function) @ jquery.js?ver=1813:4
t.modal @ jquery.plugins.min.js?ver=1813:1
t.fn.modal @ jquery.plugins.min.js?ver=1813:1
(anonymous) @ jquery.plugins.min.js?ver=1813:1
dispatch @ jquery.js?ver=1813:3
r.handle @ jquery.js?ver=1813:3
VM3332:23 Uncaught TypeError: $(...).inewsticker is not a function
   at HTMLDocument.eval (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:23:23)
   at i (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:27449)
   at Object.fireWith [as resolveWith] (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:28213)
   at ready (eval at <anonymous> (jquery.js?ver=1813:2), <anonymous>:2:30006)

Could you possibly provide your forum URL and details for a test account? This looks like a problem with jQuery which may be caused by having multiple versions of jQuery on your site.

well i give up with netpen theme, idk why but it has lot of problem with myalerts Sad

i like to give web site adress but its in my localhost.

Did you try contacting the NetPen author?

He's very responsive and will try his best to fix the issues with MyAlerts plugin.

In fact... on my website, I am using one of his themes which were customized for my website and I use MyAlerts and both are working great.