Popup Layer on New PMs

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
Ariane A
Registered User
Posts: 296
Joined: Thu Apr 03, 2008 5:26 pm
Location: Switzerland, by the Leman Lake
Contact:

Re: Popup Layer on New PMs

Post by Ariane A »

Yes there is and this option is set by default for all my new users, so that's not the problem.
Ariane
https://www.zeldaspalace.com - About the Legend of Zelda video games

Neoxxx
Registered User
Posts: 102
Joined: Wed Mar 18, 2009 12:18 pm

Re: Popup Layer on New PMs

Post by Neoxxx »

Hello i use phpbb 3.0.6 and i installed this mod...with IE8 the popup appear in center of the page but with FF3 the popup appear up on the left of the page..Why?

Thanks

v8power
Registered User
Posts: 8
Joined: Fri Feb 22, 2008 2:49 am

Re: Popup Layer on New PMs

Post by v8power »

with IE8 the popup appear in center of the page but with FF3 the popup appear up on the left of the page..Why?
I had this same problem. I uninstalled. Will use when fixed.

Ariane A
Registered User
Posts: 296
Joined: Thu Apr 03, 2008 5:26 pm
Location: Switzerland, by the Leman Lake
Contact:

Re: Popup Layer on New PMs

Post by Ariane A »

Strange. To me it works fine with FF3. (version 3.5.5)
Ariane
https://www.zeldaspalace.com - About the Legend of Zelda video games

Neoxxx
Registered User
Posts: 102
Joined: Wed Mar 18, 2009 12:18 pm

Re: Popup Layer on New PMs

Post by Neoxxx »

This fix what is it?

Thanks


wolkenkrieger wrote:Hi oleg,

i got a solution for the IE-problem :)

OPEN common.css

FIND

Code: Select all

#pm-popup {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 400px;
    text-align: center;
    margin-left: -200px;
    margin-top: -100px;
    border: 1px solid #d7e0e4;
    padding: 10px;
}
INLINE FIND

Code: Select all

z-index: 2;
REPLACE WITH

Code: Select all

z-index: 99999;
FIND

Code: Select all

#main-block {
	width: 100%;
	background-color: white;
}
REPLACE WITH

Code: Select all

#overlay {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99998;
    width: 100%;
    height: 500px;
    background-color: white; /*for prosilver style - change to what ever the styles background color is */
}
OPEN opacity.js

REPLACE ALL CODE WITH

Code: Select all

function setOpacity(opacity)
{
    var pageSize = getPageSize();
    
    initialize();

    var objOverlay = document.getElementById("overlay").style;
    
    objOverlay.height = pageSize[1] + "px";
    objOverlay.display = '';
    
    objOverlay.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + opacity + ")";
    objOverlay.opacity = opacity / 100;
    objOverlay.MozOpacity = opacity / 100;
    objOverlay.KhtmlOpacity = opacity / 100;
    
    return true;
}

function initialize()
{
    var objBody = document.getElementsByTagName("body");
    var objBody = objBody[0];    
    if (document.getElementById('overlay')) {
        objBody.removeChild(document.getElementById("overlay"));
    }
    var objOverlay = document.createElement("div");
        objOverlay.setAttribute('id','overlay');
        objOverlay.style.display = 'none';
        objBody.appendChild(objOverlay);
        
    return true;
}

function end()
{
    var objBody = document.getElementsByTagName("body");
    var objBody = objBody[0];    
    if (document.getElementById('overlay')) {
        objBody.removeChild(document.getElementById("overlay"));
    } 
}

function getPageSize() {    
    var xScroll, yScroll, windowWidth, windowHeight;
    if (window.innerHeight && window.scrollMaxY) {
        xScroll = document.scrollWidth;
        yScroll = (document.isFrame ? parent.innerHeight : self.innerHeight) + (document.isFrame ? parent.scrollMaxY : self.scrollMaxY);
    } else if (document.body.scrollHeight > document.body.offsetHeight){
        xScroll = document.body.scrollWidth;
        yScroll = document.body.scrollHeight;
    } else {
        xScroll = document.getElementsByTagName("html").item(0).offsetWidth;
        yScroll = document.getElementsByTagName("html").item(0).offsetHeight;
        xScroll = (xScroll < document.body.offsetWidth) ? document.body.offsetWidth : xScroll;
        yScroll = (yScroll < document.body.offsetHeight) ? document.body.offsetHeight : yScroll;
    }
    if (self.innerHeight) {
        windowWidth = (this.isFrame) ? parent.innerWidth : self.innerWidth;
        windowHeight = (this.isFrame) ? parent.innerHeight : self.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) {
        windowWidth = document.documentElement.clientWidth;
        windowHeight = document.documentElement.clientHeight;
    } else if (document.body) {
        windowWidth = document.getElementsByTagName("html").item(0).clientWidth;
        windowHeight = document.getElementsByTagName("html").item(0).clientHeight;
        windowWidth = (windowWidth == 0) ? document.body.clientWidth : windowWidth;
        windowHeight = (windowHeight == 0) ? document.body.clientHeight : windowHeight;
    }
    var pageHeight = (yScroll < windowHeight) ? windowHeight : yScroll;
    var pageWidth = (xScroll < windowWidth) ? windowWidth : xScroll;
    return new Array(pageWidth, pageHeight, windowWidth, windowHeight);
};
OPEN overall_header.html

