You only need to apply these template edits if one of the edits did not automatically install. See the README for more information.

====================
In MEMBERINFO, find:
====================

$navbar

===========
Under, add:
===========

<if condition="$showfbpm == 'yes'">
<div id="pmformdiv$prepared[userid]" style="display:none">
    <iframe src="private.php?do=newpm&fbpm=newpm&u=$prepared[userid]" frameborder="0" width="<if condition="$vboptions[fbpm_width]">$vboptions[fbpm_width]<else />$stylevar[formwidth]</if>" height="$vboptions[fbpm_height]" scrolling="auto"></iframe>
</div>
</if>

==========
Also find:
==========

<a href="private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]" rel="nofollow">

==========
Change to:
==========

<a href="private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]" rel="nofollow"<if condition="$showfbpm == 'yes'"> onclick="divwin=dhtmlwindow.open('divbox', 'div', 'pmformdiv$prepared[userid]', 'Send a Private Message to $userinfo[username]', 'width=<if condition="$vboptions[fbpm_width]">$vboptions[fbpm_width]<else />$stylevar[formwidth]</if>,height=$vboptions[fbpm_height],left=200px,top=50px,resize=0,scrolling=0'); return false"</if>>






======================================
In memberinfo_block_contactinfo, find:
======================================

<a href="private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]">

==========
Change to:
==========

<a href="private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]"<if condition="$show[fbpm] == 'yes'"> onclick="divwin=dhtmlwindow.open('divbox', 'div', 'pmformdiv$prepared[userid]', 'Send a Private Message to $userinfo[username]', 'width=<if condition="$vboptions[fbpm_width]">$vboptions[fbpm_width]<else />$stylevar[formwidth]</if>,height=$vboptions[fbpm_height],left=200px,top=50px,resize=0,scrolling=0'); return false"</if>>






===============================
In memberlist_resultsbit, find:
===============================

<if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" target="_blank" rel="nofollow">

==========
Change to:
==========

<if condition="$show['pmlink']"><if condition="$show['fbpm'] == 'yes'"><div id="pmformdiv$userinfo[userid]" style="display:none"><iframe src="private.php?do=newpm&fbpm=newpm&u=$userinfo[userid]" frameborder="0" width="<if condition="$vboptions[fbpm_width]">$vboptions[fbpm_width]<else />$stylevar[formwidth]</if>" height="$vboptions[fbpm_height]" scrolling="auto"></iframe></div></if><a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" target="_blank" rel="nofollow"<if condition="$show['fbpm'] == 'yes'"> onclick="divwin=dhtmlwindow.open('divbox', 'div', 'pmformdiv$userinfo[userid]', 'Send a Private Message to $userinfo[username]', 'width=<if condition="$vboptions[fbpm_width]">$vboptions[fbpm_width]<else />$stylevar[formwidth]</if>,height=$vboptions[fbpm_height],left=200px,top=50px,resize=0,scrolling=0'); return false"</if>>






=================================
In showgroups_usergroupbit, find:
=================================

<if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$user[userid]" rel="nofollow">

==========
Change to:
==========

<if condition="$show['pmlink']"><if condition="$show[fbpm] == 'yes'"><div id="pmformdiv$user[userid]" style="display:none"><iframe src="private.php?do=newpm&fbpm=newpm&u=$user[userid]" frameborder="0" width="<if condition="$vboptions[fbpm_width]">$vboptions[fbpm_width]<else />$stylevar[formwidth]</if>" height="$vboptions[fbpm_height]" scrolling="auto"></iframe></div></if><a href="private.php?$session[sessionurl]do=newpm&amp;u=$user[userid]" rel="nofollow"<if condition="$show[fbpm] == 'yes'"> onclick="divwin=dhtmlwindow.open('divbox', 'div', 'pmformdiv$user[userid]', 'Send a Private Message to $user[username]', 'width=<if condition="$vboptions[fbpm_width]">$vboptions[fbpm_width]<else />$stylevar[formwidth]</if>,height=$vboptions[fbpm_height],left=200px,top=50px,resize=0,scrolling=0'); return false"</if>>


====================================
In postbit and postbit_legacy, find:
====================================

$template_hook[postbit_start]

===========
Under, add:
===========

<if condition="$showfbpm == 'yes'">
<div id="pmformdiv$post[postid]" style="display:none">
    <iframe src="private.php?do=newpm&fbpm=newpm&u=$post[userid]" frameborder="0" width="<if condition="$vboptions[fbpm_width]">$vboptions[fbpm_width]<else />$stylevar[formwidth]</if>" height="$vboptions[fbpm_height]" scrolling="auto"></iframe>
</div>
</if>


==========
Also find:
==========

<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow">

==========
Change to:
==========

<a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"<if condition="$showfbpm == 'yes'"> onclick="divwin=dhtmlwindow.open('divbox', 'div', 'pmformdiv$post[postid]', 'Send a Private Message to $post[username]', 'width=<if condition="$vboptions[fbpm_width]">$vboptions[fbpm_width]<else />$stylevar[formwidth]</if>,height=$vboptions[fbpm_height],left=200px,top=50px,resize=0,scrolling=0'); return false"</if>>







=====================
In headinclude, find:
=====================

<!-- / CSS Stylesheet -->

===========
Under, add:
===========

<link rel="stylesheet" href="clientscript/dhtmlwindow.css" type="text/css" />

<script type="text/javascript" src="clientscript/dhtmlwindow.js">

/***********************************************
* DHTML Window Widget-  Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>