#OPEN
includes/template_parser.php
#ADD
function MakeQuickReplyBox()
{ global $TopicID,$ent,$CurrentUser,$txt,$fSettings,$Subject;
$ent['formheader'] = MakeFormHeader('message.php','post','postform');
if ($CurrentUser['GroupID'] == 4)
$ent['namebox'] = MakeInputBox('post[username]','').MakeHiddenField('post[isguest]','y');
else
$ent['namebox'] = $CurrentUser['UserName'];
$ent['messagebox'] = MakeTextArea('post[Message]','');
$ent['action'] = MakeHiddenField('action','reply');
$ent['typeID'] = MakeHiddenField('TopicID',$TopicID);
$ent['formfooter'] = MakeFormFooter();
$ent['previewmessage'] = MakeButton($txt['Preview']);
$ent['sendmessage'] = MakeButton($txt['Reply']);
$ent['subjectbox'] = MakeHiddenField('post[subject]',$txt['re'].$Subject);
$ent['msgoptions'] = MakeHiddenField('post[signature]','y');
$ent['msgoptions'] .= MakeHiddenField('post[Emoticon]','y');
if ($fSettings['EnableHTML']=='y')
$ent['msgoptions'] .= MakeHiddenField('post[EnableHTML]','y');
if ($fSettings['EnabletFcode']=='y')
$ent['msgoptions'] .= MakeHiddenField('post[EnabletFcode]','y');
$ent['posticonlist'] = MakeHiddenField('post[PosticonID]',1);
return (ParseTemp(ReadTemplate('quickreply'),$ent));
}
#OPEN
language/text.php
#ADD
$txt['QuickReply'] = 'Quick Reply';
#CREATE
templates/quickreply.html
#OPEN
viewtopic.php
#FIND
// Rate Topic Box //
if (CheckBit($CurrentUser['BitMask'],$BPermDefs,'ratetopic'))
{ $ent['RateTopic'] = ParseTemp(ReadTemplate('ratetopic'),$ent);
}
#ADDAFTER
// Quickreply Box //
if ((!CheckBit($row2['TopicTypeMask'],$TopicTypes,'locked')&&CheckBit($CurrentUser['BitMask'],$BPermDefs,'reply'))||$CurrentUser['ismod'])
{ $ent['QuickReply'] = MakeQuickReplyBox();
}
#OPEN
templates/viewtopic.html
#FIND
|
#ADDAFTER
#END