FIND

Code: Select all

<div id="main-block">
REPLACE WITH (delete the line!)

FIND

Code: Select all

<p class="small"><a href="#" onclick="setOpacity('main-block',1);document.getElementById('pm-popup').style.display='none';return false;">{L_CLOSE_WINDOW}</a></p>
INLINE FIND

Code: Select all

setOpacity('main-block',1)
REPLACE WITH

Code: Select all

end()
OPEN overall_footer.html
FIND

Code: Select all

</div>

<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
INLINE FIND

Code: Select all

</div>
REPLACE WITH (relete the line!)

FIND

Code: Select all

setOpacity('main-block', 0.3);
REPLACE WITH

Code: Select all

setOpacity(60);
I've tested it with IE7, FF2 and FF3. The hack for IE6 is not implemented yet and the js-Code is not very clean :)

But it works :) and should be a base for a cleaner and nicer version :)

I hope it helps a little bit.

Greez

wolkenkrieger

FooKaa
Registered User
Posts: 57
Joined: Sun Jul 26, 2009 10:23 am
Location: London

Re: Popup Layer on New PMs

Post by FooKaa »

Hi all...

This mod is so much better than the original way it works but after a while of testing i have discovered this...

The pop up does pop up if your say viewing a post some where then click to another page eg. the index page...

But if your viewing the index page when the pm is recieved then click say to view whos on line or to view a post it does not pop up ??

Can that be fixed ??

Thanks in advance for any assistance :D

Neoxxx
Registered User
Posts: 102
Joined: Wed Mar 18, 2009 12:18 pm

Re: Popup Layer on New PMs

Post by Neoxxx »

Any Update? :D

Redy
Registered User
Posts: 102
Joined: Sun Feb 07, 2010 5:37 pm

Re: Popup Layer on New PMs

Post by Redy »

Nothing happen when I install it :(

User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: Popup Layer on New PMs

Post by keith10456 »

FooKaa wrote:Hi all...

This mod is so much better than the original way it works but after a while of testing i have discovered this...

The pop up does pop up if your say viewing a post some where then click to another page eg. the index page...

But if your viewing the index page when the pm is recieved then click say to view whos on line or to view a post it does not pop up ??

Can that be fixed ??

Thanks in advance for any assistance :D
Has an answer been found for this?

User avatar
sam_8085
Registered User
Posts: 93
Joined: Wed Mar 25, 2009 4:28 am

Re: Popup Layer on New PMs

Post by sam_8085 »

I have installed this MOD on phpBB 3.0.7 PL1 its working fine, as of now......

I just installed this mod and enable it..

User Control Panel >> Board preferences >> Edit global settings >> Pop up window on new private message: YES

then it started working.... :)

I have a question .... can set this option to YES for all my users by default.... 8-)

eXo`
Registered User
Posts: 146
Joined: Sat Mar 13, 2010 7:28 pm

Re: Popup Layer on New PMs

Post by eXo` »

Hi, i have a problem too with this Mod.. popup shows in top left corner, above site logo :(

using Sublite theme, based on subsilver..

any ideas?

thanks

eXo`
Registered User
Posts: 146
Joined: Sat Mar 13, 2010 7:28 pm

Re: Popup Layer on New PMs

Post by eXo` »

anyone can help? :(

cipcip
Registered User
Posts: 38
Joined: Sun May 20, 2007 10:24 am

Re: Popup Layer on New PMs

Post by cipcip »

Hi I have a situation on the includes/functions_user.php

I use PHPBB v3.0.7-PL1

I cannot find this: 'user_options' => 895,

I have this by default, I never used it for any other mods or I can't remember this: 'user_options' => 230271,

Can you please tell me which value should be ? Thanks!

Ariane A
Registered User
Posts: 296
Joined: Thu Apr 03, 2008 5:26 pm
Location: Switzerland, by the Leman Lake
Contact:

Re: Popup Layer on New PMs

Post by Ariane A »

'user_options' => 231295,
Ariane
https://www.zeldaspalace.com - About the Legend of Zelda video games

cipcip
Registered User
Posts: 38
Joined: Sun May 20, 2007 10:24 am

Re: Popup Layer on New PMs

Post by cipcip »

Thanks, but how is this calculated ?

Locked

Return to “[3.0.x] MOD Database Releases”