How would I make
{$mybb->user['unreadAlerts']}
automatically refresh when using this
<script type="text/javascript">
<!--
var myalerts_autorefresh = {$mybb->settings['myalerts_autorefresh']};
// -->
</script>
(2015-06-13, 01:37 PM)Akay Wrote: [ -> ]How would I make
{$mybb->user['unreadAlerts']}
automatically refresh when using this
<script type="text/javascript">
<!--
var myalerts_autorefresh = {$mybb->settings['myalerts_autorefresh']};
// -->
</script>
i have this enter in the headerinclude by mybb settings... ajax for me now works, the counter not...
(2015-06-13, 01:37 PM)Akay Wrote: [ -> ]How would I make
{$mybb->user['unreadAlerts']}
automatically refresh when using this
<script type="text/javascript">
<!--
var myalerts_autorefresh = {$mybb->settings['myalerts_autorefresh']};
// -->
</script>
(2015-06-13, 01:49 PM)hkkp Wrote: [ -> ] (2015-06-13, 01:37 PM)Akay Wrote: [ -> ]How would I make
{$mybb->user['unreadAlerts']}
automatically refresh when using this
<script type="text/javascript">
<!--
var myalerts_autorefresh = {$mybb->settings['myalerts_autorefresh']};
// -->
</script>
i have this enter in the headerinclude by mybb settings... ajax for me now works, the counter not...
Hi,
The AJAX auto refresh only works on the "view alerts" page, it doesn't work anywhere else. You'd have to modify the JavaScript to change this behaviour.
How do I do that? So the command to ajax runs system-wide at myalerts ?
You'll have to modify myalerts.js. I can't support that though, so you'll have to either find somebody to make the changes or wait until I make it a core feature in 2.1.0.
(2015-06-13, 02:28 PM)martec Wrote: [ -> ] (2015-06-13, 02:15 PM)hkkp Wrote: [ -> ]How do I do that? So the command to ajax runs system-wide at myalerts ?
if you want know if has new alert in real time you can use this: http://community.mybb.com/thread-166924.html
3.0 work with myalert 2.0.2
thx, i will tested... ajax dont work for me with myalerts...
(2015-06-13, 02:38 PM)hkkp Wrote: [ -> ]thx, i will tested... ajax dont work for me with myalerts...
"i will tested" ?
you will test or you already tested?
my english is bad... your plugin will tested