############################################### 
##   Hack Title:   Center PM notification 
##   Hack Version:   1.0.0
##   Author:      Antony Bailey
##   Description:   Makes the pop-up for PM's centered. 
##   Compatibility:   2.0.0 - 2.0.4 
## 
##   Installation Level: Easy
##   Installation Time: 1 minute if that.
##   Files To Edit: 1
##      overall_header.tpl
## 
## 
##   History: 
##      1.0.0:    Initial release.
## 
##   Author Notes: 
##      It annoys me being out the way and not noticing it.
##      Thought I'd stick it in the middle so I don't miss it. ;-)
## 
##   Support:      http://www.phpbbhacks.com/forums 
##   Copyright:      2003 Center PM Notification 1.0.0 - Antony Bailey
## 
############################################### 
##   You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads. 
##   Please visit http://www.phpbbhacks.com/forums for support. 
############################################### 
## 
############################################### 
##   This hack is released under the GPL License. 
##   This hack can be freely used, but not distributed, without permission. 
##   Intellectual Property is retained by the hack author(s) listed above. 
############################################### 

# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subSilver/overall_header.tpl 

# 
#-----[ FIND ]------------------------------------------ 
# 

<!-- BEGIN switch_enable_pm_popup --> 
<script language="Javascript" type="text/javascript"> 
<!-- 
   if ( {PRIVATE_MESSAGE_NEW_FLAG} ) 
   { 
      window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; 
   } 
//--> 
</script> 
<!-- END switch_enable_pm_popup --> 

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

<!-- BEGIN switch_enable_pm_popup --> 
<script language="Javascript" type="text/javascript"> 
<!-- 
var win = null; 
function phpBBPOPUP(mypage,myname,w,h,scroll){ 
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 
TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' 
win = window.open(mypage,myname,settings) 
} 
   if ( {PRIVATE_MESSAGE_NEW_FLAG} ) 
   { 
      phpBBPOPUP('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', '400', '225', 'no');; 
   } 
//--> 
</script> 
<!-- END switch_enable_pm_popup --> 

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 