MyBB Codes
[Tip&Trick] Receive a pop up notification when receiving new pm''s - Printable Version

+- MyBB Codes (http://www.mybbcodes.com)
+-- Forum: Babjusi's Previous Forum General Stuff (/forumdisplay.php?fid=42)
+--- Forum: General Support (/forumdisplay.php?fid=46)
+---- Forum: Tutorials (/forumdisplay.php?fid=50)
+---- Thread: [Tip&Trick] Receive a pop up notification when receiving new pm''s (/showthread.php?tid=1104)


[Tip&Trick] Receive a pop up notification when receiving new pm''s - babjusi - 11-29-2009 05:51 PM

I took the idea from the below thread.
http://community.mybboard.net/thread-46747-page-1.html

I will post it as a tip/trick kind of thing rather then a plugin as it is easier this way.

This will make it so any time you get a new pm, you will get a pop up alert.

here we go:

Go to your Acp-Templates & Style-Your theme''s Templates-Global Templates-global_pm_alert. Replace all the code in there with the following code:

<div class="pm_alert" id="pm_notice">
    <div class="float_right"><script type="text/javascript"><!--
window.alert("You have recieved a new message!")
// -->
</script><a href="private.php?action=dismiss_notice&amp;my_post_key={$mybb->post_code}" title="{$lang->dismis_notice}"  MyBB.dismissPMNotice()"><img src="{$theme['imgdir']}/dismiss_notice.gif" alt="{$lang->dismis_notice}" title="[x]" /></a></div>
    <div>{$privatemessage_text}</div>
</div><br />

You can replace the text that will alert you for a new message by replacing:

You have recieved a new message!

with your own text.

Enjoy it.


RE: [Tip&Trick] Receive a pop up notification when receiving new pm''s - Srini - 12-16-2009 06:52 AM

Can u post Demo plz or Screenshot..


RE: [Tip&Trick] Receive a pop up notification when receiving new pm''s - skiilz - 12-16-2009 10:30 AM

You will just receive a popup when you get new PM... No need of SS.