beim Simple Quick Reply haben manche das Problem, dass unten ein großer Kasten kommt. Manche wollen einfach nur den Quick Reply links stehen haben. Der Mod dauert aber 10x länger zu installieren als der Simple Quick Reply.
Daher habe ich den Simple Quick Reply umgecodet, dass er die gleiche Funktion wie der normale Quick Reply hat.
Ist also 10x schneller zu Installieren.
Code: Alles auswählen
###############################
[Öffne]
viewtopic.php
###############################
###############################
[Finde]
$template->pparse('body');
###############################
###############################
[Before, Add]
//
// Simple Quick Reply MOD
//
if ( ($is_auth['auth_reply'] && ($forum_topic_data['forum_status'] != FORUM_LOCKED) && ($forum_topic_data['topic_status'] != TOPIC_LOCKED) ) || ($userdata['user_level'] == ADMIN) )
{
$template->assign_vars(array(
'L_EMPTY_MSG' => $lang['Empty_message'],
'L_PREVIEW' => $lang['Preview'],
'L_QUICK_REPLY' => $lang['Quick_Reply'],
'L_SUBMIT' => $lang['Submit'],
'L_USERNAME' => $lang['Username'],
'S_ATTACH_SIG' => (( $userdata['session_logged_in'] ) ? $userdata['user_attachsig'] : 0) ? '1' : '',
'S_NOTIFY' => (( $userdata['session_logged_in'] ) ? $userdata['user_notify'] : 0) ? '1' : '',
'S_POSTING' => 'posting.'.$phpEx,
'S_SID' => $userdata['session_id'],
'S_TOPIC_ID' => $topic_id)
);
$template->assign_block_vars('switch_quick_reply', array() );
if( !$userdata['session_logged_in'] )
{
$template->assign_block_vars('switch_quick_reply.switch_user_logged_out', array() );
}
}
//
// Simple Quick Reply MOD
//
#################################
#################################
[Öffne]
language/lang_english/lang_main.php
#################################
#################################
[Finde]
//
// That's all, Folks!
#################################
#################################
[Before Add]
// Simple Quick Reply MOD
$lang['Quick_Reply'] = 'Quick Reply';
#################################
#################################
[Öffne]
templates/subSilver/viewtopic_body.tpl
#################################
#################################
[Finde]
<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>
###############################################################
################################################################
[Ersetze durch]
<!-- BEGIN switch_quick_reply -->
<tr>
<td width="0%" nowrap="nowrap" colspan="2">
<table width="0%" cellpadding="0" cellspacing="0" border="0" class="gensmall">
<tr>
</tr>
<tr>
<script language="JavaScript" type="text/javascript"><!--
function checkForm() {
formErrors = false;
if (document.post.message.value.length < 2) {
formErrors = '{L_EMPTY_MSG}';
}
if (formErrors) {
alert(formErrors);
return false;
} else {
return true;
}
}
//--></script>
<form action="{S_POSTING}" method="post" name="post" onsubmit="return checkForm(this)"><span class="genmed">
<!-- BEGIN switch_user_logged_out -->
<b>{L_USERNAME}:</b> <input class="post" type="text" name="username" size="25" maxlength="25" value="" /><br />
<!-- END switch_user_logged_out -->
<textarea class="post" name="message" rows="10" cols="45" wrap="virtual"></textarea><br />
<input type="hidden" name="attach_sig" value="{S_ATTACH_SIG}" />
<input type="hidden" name="mode" value="reply" />
<input type="hidden" name="sid" value="{S_SID}" />
<input type="hidden" name="t" value="{S_TOPIC_ID}" />
<input type="hidden" name="notify" value="{S_NOTIFY}" /><br />
<input type="submit" name="preview" class="liteoption" value="{L_PREVIEW}" />
<input type="submit" name="post" class="mainoption" value="{L_SUBMIT}" />
</span></form>
</td>
</tr>
</table>
</td>
</tr>
<!-- END switch_quick_reply -->
###########################################################
[ Save & Close all Files ]
#############################################