Page 1 of 1
Making Quick Reply Always Visible
Posted: 02 Sep 2010, 21:01
by Wipper179
by any chance, does know how to make the quick reply always visible, so you don't have to click the "quick reply" button on the bottom of topics?
im using phpBB3.0.7 PL-1
Re: Making Quick Reply Always Visible
Posted: 02 Sep 2010, 21:15
by Steve
Open your style(prosilver based)/template/quickreply_editor.html
find all:
Code: Select all
<script type="text/javascript">
// <![CDATA[
function hide_qr(show)
{
dE('qr_editor_div');
dE('qr_showeditor_div');
if (show && document.getElementById('qr_editor_div').style.display != 'none')
{
document.getElementsByName('message')[0].focus();
}
return true;
}
function init_qr()
{
dE('qr_showeditor_div');
return true;
}
onload_functions.push('init_qr();');
// ]]>
</script>
<noscript>
<form method="post" action="{U_QR_ACTION}">
<div class="panel" id="qr_ns_editor_div">
<div class="inner"><span class="corners-top"><span></span></span>
<h2>{L_QUICKREPLY}</h2>
<fieldset class="fields1">
<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}:</label></dt>
<dd><input type="text" name="subject" id="subject-ns" size="45" maxlength="64" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
</dl>
<div id="message-box-ns">
<textarea style="height: 9em;" name="message" rows="7" cols="76" tabindex="3" class="inputbox"></textarea>
</div>
</fieldset>
<fieldset class="submit-buttons">
{S_FORM_TOKEN}
{QR_HIDDEN_FIELDS}
<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1" />
<input type="submit" accesskey="f" tabindex="7" name="full_editor" value="{L_FULL_EDITOR}" class="button2" />
</fieldset>
<span class="corners-bottom"><span></span></span></div>
</div>
</form>
</noscript>
<form method="post" action="{U_QR_ACTION}">
<div class="panel" style="display: none" id="qr_editor_div">
<div class="inner"><span class="corners-top"><span></span></span>
<h2>{L_QUICKREPLY}</h2>
<fieldset class="fields1">
<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}:</label></dt>
<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
</dl>
<div id="message-box">
<textarea style="height: 9em;" name="message" rows="7" cols="76" tabindex="3" class="inputbox"></textarea>
</div>
</fieldset>
<fieldset class="submit-buttons">
{S_FORM_TOKEN}
{QR_HIDDEN_FIELDS}
<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1" />
<input type="submit" accesskey="f" tabindex="6" name="full_editor" value="{L_FULL_EDITOR}" class="button2" />
</fieldset>
<a href="" class="right-box up" onclick="hide_qr(false); return false;" title="{L_COLLAPSE_QR}">{L_COLLAPSE_QR}</a>
<span class="corners-bottom"><span></span></span></div>
</div>
<div class="panel" style="display: none" id="qr_showeditor_div" >
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
<fieldset class="submit-buttons">
<input type="submit" name="show_qr" tabindex="1" class="button2" value="{L_SHOW_QR}" onclick="hide_qr(true);return false;"/>
</fieldset>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
</form>
replace with:
Code: Select all
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<h2>{L_QUICKREPLY}</h2>
<fieldset class="fields1">
<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}:</label></dt>
<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
</dl>
<div id="message-box-ns">
<textarea style="height: 9em;" name="message" rows="7" cols="76" tabindex="3" class="inputbox"></textarea>
</div>
</fieldset>
<fieldset class="submit-buttons">
{S_FORM_TOKEN}
{QR_HIDDEN_FIELDS}
<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1" />
<input type="submit" accesskey="f" tabindex="7" name="full_editor" value="{L_FULL_EDITOR}" class="button2" />
</fieldset>
<span class="corners-bottom"><span></span></span></div>
</div>
</form>
Re: Making Quick Reply Always Visible
Posted: 02 Sep 2010, 22:17
by Wipper179
thanks, it all works
oh, ok, it doesn't all work, after i replaced it with the new code, the submit and full editor button's dont work, you click them, nothing happen's
Re: Making Quick Reply Always Visible
Posted: 03 Sep 2010, 22:41
by cisco007
undo any edits you have done for this and try this!
I don't remember where i got this from, but all credit goes to the original author!
Quick Reply is a new feature in version 3.0.6.
If Quick Reply is enabled in Post settings and in Forum settings, prosilver displays a "Quick Reply" button, which must be clicked to open the Reply window. For those who want to eliminate this step:
OPEN quickreply_editor.html
FIND:
Code: Select all
onload_functions.push('init_qr();');
REPLACE WITH:
Code: Select all
// onload_functions.push('init_qr();');
FIND AND DELETE the one occurrence each of:
AND
Re: Making Quick Reply Always Visible
Posted: 03 Sep 2010, 23:13
by Steve
Hey it works for me but try what cisco007 posted other than that it worked.
testedqrfull.PNG
oneqr.PNG
Re: Making Quick Reply Always Visible
Posted: 04 Sep 2010, 12:08
by Wipper179
its weird, because cisco's worked, and steve, yours didn't for me, i don't know what the issue was myself