vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Improved PM Popup JavaScript (https://vborg.vbsupport.ru/showthread.php?t=34356)

69-FLy-gUy 07-06-2002 01:13 PM

there is a script error also.. line 69

santeematt 07-17-2002 03:59 PM

w00t

thanks

:)

Brianna 08-02-2002 01:40 AM

edit: NEVERMIND! I hope you aren't trying to figure it out right at this moment, cos it was just a very stoopid mistake on my behalf... :S

great hack! ^_^

Dave-ahfb 09-17-2002 04:02 PM

I have been working on this hack this morning, everything works fine if it is a single pm. When there is multiple pms I get a JS error I have narrowed it down to the following line of output
PHP Code:

input_box confirm("You have 9 new private messages.\n Click OK to view your Inbox, or cancel to hide this prompt.
"
); 

I am not a JS expert and cannot figure out what is making the "); go to a new line.

any suggestions?

Dave

Dave-ahfb 09-17-2002 04:28 PM

got it, had a space in the pm_popup_multiple template

Thanks for the hack ;)

Dave

MarkL 04-25-2003 05:03 AM

Okay, having a question. Now that I have done this hack, a Pop-Up Message won't show. Anyone know what could be wrong? :$

RetroDreams 05-12-2003 01:23 AM

Installed flawlessly AFTER I cleaned out my inbox. =)

Anjie 05-23-2003 09:12 PM

I cleaned out my inbox, set the templates to no HTML, and now there is no pop up at all. Any advice?
Forgot to add, added all templates, and replace all coding exactly as suggested. Does appear in source code. Using version 2.3.0

tkeil69575 07-07-2003 09:06 AM

i have a slight improvement to this hack because of the following problem. when you have a user in your ignore list and he has sent you a pm (which wont show in your private messages, because you are ignoring him) the pop-up will say when getting a new pm that you have 2 new pms, although your only seeing one.

thats because the sql is not ignoring the useres in your ignore list.

here the modification I made (which seems to work):

above twtcommisch hack add:
Code:

if (trim($bbuserinfo['ignorelist'])!="") {
    $ignoreusers='AND fromuserid<>'.implode(' AND
fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
  }

then change the sql to:
Code:

$latest_pm = $DB_site->query("SELECT
p.privatemessageid AS pm_popup_id, p.title AS pm_popup_title,
u.username AS pm_popup_username FROM privatemessage p,
user u WHERE messageread = 0 AND p.userid = $bbuserinfo
[userid] AND p.fromuserid = u.userid $ignoreusers ORDER BY dateline DESC");

tina

Bison 08-08-2003 04:25 AM

installed and working with vb 2.30


All times are GMT. The time now is 06:51 AM.

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.01141 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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