A Quick Reply for the PM's...
Note: Extreme Styles Mod is required for this to work as PHP is used in the Template... (Thanks for pointing this out ThatBitExtra, I blame my age...
- Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
templates/Artemis/privmsgs_read_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a></span></td>
</tr>
</table>
<br />
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<?php
global $userdata, $board_config, $is_auth, $lang, $phpEx;
?>
#
#-----[ FIND ]------------------------------------------
#
<td>{REPLY_PM_IMG}</td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td>{REPLY_PM_IMG} <a href="javascript:ShowHide('quick_reply','quick_reply2');"><img src="{T_TEMPLATE_PATH}/images/lang_{LANG}/quick_reply.gif" border="0" alt="{CA_QR_BUTTON}" /></a></td>
#
#-----[ FIND ]------------------------------------------
#
</tr>
</table>
</form>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<div id="quick_reply" style="display: none; position: relative; "><form action="{S_PRIVMSGS_ACTION}" method="post" name="post" style="display: inline;">{S_HIDDEN_FIELDS}{TPL_HDR1}{CA_QR_BUTTON}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{MESSAGE_FROM}" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'height=200,width=400,resizable=yes');return false;" /></span></td>
</tr>
<tr>
<td class="row1" width="200" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Subject']; ?>:</b></span></td>
<td class="row2" width="100%"><input type="text" name="subject" size="45" maxlength="60" style="width:98%" tabindex="2" class="post" value="Re: {POST_SUBJECT}" /></td>
</tr>
<tr>
<td class="row" width="200" nowrap="nowrap" valign="top"><span class="gen"><b><?php echo $lang['Message_body']; ?>:<br /><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="200" height="1" border="0" alt="" /></b></span></td>
<td class="row" width="100%"><table width='100%' cellspacing='2' cellspacing='3'>
<tr>
<td colspan='2'><textarea name="message" rows="15" cols="35" wrap="virtual" style="width:98%" tabindex="3" class="post"></textarea></td>
</tr>
</table>
</tr>
<tr>
<td class="row1" valign="top" nowrap="nowrap"><span class="gen"><b><?php echo $lang['Options']; ?>:</b></span></td>
<td class="row2"><span class="genmed">
<?php
$user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : '';
$html_on = $board_config['allow_html'] ? $userdata['user_allowhtml'] : 1;
$bbcode_on = $board_config['allow_bbcode'] ? $userdata['user_allowbbcode'] : 0;
$smilies_on = $board_config['allow_smilies'] ? $userdata['user_allowsmile'] : 0;
?>
<?php if($board_config['allow_html']) { ?>
<label><input type="checkbox" name="disable_html" <?php echo ($html_on ? '' : 'checked="checked"'); ?> /> <span class="genmed"><?php echo $lang['Disable_HTML_post']; ?></span></label><br />
<?php } else { ?><input type="hidden" name="disable_html" value="checked" /><?php } ?>
<?php if($board_config['allow_bbcode']) { ?>
<label><input type="checkbox" name="disable_bbcode" <?php echo ($bbcode_on ? '' : 'checked="checked"'); ?> /> <span class="genmed"><?php echo $lang['Disable_BBCode_post']; ?></span></label><br />
<?php } else { ?><input type="hidden" name="disable_bbcode" value="checked" /><?php } ?>
<?php if($board_config['allow_smilies']) { ?>
<label><input type="checkbox" name="disable_smilies" <?php echo ($smilies_on ? '' : 'checked="checked"'); ?> /> <span class="genmed"><?php echo $lang['Disable_Smilies_post']; ?></span></label><br />
<?php } else { ?><input type="hidden" name="disable_smilies" value="checked" /><?php } ?>
<?php if($user_sig) { ?>
<label><input type="checkbox" name="attach_sig" <?php echo ($userdata['user_attachsig'] ? 'checked="checked"' : ''); ?> /> <span class="genmed"><?php echo $lang['Attach_signature']; ?></span></label><br />
<?php } else { ?><input type="hidden" name="attach_sig" value="" /><?php } ?>
<label><input type="checkbox" name="notify" <?php echo ($userdata['user_notify'] ? 'checked="checked"' : ''); ?> /> <span class="genmed"><?php echo $lang['Notify']; ?></span></label><br />
</span>
</td>
</tr>
<tr>
<td class="catBottom" colspan="2" align="center" height="25"><input type="hidden" name="sid" value="<?php echo $userdata['session_id']; ?>" /><input type="hidden" name="mode" value="reply" /><input type="hidden" name="t" value="<?php echo $topic_id; ?>" /><input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="<?php echo $lang['Submit']; ?>" /> <input type="submit" tabindex="5" name="preview" class="mainoption" value="<?php echo $lang['Preview']; ?>" /></td>
</tr>
</table>{TPL_FTR}</form></div>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM




