MyBB Codes

Full Version: [Tip&Trick] Receive a pop up notification when receiving new pm''s
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Can u post Demo plz or Screenshot..
You will just receive a popup when you get new PM... No need of SS.
Reference URL's