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.
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: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
(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?
(2015-06-13, 01:29 PM)Euan T Wrote: [ -> ]
(2015-06-13, 10:59 AM)inferno211 Wrote: [ -> ]
(2015-06-12, 09:43 AM)inferno211 Wrote: [ -> ]
(2015-06-12, 06:37 AM)Euan T Wrote: [ -> ]
(2015-06-12, 06:28 AM)Michalec Wrote: [ -> ]So I have to uninstall MyProfile to install MyAlerts, but then I can't use MyProfile plugin? Sad

At the minute, yes. It's because the MyProfile plugin tries to integrate with MyAlerts, but targets a beta release of 2.0 and things have changed since then. The author of the plugin hasn't been very active recently to fix it either.

I've deleted all plugins that uses MyAlerts and error is still the same.

Can u help me?
Hi,

Can you send me the full error message and a link to your site so I can see the error?

Yes, ofc Smile
Adress our forum is http://www.ptsrp.pl/forum/ and error is http://prntscr.com/7ghkcy
my english is bad... your plugin will tested