MyBB Community Forums

Full Version: Ajax PM Notification
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10
(2014-10-10, 04:51 AM)NomanProdhan Wrote: [ -> ]Can I use it on MyBB 1.8.0 ??

UP!

have the same question....

THX
blongso
(2014-11-05, 09:29 AM)Supryk Wrote: [ -> ]https://forum.mybboard.pl/watek-mybb-pm-...-1-8_56482

I didn't understand.... Sad Is there any English version ???
Thanks.

Got it.............Its working fine................. thanks..........
Please I need english version or updated file for 1.8
in inc/plugins/ajaxpmnotice.php find

    new Ajax.Request
    (
        \''.$mybb->settings['bburl'].'/pm.php\',
        {
            method:\'get\',onComplete:function(request)
            {
                $(\'ajaxpmnotice\').innerHTML=request.respons​eText;
            }
        }
    );

replace to
new $.ajax({url:\''.$mybb->settings['bburl'].'/pm.php\',type:\'get\',success:function(result){
    $("#ajaxpmnotice").html(result);
  }});

all in all done Smile
OK, is there any way how to add a close button and notification sound when new pm arrived? I can add html code but I dont know where. Thank you
Add it in your PM temps?
OK, thx. I fixed my issue and it is working fine Smile

One more thing:
What about these suggestions? First would be nice.
1) Try to add a "x" button on top-right corner or the message box. When the user clicks it, it just closes the notification.
2) How to play notification sound only one time?
3) Instead of showing "you have one unread private message", it should be the mybb default. which is "You have one unread private message titled xxxxx from yyyyy"

xxx = title of the PM
yyy = Sender's username
Click on the link should take you to the exact message, not the private.php link.
GREAT THIS IS GOOD
thanks allot

is there a version for 1.8?

hello
i have installed this on my forum
it works on all themes but not on 1point8 theme
i wonder how to make it work on it
what code is needed to make it work on it as well ?
Pages: 1 2 3 4 5 6 7 8 9 10