Evil Quick Reply

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
Hippie459MN
Registered User
Posts: 917
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: Evil Quick Reply

Post by Hippie459MN » Mon Apr 05, 2010 1:14 pm

r4wMUnt34q wrote:It does not seem to work on 3.0.7-PL1 for me on my getaway_dark_blue.
Why not just use the built in QR in phpbb seeing as your at 3.0.7?

sluncei
Registered User
Posts: 2
Joined: Wed Feb 13, 2008 8:30 pm

Re: Evil Quick Reply

Post by sluncei » Thu Apr 08, 2010 11:28 am

What I want ? mmm, I instaled this mod, but I don´t know how edit for subsilver2 addons for bbcode and smiles, I tried this in code, but this doesn´t work :( Can anyone help me pls ?

I tried this posting_qr_body.html

Code: Select all

 <script type="text/javascript">
        <!--
        /**
        * Toggle the visibility of the qr box
        */
        function toggle_quick_reply()
        {
           if (document.getElementById('quick_reply'))
           {
              if (document.getElementById('quick_reply').style.display == 'block')
              {
                 document.getElementById('quick_reply').style.display = 'none';
              }
              else
              {
                 document.getElementById('quick_reply').style.display = 'block';
              }
           }
        }

        <!-- IF S_QR_RESIZE -->
        /**
        * Resize a textbox
        * Original function by Disturbed One (http://www.hvmdesign.com/)
        */
        function textbox_resize(pix)
        {
           var box         = document.getElementById('message');
           var new_height   = (parseInt(box.style.height) ? parseInt(box.style.height) : 300) + pix;
           
           if (new_height > 0)
           {
              box.style.height = new_height + 'px';
           }
           
           return false;
        }
        <!-- ENDIF -->

        if (<!-- IF S_QR_HIDE_BOX -->1<!-- ELSE -->0<!-- ENDIF -->)
        {
           if (document.addEventListener)
           {
              document.addEventListener('DOMContentLoaded', toggle_quick_reply, false);
           }
           else
           {
              onload_functions.push('toggle_quick_reply()');
           }
        }
        //-->
        </script>
            <div id="quick_reply">
               <form action="{S_QR_POST_ACTION}" method="post" name="postform">
                  <table class="tablebg" width="100%" cellspacing="1">
                   <tr>
                     <th colspan="2">Quick Reply</th>
                  </tr>
                  <!-- IF S_QR_SUBJECT -->
                  <tr>

                        <td class="row1" width="18%"><b class="genmed">{L_SUBJECT}:</b></td>

                     <td class="row2" align="left" valign="middle" colspan="2" width="82%"><input class="post" type="text" name="subject" size="45" maxlength="64" tabindex="1" value="{QR_SUBJECT}" style="width: 90%;" /></td>
                  </tr>
                  <!-- ENDIF -->
                  <tr>
                        <td class="row1" width="15%" valign="top" id="smiley-box"><br />
                           <!-- IF S_SMILIES_ALLOWED -->
                              <table width="100%" cellspacing="5" cellpadding="0" border="0" align="center">
                                  <tr>
                                     <td class="gensmall" align="center"><b>{L_SMILIES}</b></td>
                                  </tr>
                                  <tr>
                                     <td align="justify">
                                            <!-- IF S_SMILIES_ALLOWED and .smiley -->
                                               <!-- BEGIN smiley -->
                                                  <a href="#message" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
                                               <!-- END smiley -->
                                        <!-- ENDIF -->
                                        <!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
                                           <br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a><br /><br />
                                    <!-- ENDIF -->
                                     </td>
                                  </tr>

                              </table>
                           <!-- ENDIF -->

                 </td>
                        <td class="row1">
                        <script type="text/javascript">
                  // <![CDATA[
                     var form_name = 'postform';
                     var text_name = 'message';
                  // ]]>
                  </script>
                        <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <!-- INCLUDE posting_buttons.html -->

                        <tr>
                         
                            <td class="row1" align="left" valign="middle" colspan="2"> <textarea class="post" name="message" id="message" rows="15" cols="76" tabindex="2" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width: 100%; height: 150px;"></textarea> </td>
<!-- IF S_BBCODE_ALLOWED -->
                     <td width="80" align="center" valign="top">
                           <script type="text/javascript">
                        // <![CDATA[
                           colorPalette('v', 7, 6)
                        // ]]>
                        </script>
                     </td>
                     <!-- ENDIF -->
                        </tr>
                        </table>
                        </td>
                  </tr>
                  <!-- IF S_QR_RESIZE -->
                  <tr>
                     <td class="row2" colspan="2">
                        <input type="button" value=" + " class="btnlite" onclick="textbox_resize(100);" />
                        <input type="button" value=" - " class="btnlite" onclick="textbox_resize(-100);" />
                     </td>
                  </tr>
                  <!-- ENDIF -->
                  <!-- IF not S_USER_LOGGED_IN -->
                  <tr>
            

                     <td class="row1" width="15%"><label for="username"><b class="genmed">{L_USERNAME}: </b></label></td>
                     <td class="row2" valign="middle"><input type="text" style="width: 300px" class="post" name="username" id="username" size="30" tabindex="3" /></td>
                  </tr>
                  <!-- IF S_CONFIRM_CODE -->
                  <tr>
                     <td class="row1"><label for="confirm_code"><b class="genmed">{L_CONFIRM_CODE}: </b></label></td>
                     <td class="row2">
                        {CONFIRM_IMAGE}<br clear="all" /><br />
                        <input type="hidden" name="confirm_id" value="{CONFIRM_ID}" />
                        <input class="post" type="text" name="confirm_code" id="confirm_code" size="8" maxlength="8" tabindex="4" />
                     </td>
                  </tr>
                  <!-- ENDIF -->
                  <!-- ENDIF -->
                  <tr>
                     <td class="cat" align="center" colspan="2">
                        {S_QR_HIDDEN_FIELDS}
                        <input type="submit" name="preview" tabindex="6" value="{L_PREVIEW}" class="btnlite" />&nbsp;&nbsp;
                        <input type="submit" name="post" tabindex="5" value="{L_SUBMIT}" class="btnmain" accesskey="s" />
                     </td>
                  </tr>
                  </table>
               {S_FORM_TOKEN}
               </form>
            </div>

and my original posting_qr_body.html is :

Code: Select all

<script type="text/javascript">
<!--
/**
 * Toggle the visibility of the qr box
 */
function toggle_quick_reply()
{
	if (document.getElementById('quick_reply'))
	{
		if (document.getElementById('quick_reply').style.display == 'none')
		{
			document.getElementById('quick_reply').style.display = 'block';
		}
		else
		{
			document.getElementById('quick_reply').style.display = 'none';
		}
	}
}

<!-- IF S_QR_RESIZE -->
/**
 * Resize a textbox
 * Original function by Disturbed One (http://www.hvmdesign.com/)
 */
function textbox_resize(pix)
{
	var box			= document.getElementById('message');
	var new_height	= (parseInt(box.style.height) ? parseInt(box.style.height) : 300) + pix;

	if (new_height > 0)
	{
		box.style.height = new_height + 'px';
	}

	return false;
}
<!-- ENDIF -->

if (<!-- IF S_QR_HIDE_BOX -->1<!-- ELSE -->0<!-- ENDIF -->)
{
	if (document.addEventListener)
	{
		document.addEventListener('DOMContentLoaded', toggle_quick_reply, false);
	}
	else
	{
		window.onload = function()
		{
			toggle_quick_reply();
		}
	}
}
//-->
</script>

<div id="quick_reply">
	<form action="{S_QR_POST_ACTION}" method="post">
		<table class="tablebg" width="100%" cellspacing="1">
		<tr>
			<th colspan="2">{L_QUICK_REPLY}</th>
		</tr>
		<!-- IF S_QR_SUBJECT -->
		<tr>
			<td class="row2" align="center" valign="middle" colspan="2"><input class="post" type="text" name="subject" size="45" maxlength="64" tabindex="1" value="{QR_SUBJECT}" style="width: 70%;" /></td>
		</tr>
		<!-- ENDIF -->
		<tr>
			<td class="row2" align="center" valign="middle" colspan="2"><textarea name="message" id="message" rows="15" cols="76" tabindex="2" style="width: 70%; height: 250px;"></textarea></td>
		</tr>
		<!-- IF S_QR_RESIZE -->
		<tr>
			<td class="row2" colspan="2">
				<input type="button" value=" + " class="btnlite" onclick="textbox_resize(100);" />
				<input type="button" value=" - " class="btnlite" onclick="textbox_resize(-100);" />
			</td>
		</tr>
		<!-- ENDIF -->
		<!-- IF not S_USER_LOGGED_IN -->
		<tr>
			<td class="row1" width="15%"><label for="username"><b class="genmed">{L_USERNAME}: </b></label></td>
			<td class="row2" valign="middle"><input type="text" style="width: 300px" class="post" name="username" id="username" size="30" tabindex="3" /></td>
		</tr>
		<!-- IF S_CONFIRM_CODE -->
		<tr>
			<td class="row1"><label for="confirm_code"><b class="genmed">{L_CONFIRM_CODE}: </b></label></td>
			<td class="row2">
				{CONFIRM_IMAGE}<br clear="all" /><br />
				<input type="hidden" name="confirm_id" value="{CONFIRM_ID}" />
				<input class="post" type="text" name="confirm_code" id="confirm_code" size="8" maxlength="8" tabindex="4" />
			</td>
		</tr>
		<!-- ENDIF -->
		<!-- ENDIF -->
		<tr>
			<td class="cat" align="center" colspan="2">
				{S_QR_HIDDEN_FIELDS}
				<input type="submit" name="preview" tabindex="6" value="{L_PREVIEW}" class="btnlite" />&nbsp;&nbsp;
				<input type="submit" name="post" tabindex="5" value="{L_SUBMIT}" class="btnmain" accesskey="s" />
			</td>
		</tr>
		</table>
	{S_FORM_TOKEN}
	</form>
</div>

Locked

Return to “[3.0.x] MOD Database Releases”