Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2003, 05:32 AM
Dribbles Dribbles is offline
 
Join Date: Dec 2002
Location: USA
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default pm pop-up?

any help? was told that this was the place to post this:

http://www.vbulletin.com/forum/showt...threadid=72436
Reply With Quote
  #2  
Old 06-01-2003, 05:56 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the question? PM pop-up not working is not enough information to help you. What hacks have you installed?
Reply With Quote
  #3  
Old 06-01-2003, 08:09 AM
Dribbles Dribbles is offline
 
Join Date: Dec 2002
Location: USA
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a lot of hacks installed. The hacks I have installed that have to do with PM's are: Firefly's Blink PM, Improved PM folder View, and the mass pm hack. I had all these installed on my old forum too without this pop-up problem. But then I upgraded to v2.3.0 and re-applied the hacks to the v2.3.0 php files. I'm pretty sure the problem is not template related because I used a pretty standard skin, just making some color changes as an alternative, and I have the same problem with that skin.

Whenever I don't have a PM, the page loads normally. But when I have a new PM, at the bottom of the page, it says something like "page loaded, but with errors" I think the little yellow triangle is a javascript error?
Reply With Quote
  #4  
Old 06-01-2003, 09:31 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There you go, you have a javascript error.

Check this in order:

1) Make sure $headnewpm is in your header template.
If so,

2) Check your header and headinclude templates, and compare them with the default templates, and ensure there are NO NEW javascript codes at the top that may be interfering with the popup PM javascript.

3) Try this - save your header and headinclude templates, then revert them to default, and see if PM popup works - if so, it's one of those templates having some new javascript that is interfering with the pm popup javascript.
Reply With Quote
  #5  
Old 06-01-2003, 10:19 AM
Dribbles Dribbles is offline
 
Join Date: Dec 2002
Location: USA
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the help. $headnewpm Is not in the header template for me ... but it is all the way at the bottom of my headinclude template.

I believe the problem may be with one of the .php files as opposed to one of the templates. Is this possible? I see no java in the header or headinclude templates. But then again, I'm a newbie, lol :hurt:

Reverted and no change
Reply With Quote
  #6  
Old 06-01-2003, 11:19 AM
WEForums WEForums is offline
 
Join Date: Apr 2003
Location: Jacksonville, Florida
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same problem.

When I fix it I'll post it. Right now I am too lazy to mess with the JavaScript...

Hmmm...looking at it now, the default for 'header' doesn't even include '$headnewpm'....?

EDIT: Nevermind, it isn't supposed to be.

I am not going to bother since the JavaScript interfering is for banners/pop-up ads.
Reply With Quote
  #7  
Old 06-01-2003, 10:54 PM
Dribbles Dribbles is offline
 
Join Date: Dec 2002
Location: USA
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea if anything is wrong with any of these javascripts? These are the scripts on my index.php (I sent myself a new Pm so I get the javascript error message, then pressed "view source", then looked for scripts.

Code:
<script language="JavaScript">
<!--
function confirm_newpm() {
	input_box=confirm("You have a new private message. Click OK to view it, or cancel to hide this prompt.");
	if (input_box==true) { // Output when OK is clicked
		second_box=confirm("Open in new window?\n\n(Press cancel to open your Inbox in the current window.)");
		if (second_box==true) {
			window.open('private.php?s=','pmnew','width=600,height=500,menubar=yes,
scrollbars=yes,toolbar=yes,location=yes,directories=yes,resizable=yes,top=50,left=50'); 
		} else {
			window.location="private.php?s=";
		}
	} else {
	// Output when Cancel is clicked
	}
}
// -->
</script>
Code:
<body onload="java script:confirm_newpm()" bgcolor="#000000" text="#000000" id="all" leftmargin="10" 
topmargin="10" marginwidth="10" marginheight="10" link="#000020" vlink="#000020" alink="#000020">
Code:
<script language="JavaScript">
<!-- Begin
 pmBox.bgColor='#060B01" background="evimages/titlebg.gif';
 setInterval("Timer()", 300);
 x=1;
 function Timer() {
	set=1;
	if(x==0 && set==1) {
		pmBox.bgColor='#DEE3D7';
		x=1;
		set=0;
	}
	if(x==1 && set==1) {
		pmBox.bgColor='#C0C0FF';
		x=0;
		set=0;
	}
}
// End -->
</script>
Reply With Quote
  #8  
Old 06-02-2003, 04:16 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I meant headinclude.

Just try removing the extra JS, and see if popup works.
Reply With Quote
  #9  
Old 06-02-2003, 05:38 AM
Dribbles Dribbles is offline
 
Join Date: Dec 2002
Location: USA
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have tracked the problem down!!!! hehe. I re-uploaded an un-editted version of index.php ... nothing happened. So I uploaded the modded one again. Then I uploaded an un-editted version of functions.php ... and viola! The pop-ups have returned. Now I just have to figure out what I messed up in functions.php
Reply With Quote
  #10  
Old 06-02-2003, 06:15 AM
WEForums WEForums is offline
 
Join Date: Apr 2003
Location: Jacksonville, Florida
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange, my onLoad is the same as the default in functions.php, so I doubt it'd work for me.

Anyhow, I just got a PM at my forums and I was alerted when I viewed a profile, however, I was not when viewing a showthread, index, or forumdisplay.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04931 seconds
  • Memory Usage 2,258KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete