|
Author |
Message |
walkthesky
Member
Posts: 25
Registered: Oct 2005

|
Posted May 24th, 2010 12:38 AM IP  For the past couple weeks we've had an issue with the private message notification popup not showing, when I have unread messages. I recently made a fair number of changes to our skin, but the error I get doesn't seem to be related, just coincidental timing.
Here is the error Firefox shows in the Error Console (note it is under Information, not an Error):
Security Error: Content at http://googleads.g.doubleclick.net/ may not load data from http://s2.excoboard.com/hrltwincities.
Error from Chrome in Inspector:
Unable to post message to http://googleads.g.doubleclick.net. Recipient has origin http://s2.excoboard.com.
Note the messagebox(es) just don't show, I assume since scripts stop running.
|
|
bunk

Member
Posts: 1340
Registered: Sep 2007

|
Posted May 24th, 2010 06:24 AM IP  I'm guessing the key words here are:
"I recently made a fair number of changes to our skin, but the error I get doesn't seem to be related, just coincidental timing."
More than likey, even though it may seem like the changes shouldn't effect the PM Pop up script, i'll bet one or more of them did...... Have a nice day, Bunk
|
|
mizwings

Super Moderator
Posts: 2009
Registered: Feb 2006

 |
Posted May 24th, 2010 07:43 AM IP  Yep, I would agree with Bunk here. I would sugggest you put things back to how they were and see if that makes a difference. did you back up your original scripts?
|
|
walkthesky
Member
Posts: 25
Registered: Oct 2005

|
Posted May 24th, 2010 08:59 PM IP  No, a board reset does not fix it.
|
|
bunk

Member
Posts: 1340
Registered: Sep 2007

|
Posted May 25th, 2010 06:05 AM IP  The only other issue that I can think of then would be the way cerntain browsers read / execute the script.
Here are the PM Pop up scripts that I have:
PM Popup
________________________________________
By Sdn:
This is a script that members have asked for over and over again. Put it at the bottom of your index template.
code:
________________________________________
<script language="javascript">
<!--
// PM notofication script
// written by sdn <forums.33bit.com>
// goes at the very bottom of the index template
var msgs = {newpm.newpms};
if (msgs || msgs > 0) {word = (msgs = 1) ? "PM" : "PMs";
if (confirm("You have {newpm.newpms} new " + word + ". View now?")) {window.open("pm.php?boardid={boardid}", "pmwindow");}
else {alert("Don't forget about them later.");}
}
//-->
</script>
That's ^^^ The original
Here's one without the 2nd warning: (Created by Mod 1)
<script language="javascript">
<!--
// PM notofication script
// written by sdn <forums.33bit.com>
// goes at the very bottom of the index template
var msgs = {newpm.newpms};
if (msgs || msgs > 0) {word = (msgs = 1) ? "New Message" : "New Messages";
if (confirm("You have {newpm.newpms} " + word + " in your Private Message Inbox")) {window.open("http://s3.excoboard.com/exco/pm.php?boardid=6994", "_parent", "pmwindow");}
else {("");}
}
//-->
</script>
These are versions that don’t effect pop-up blockers, written by Mod 1:
I use these scripts. It opens the pm in the same window so no problems with pop up blockers.
Server 1:
Quote:
<script language="javascript">
<!--
// PM notofication script
// written by sdn <forums.33bit.com>
// goes at the very bottom of the index template
var msgs = {newpm.newpms};
if (msgs || msgs > 0) {word = (msgs = 1) ? "PM" : "PMs";
if (confirm("You've got mail!"))
if (confirm("You have {newpm.newpms} new " + word + ". View now?")) {window.open("http://excoboard.com/exco/pm.php?boardid=BOARDID", "_parent", "pmwindow");}
else {alert("Don't forget about them later.");}
}
//-->
</script>
Server 2:
Quote:
<script language="javascript">
<!--
// PM notofication script
// written by sdn <forums.33bit.com>
// goes at the very bottom of the index template
var msgs = {newpm.newpms};
if (msgs || msgs > 0) {word = (msgs = 1) ? "PM" : "PMs";
if (confirm("You've got mail!"))
if (confirm("You have {newpm.newpms} new " + word + ". View now?")) {window.open("http://s2.excoboard.com/exco/pm.php?boardid=BOARDID", "_parent", "pmwindow");}
else {alert("Don't forget about them later.");}
}
//-->
</script>
Replace BOARDID with your board id.
If you are on S3, substitute the S2 url with 3
I have removed the if (confirm("You've got mail!")) so that I only get the one thing to click on and i go straight to my pms
And these are revisions made "after" the URL re-direct upgrade, I think Peter posted them, but not sure who it was.... This may very well be the "most important" of what i've posted here:
code:
________________________________________
Replace
if (confirm("You have {newpm.newpms} new " + word + ". View now?")) {window.open("pm.php?boardid={boardid}", "pmwindow");}
with
if (confirm("You have {newpm.newpms} new " + word + ". View now?")) {window.open("../exco/pm.php?boardid={boardid}", "pmwindow");}
Have a nice day, Bunk
|
|
boodha
Member
Posts: 15
Registered: Apr 2009

|
Posted June 15th, 2010 08:00 AM IP  Only one member on our forum does not get the pop up, how can I help him.
|
|
bunk

Member
Posts: 1340
Registered: Sep 2007

|
Posted June 15th, 2010 04:24 PM IP  Find out which browser the member is using. It seems as if a lot of the scripts dont execute properly in firefox 3. Have a nice day, Bunk
|
|
mizwings

Super Moderator
Posts: 2009
Registered: Feb 2006

 |
Posted June 16th, 2010 04:42 AM IP  Silly question I know, but stranger things have happened = has the member allowed pop ups on exco?
|
|
mrs. blues
Member
Posts: 10
Registered: Oct 2010

|
Posted May 9th, 2011 11:37 AM IP  Hi, sorry for bumping up an old thread, but I've tried the above to get the popups on our board (bear in mind I'm a complete novice at this)
The popup comes up ok, but when I click 'ok' to view the PMs now, I just get redirected to a blank page. Not sure what I'm doing wrong, is it possible to just have a popup saying 'you've got mail' and leave it at that?
|
|
|
|
|
|
|