The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
pm pop-up?
any help? was told that this was the place to post this:
http://www.vbulletin.com/forum/showt...threadid=72436 |
#2
|
||||
|
||||
What's the question? PM pop-up not working is not enough information to help you. What hacks have you installed?
|
#3
|
|||
|
|||
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? |
#4
|
||||
|
||||
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. |
#5
|
|||
|
|||
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 |
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
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> |
#8
|
||||
|
||||
Sorry, I meant headinclude.
Just try removing the extra JS, and see if popup works. |
#9
|
|||
|
|||
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
|
#10
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|