The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

PM pop-up window position

View previous topic View next topic Go down

PM pop-up window position

Post by Festina Lente on February 27th 2012, 11:41 am

When receiving a new PM pop-up window was always displayed on the left top corner of the forum... now it is on center of the page... how do I return it to the left top corner?

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Re: PM pop-up window position

Post by xGraphicGodx on February 27th 2012, 12:51 pm

ACP>>Modules>>Forum widgets management

Make sure its on the left

Hope I helped! Wink

xGraphicGodx
Forumember

Male Posts : 125
Reputation : 12
Language : English

http://computerspeech.forumotion.com

Back to top Go down

Re: PM pop-up window position

Post by Festina Lente on February 27th 2012, 1:07 pm

That isn't the answer I need...

Festina Lente
Forumember

Male Posts : 279
Reputation : 20
Language : English

Back to top Go down

Re: PM pop-up window position

Post by aRt)Y on February 27th 2012, 3:14 pm

go to the admin panel (advanced) -> display -> templates -> post&private messages -> privmsgs_popup -> Edit

Copy this code and replace it with your old one
(should be the default code ; for me it's popping up in the top left corner)
Spoiler:
Code:
<!-- BEGIN html_validation -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
   <table>
      <tr>
         <td>
<!-- END html_validation -->
         <script type="text/javascript">
         //<![CDATA[
            function jump_to_inbox(){
               opener.document.location.href="{U_PRIVATEMSGS}";
               window.close();
            }
         //]]>
         </script>
         <table width="100%" border="0" cellspacing="0" cellpadding="10">
            <tr>
               <td>
               <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="4">
                  <tr>
                     <td class="row1" align="center" valign="top"><br />
                     <span class="gen">{L_MESSAGE}</span><br />
                     <br />
                     <span class="genmed"><a class="genmed" href="javascript:window.close();">{L_CLOSE_WINDOW}</a></span><br />
                     <br />
                     </td>
                  </tr>
               </table>
               </td>
            </tr>
         </table>
         </td>
      </tr>
   </table>
</body>
</html>

aRt)Y
Forumember

Male Posts : 97
Reputation : 6
Language : German
Location : Germany

Back to top Go down

Re: PM pop-up window position

Post by LGforum on February 27th 2012, 4:54 pm

That won't do anything other than change the html of the inside of the window.

You need to go to your overall header template and find this:
Code:

      <!-- BEGIN switch_enable_pm_popup -->
         pm = window.open('{U_PRIVATEMSGS_POPUP}', '_faprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');
         pm.focus();
      <!-- END switch_enable_pm_popup -->

change this bit: 'HEIGHT=225,resizable=yes,WIDTH=400'
to this: 'HEIGHT=225,resizable=yes,WIDTH=400,left=1'

Mind you, those with template access i thoroughly recommend removing that piece of javascript altogether and making your own pop up.
Something likethis:

Code:

<!-- BEGIN switch_enable_pm_popup -->
<div id="pmpopup">
        <a href="/privmsg?folder=inbox">You have new messages in your inbox</a><br><br>
<div onclick="this.parentNode.style.display='none'">Close</div> 
</div>             
<!-- END switch_enable_pm_popup -->

Then put this in the CSS:
Code:

#pmpopup {
  position: fixed;
  top: 10px; right: 10px;
  background: #e1ebf2;
  padding: 10px;
  border: 1px solid #c05;
  box-shadow: 3px 3px 3px #888;
}
#pmpopup div {
  padding: 3px 5px;
  border: 1px solid #105289;
  cursor: pointer;
}
#pmpopup div:hover {
  color: #fff;
  background: #105289;
}

Something like that is MUCH better and much less annoying for your users... not to mention it also won't crash your Javascripts like the default pop up does.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum