vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   pm pop-up? (https://vborg.vbsupport.ru/showthread.php?t=53670)

Dribbles 06-01-2003 04:32 AM

pm pop-up?
 
any help? was told that this was the place to post this:

http://www.vbulletin.com/forum/showt...threadid=72436

Erwin 06-01-2003 04:56 AM

What's the question? PM pop-up not working is not enough information to help you. What hacks have you installed?

Dribbles 06-01-2003 07:09 AM

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?

Erwin 06-01-2003 08:31 AM

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.

Dribbles 06-01-2003 09:19 AM

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 :(

WEForums 06-01-2003 10:19 AM

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.

Dribbles 06-01-2003 09:54 PM

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>


Erwin 06-02-2003 03:16 AM

Sorry, I meant headinclude. :)

Just try removing the extra JS, and see if popup works.

Dribbles 06-02-2003 04:38 AM

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 :)

WEForums 06-02-2003 05:15 AM

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.


All times are GMT. The time now is 01:02 PM.

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.02671 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_code_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