Current time: 11-28-2024, 05:35 PM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[3.136.19.124], connected from
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
There is anything like this?
12-10-2009, 06:40 PM
Post: #2
RE: There is anything like this?
(12-10-2009 06:19 PM)Light33 Wrote:  When someone gets a new PM one popup will display a message with the ok button them another popup will be displayed with a "To open in another window click ok. Click cancel to open in another tab but in the same window".

There is anything like this?

Try this. Go to the Ungrouped templates and choose the headerinclude. Put the following code all the way to the top, before anything else. I will have to go now but let me know how it will go.

<script type="text/javascript">
<!--
// script to show new private message popup

if (confirm("You have {$mybb->user['pms_unread']} unread private messages.\n\nFrom: {$pm['fromusername']}\nTitle: {$pm['subject']}"))
{
    // Output when OK is clicked
    if (confirm("Open message in a new window?"))
    {
        var winobj = window.open("{$mybb->settings['bburl']}/private.php?action=read&pmid={$pm['pmid']}", "pmnew", "statusbar=yes,menubar=yes,scrollbars=yes,toolbar=yes,location=yes,directories=ye​s,resizable=yes,top=50,left=50");
        if (winobj == null)
        {
            if(confirm("Could not open a new window. Open PM in current window instead?"))
            {
                window.location = "{$mybb->settings['bburl']}/private.php?action=read&pmid={$pm['pmid']}";
            }
        }
    }
    else
    {
        window.location = "{$mybb->settings['bburl']}/private.php?action=read&pmid={$pm['pmid']}";
    }
}

new Ajax.Request('private.php?action=dismiss_notice', {method: 'post', postBody: 'ajax=1&my_post_key='+my_post_key});

// end pm popup script
//-->
</script>

babjusi's signature
Find all posts by this user
Quote this message in a reply
0 member(s) viewed this thread in the last 365 days :
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

Messages In This Thread
There is anything like this? - skiilz - 12-10-2009, 06:19 PM

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com