You can also do it like this!
Open 'private.php'
FIND THIS!
Code:
if ($_REQUEST['stripquote'])
{
$pagetext = strip_quotes($pm['message']);
}
else
{
// this is now the default behavior -- leave quotes, like vB2
$pagetext = $pm['message'];
}
$pagetext = trim(htmlspecialchars_uni($pagetext));
eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');
REPLACE WITH
Code:
if ( empty ( $_REQUEST['noquote'] ) )
{
if ($_REQUEST['stripquote'])
{
$pagetext = strip_quotes($pm['message']);
}
else
{
// this is now the default behavior -- leave quotes, like vB2
$pagetext = $pm['message'];
}
$pagetext = trim(htmlspecialchars_uni($pagetext));
eval('$pm[message] = "' . fetch_template('newpost_quote', 1, 0) . '";');
}
else
{
$pm[message] = '';
}
Go to templates => 'postbit' and 'postbit_legacy' (1) edit (SAME EDIT) each template!
FIND THIS!
Code:
<if condition="$post['replylink']">
<a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
REPLACE WITH
Code:
<if condition="$post['replylink']">
<if condition="THIS_SCRIPT=='private'">
<a href="$post[replylink]"><img src="$stylevar[imgdir_button]/quote.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
<a href="$post[replylink]&noquote=1"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply_to_private_message]" border="0" /></a>
<else />
<a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
</if>
This allows for reply to PM with quote and reply to PM no message, but will load the title and who you are replying too!
Sonia