PM Popup won't show
#11
I didnt post here!! Did I?
I remember there was a topic belonging to oct 2005 and somebody had posted in! Im pretty much confused!
Maybe it was a mistake. I looked at the join date instead of post date!:p WTF?!
Quote:wth arashpour is going crazy..
LOL...
#12
CraKteR Wrote:
arashpour Wrote:This thread is over 1 year old! It may walk now by itself!!!:-p

wth arashpour is going crazy..


Paul124897, are you getting any javascript errors? If you are using Firefox it's under Tools -> Error console.

No errors.

Btw, I had this problem in 1.2.1 as well.
#13
Paul124897 Wrote:http://www.bullrage.com/bb/

Ok, I have registered and if you wouldn't mind, please attempt to send me a PM. My username is Christian.
[Need Smilies? Get Me Smileys!
#14
Christian Wrote:Ok, I have registered and if you wouldn't mind, please attempt to send me a PM. My username is Christian.
Couldn't you send one to yourself? Cool Smile

* Ryan Loos sighs. Smile
Sorry about that, I am wrong. Smile

Christian: You forgot your smilies! Smile
#15
rh1n0 Wrote:Couldn't you send one to yourself? Cool Smile

Yes I could, but then I wouldn't get the new PM popup as I would be redirected to priavte.php.
[Need Smilies? Get Me Smileys!
#16
Christian Wrote:
Paul124897 Wrote:http://www.bullrage.com/bb/

Ok, I have registered and if you wouldn't mind, please attempt to send me a PM. My username is Christian.

Done
#17
Paul124897 Wrote:Done

I believe I found the problem, as I understand it, you can only have one onload attribute, you have two. You need to combine them into one to make them function properly. This fix might help, but please keep in mind that I haven't tested it.

In functions.php, Find:
if($loadpmpopup)
{
if(my_substr($_SERVER['PHP_SELF'], -strlen("private.php")) != "private.php")
{
$contents = str_replace("<body", "<body onload=\"MyBB.newPM()\"", $contents);
}
}
Replace with:
if($loadpmpopup)
{
if(my_substr($_SERVER['PHP_SELF'], -strlen("private.php")) != "private.php")
{
$contents = str_replace("<body onload=\"resize_images()\"", "<body onload=\"resize_images(); MyBB.newPM()\"", $contents);
}
}
[Need Smilies? Get Me Smileys!
#18
Christian Wrote:
Paul124897 Wrote:Done

I believe I found the problem, as I understand it, you can only have one onload attribute, you have two. You need to combine them into one to make them function properly. This fix might help, but please keep in mind that I haven't tested it.

In functions.php, Find:
if($loadpmpopup)
{
if(my_substr($_SERVER['PHP_SELF'], -strlen("private.php")) != "private.php")
{
$contents = str_replace("<body", "<body onload=\"MyBB.newPM()\"", $contents);
}
}
Replace with:
if($loadpmpopup)
{
if(my_substr($_SERVER['PHP_SELF'], -strlen("private.php")) != "private.php")
{
$contents = str_replace("<body  onload=\"resize_images()\"", "<body onload=\"resize_images(); MyBB.newPM()\"", $contents);
}
}

Still no pop-up Sad
#19
Change:
$contents = str_replace("<body  onload=\"resize_images()\"", "<body onload=\"resize_images(); MyBB.newPM()\"", $contents);
to:
$contents = str_replace("<body onload=\"resize_images()\"", "<body onload=\"resize_images(); MyBB.newPM()\"", $contents);
And it should work. (Changes to the Code Christian posted)
#20
CraKteR Wrote:Change:
$contents = str_replace("<body  onload=\"resize_images()\"", "<body onload=\"resize_images(); MyBB.newPM()\"", $contents);
to:
$contents = str_replace("<body onload=\"resize_images()\"", "<body onload=\"resize_images(); MyBB.newPM()\"", $contents);
And it should work. (Changes to the Code Christian posted)

Okay, just changed that. However, still no popup


Forum Jump:


Users browsing this thread: 1 Guest(s)