vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   New PM Popup Replacement (https://vborg.vbsupport.ru/showthread.php?t=92895)

Lizard King 10-15-2005 12:34 AM

Code:

<script type="text/javascript">
        <!--
        //pm popup script
        var winobj = window.open("private.php?do=pmpopup", "pmnew", "menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no,top=  50,left=50,height=275,width=410");
        if (winobj == null)
        {
                alert("$vbphrase[window_open_failed_blocker]");
        }
        // /pm popup script
        //-->
</script>

You may want to change the first template to this one ;) everybody installs in a different directory ;)

Keyser S?ze 10-15-2005 04:00 AM

see i dont get this, cuz the default PM popup works fine if u have a popup blocker running, but this does not, how come?

Aeolian_X 10-15-2005 04:45 AM

Had to use Lizard Kings script above to get it to work, but it still doesn't show the PM sender's name for some reason.

Lizard King 10-15-2005 08:36 AM

Quote:

Originally Posted by Aeolian_X
Had to use Lizard Kings script above to get it to work, but it still doesn't show the PM sender's name for some reason.

There are couple bugs with it.
1. is as you mentioned senders username is not visible
2. if you have unread pm and you receive a new one , it doesn't give any warning
3. ıf you receive more then 1 pm it only shows 1 pm received.

P.S : It is not my script , there was a error and i just figured it out.

rossco_2005 10-15-2005 03:20 PM

Quote:

Originally Posted by Lizard King
Code:

<script type="text/javascript">
        <!--
        //pm popup script
        var winobj = window.open("private.php?do=pmpopup", "pmnew", "menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=no,top=  50,left=50,height=275,width=410");
        if (winobj == null)
        {
                alert("$vbphrase[window_open_failed_blocker]");
        }
        // /pm popup script
        //-->
</script>

You may want to change the first template to this one ;) everybody installs in a different directory ;)

Sorry that is what i meant to put, i just copied from the wrong style. :disappointed:

rossco_2005 10-15-2005 03:28 PM

Quote:

Originally Posted by Lizard King
There are couple bugs with it.
1. is as you mentioned senders username is not visible
2. if you have unread pm and you receive a new one , it doesn't give any warning
3. ıf you receive more then 1 pm it only shows 1 pm received.

P.S : It is not my script , there was a error and i just figured it out.

Just fixed number 1, in the template pm_pmpopup '$newpm['username']' should have been '$newpm['fromusername']'...I have no idea how that got changed, i guess i (again) copied from the wrong style. :rolleyes:

Number 2 i dont understand, are you saying if you have more than 1 PM the popup doesnt come up at all, or that it doesn't come up for each of the PMs? :blink:

And number 3 is how it's supposed to work, it only tells you the latest PM, not all of them.

weaver 10-15-2005 04:36 PM

Works fine for me. :)

weaver 10-16-2005 02:20 PM

Actually this morning I noticed that something about it is not working correctly. Yesterday when I tested it, I clicked on go to inbox and that worked fine. This morning when I clicked 'read this message' I received an error message:

Quote:

Invalid Private Message specified. If you followed a valid link, please notify the administrator.
This is the link it tried going to:

/private.php?do=showpm&pmid=

For some reason it's not adding the id number at the end of the link.

rossco_2005 10-16-2005 02:41 PM

Quote:

Originally Posted by weaver
Actually this morning I noticed that something about it is not working correctly. Yesterday when I tested it, I clicked on go to inbox and that worked fine. This morning when I clicked 'read this message' I received an error message:



This is the link it tried going to:

/private.php?do=showpm&pmid=

For some reason it's not adding the id number at the end of the link.

Thanks, in pm_pmpopup, $newpm[id] should be $newpm[pmid]

akanevsky 10-16-2005 02:58 PM

Come on, this is 3.5 and it has AJAX.
Why don't you make it AJAX based instead, rather than a popup that often won't work (after being cut off by firewall)


All times are GMT. The time now is 10:14 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01193 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete