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.
Linxus
Registered User
Posts: 165
Joined: Sat Nov 15, 2008 6:02 am

Re: Evil Quick Reply

Post by Linxus »

eviL<3 wrote:FAQ POST - READ THIS BEFORE ASKING ANY QUESTIONS


NOTHING HAPPENS...
  1. Make sure you made the style edits. They are in the templates/ folder. Follow the instructions of prosilver.xml / subsilver2.xml
  2. Make sure you refreshed templates, imagesets and themes in the acp. Go to the admin control panel -> styles. Select Templates on the left and hit "refresh" next to your style. Repeat for imagesets and templates.
  3. Make sure you uploaded all your files.
  4. Using the latest version?
Found a bug? Please report it here: http://phpbbmodders.net/tracker.php?p=1 But check if it's been reported and/or fixed yet.
When i click on the prosilver.xml, this is what comes up

Code: Select all

http://opensource.org/licenses/gpl-license.php GNU General Public License v2
		Evil Quick Reply - prosilver
		...
		...
		
			
				Igor Wiedler
				evil@phpbbmodders.net
				eviL<3
				http://phpbbmodders.net
				
			
		
		
			1
			0
			1
		
		
			easy
			300
			
				3.0.0
				3
				0
			
		
	
	
		
			
			
		
		
			
				img_button_topic_reply = button_topic_reply.gif*25*96
				img_button_quick_reply = button_quick_reply.gif*25*106
			
		
		
			
				{S_POLL_ACTION}
				<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->"><span></span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED_SHORT}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></a></div>
				<!-- IF S_QR_ENABLED --><div class="quick-reply-icon"><a href="javascript:toggle_quick_reply();" title="{L_QUICK_REPLY}"><span></span>{L_QUICK_REPLY}</a></div><!-- ENDIF -->
			
			
				<!-- INCLUDE jumpbox.html -->
				<!-- IF S_QR_ENABLED -->
	<!-- INCLUDE posting_qr_body.html -->
<!-- ENDIF -->
			
		
		
			
				.reply-icon span	{ background: transparent none 0 0 no-repeat; }
				.quick-reply-icon span	{ background: transparent none 0 0 no-repeat; }
			
			
				.buttons div.reply-icon		{ width: {IMG_BUTTON_TOPIC_REPLY_WIDTH}px; height: {IMG_BUTTON_TOPIC_REPLY_HEIGHT}px; }
				.buttons div.quick-reply-icon	{ width: {IMG_BUTTON_QUICK_REPLY_WIDTH}px; height: {IMG_BUTTON_QUICK_REPLY_HEIGHT}px; }
			
		
		
			
				.reply-icon span	{ background-image: url("{IMG_BUTTON_TOPIC_REPLY_SRC}"); }
				.quick-reply-icon span	{ background-image: url("{IMG_BUTTON_QUICK_REPLY_SRC}"); }
I did everything correctly and its still not showing up. I can't follow the instructions in the .xml template for prosilver theme, because there are none. Also, what are the sql database changes that this mod says it has? I don't see any in the instructions to install document. Thanks.

Edit: Also, i read that people can post in locked topics with the quick reply? Is this true?
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Evil Quick Reply

Post by leviatan21 »

Linxus wrote:When i click on the prosilver.xml, this is what comes up
****
I did everything correctly and its still not showing up. I can't follow the instructions in the .xml template for prosilver theme, because there are none. Also,
how you do "everything correctly" if you can't see the document ?? :shock:
try to open the prosilver.xml file with another browser ;)
Linxus wrote:what are the sql database changes that this mod says it has? I don't see any in the instructions to install document. Thanks.
there is no sql to run.
Linxus wrote:Edit: Also, i read that people can post in locked topics with the quick reply? Is this true?
Only if you are the admin 8-)
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
Linxus
Registered User
Posts: 165
Joined: Sat Nov 15, 2008 6:02 am

Re: Evil Quick Reply

Post by Linxus »

Thank you Leviaton. It works now, i opened up the installation instructions with i.e. instead of mozzila. Wow, i've installed my first 5 mods today :shock: Thanks again sir!
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

Code: Select all

-----[ FIND ]-------------------------------------------------------
#
      if ($qr_config['bbcodes'])
      {
         $template->assign_var('S_BBCODE_ALLOWED', true);
      }
#
#-----[ AFTER, ADD ]-------------------------------------------------
# NOTE: Add these lines on a new blank line after the preceding line(s) to find.
#
      display_custom_bbcodes();
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------------
#
# EoM
It is only that code that I can't find, and why it won't work.
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

Code: Select all

<?php
/**
 * Evil quick reply
 *
 * @package	phpBB3
 * @version 1.0.1
 * @copyright (c) 2007 eviL3
 * @license	http://opensource.org/licenses/gpl-license.php GNU Public License
 *
 */

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
 * This function will load everything needed for the evil quick reply
 *
 * @param int $topic_id
 * @param int $forum_id
 * @param array $topic_data
 */
function quick_reply($topic_id, $forum_id, &$topic_data)
{
	global $template, $user, $auth, $db;
	global $phpbb_root_path, $phpEx, $config;

	// Some little config for the quick reply, allows the admin to change these default values through the database.
	$qr_config = array(
		'enabled'			=> true, 	// Disable it easily
		'display_subject'	=> false,	// Do you want the subject line to be displayed
		'hide_box'			=> true,	// Shall the box be hidden on pageload?
		'resize'			=> true,	// Display the buttons to resize the textarea?

        );

	// do evil_qr_ prefixed of the config values exist in $config
	// /me slaps highway of life
	foreach (array_keys($qr_config) as $key)
	{
		if (isset($config['evil_qr_' . $key]))
		{
			$qr_config[$key] = $config['evil_qr_' . $key];
		}
	}

	// Check if user has reply permissions for this forum or the topic is locked (thanks damnian)
	if (!$auth->acl_get('f_reply', $forum_id) || ($topic_data['topic_status'] == ITEM_LOCKED && !$auth->acl_get('m_lock', $forum_id)) || !$qr_config['enabled'])
	{
		return;
	}

	// Hidden fields
	$s_hidden_fields = array(
		't'			=> $topic_id,
		'f'			=> $forum_id,
		'mode'		=> 'reply',
		'lastclick'	=> time(),
		'icon'		=> 0,
	);
	// Set preferences such as allow smilies, bbcode, attachsig
	$reply_prefs = array(
		'disable_bbcode'	=> ($config['allow_bbcode'] && $user->optionget('bbcode')) ? false : true,
		'disable_smilies'	=> ($config['allow_smilies'] && $user->optionget('smilies')) ? false : true,
		'disable_magic_url'	=> false,
		'attach_sig'		=> ($config['allow_sig'] && $user->optionget('attachsig')) ? true: false,
		'notify'			=> ($config['allow_topic_notify'] && ($user->data['user_notify'] || isset($topic_data['notify_status']))) ? true : false,
		'lock_topic'		=> ($topic_data['topic_status'] == ITEM_LOCKED && $auth->acl_get('m_lock', $forum_id)) ? true : false,

	);

	foreach ($reply_prefs as $name => $value)
	{
		if ($value)
		{
			$s_hidden_fields[$name] = 1;
		}
	}

	$subject = ((strpos($topic_data['topic_title'], 'Re: ') !== 0) ? 'Re: ' : '') . censor_text($topic_data['topic_title']);

	if (!$qr_config['display_subject'])
	{
		// /me is a show-off
		list($s_hidden_fields['subject'], $subject) = array($subject, '');
	}

	// Confirmation code handling (stolen from posting.php)
	if ($config['enable_post_confirm'] && !$user->data['is_registered'])
	{
		// Show confirm image
		$sql = 'DELETE FROM ' . CONFIRM_TABLE . "
			WHERE session_id = '" . $db->sql_escape($user->session_id) . "'
				AND confirm_type = " . CONFIRM_POST;
		$db->sql_query($sql);

		// Generate code
		$code = gen_rand_string(mt_rand(5, 8));
		$confirm_id = md5(unique_id($user->ip));
		$seed = hexdec(substr(unique_id(), 4, 10));

		// compute $seed % 0x7fffffff
		$seed -= 0x7fffffff * floor($seed / 0x7fffffff);

		$sql = 'INSERT INTO ' . CONFIRM_TABLE . ' ' . $db->sql_build_array('INSERT', array(
			'confirm_id'	=> (string) $confirm_id,
			'session_id'	=> (string) $user->session_id,
			'confirm_type'	=> (int) CONFIRM_POST,
			'code'			=> (string) $code,
			'seed'			=> (int) $seed,
		));

		$db->sql_query($sql);

		$template->assign_vars(array(
			'S_CONFIRM_CODE'	=> true,
			'CONFIRM_ID'		=> $confirm_id,
			'CONFIRM_IMAGE'		=> '<img src="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=confirm&id=' . $confirm_id . '&type=' . CONFIRM_POST) . '" alt="" title="" />',
		));
	}

	// new RC6/RC7 stuff
	add_form_key('posting');

	// Page title & action URL, include session_id for security purpose
	$s_action = append_sid("{$phpbb_root_path}posting.$phpEx", false, true, $user->session_id);
  
       // HTML, BBCode, Smilies, Images and Flash status
   $bbcode_status   = ($config['allow_bbcode'] && $auth->acl_get('f_bbcode', $forum_id)) ? true : false;
   $smilies_status   = ($bbcode_status && $config['allow_smilies'] && $auth->acl_get('f_smilies', $forum_id)) ? true : false;
   $img_status      = ($bbcode_status && $auth->acl_get('f_img', $forum_id)) ? true : false;
   $url_status      = ($config['allow_post_links']) ? true : false;
   $flash_status   = ($bbcode_status && $auth->acl_get('f_flash', $forum_id) && $config['allow_post_flash']) ? true : false;
   $quote_status   = ($auth->acl_get('f_reply', $forum_id)) ? true : false;
        // Assign template variables
	$template->assign_vars(array(
		'QR_SUBJECT'			=> $subject,

		'S_QR_HIDDEN_FIELDS'	=> build_hidden_fields($s_hidden_fields),
		'S_QR_POST_ACTION'		=> $s_action,

		'S_QR_ENABLED'			=> $qr_config['enabled'], // this is true anyway :P
		'S_QR_SUBJECT'			=> $qr_config['display_subject'],
		'S_QR_HIDE_BOX'			=> $qr_config['hide_box'],
		'S_QR_RESIZE'			=> $qr_config['resize'],
                'S_BBCODE_IMG'         => $img_status,
                'S_LINKS_ALLOWED'      => $url_status,
                'S_BBCODE_FLASH'      => $flash_status,
                'S_BBCODE_QUOTE'      => $quote_status,
	));

}

?>
This is my include function_qr file (code) and you make it display bbcode & smiles
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Evil Quick Reply

Post by leviatan21 »

rfforum wrote:This is my include function_qr file (code) and you make it display bbcode & smiles
This must do the job :

Code: Select all

<?php
/**
 * Evil quick reply
 *
 * @package	phpBB3
 * @version 1.0.1
 * @copyright (c) 2007 eviL3
 * @license	http://opensource.org/licenses/gpl-license.php GNU Public License
 *
 */

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
 * This function will load everything needed for the evil quick reply
 *
 * @param int $topic_id
 * @param int $forum_id
 * @param array $topic_data
 */
function quick_reply($topic_id, $forum_id, &$topic_data)
{
	global $template, $user, $auth, $db;
	global $phpbb_root_path, $phpEx, $config;
	
	// Some little config for the quick reply, allows the admin to change these default values through the database.
	$qr_config = array(
		'enabled'			=> true, 	// Disable it easily
		'display_subject'	=> false,	// Do you want the subject line to be displayed
		'hide_box'			=> true,	// Shall the box be hidden on pageload?
		'resize'			=> true,	// Display the buttons to resize the textarea?
// Evil Quick Reply Addon: BBcodes and smilies - Start
		'bbcodes'			=> isset($config['evil_qr_bbcodes']) ? $config['evil_qr_bbcodes'] : true,
		'smilies'			=> isset($config['evil_qr_smilies']) ? $config['evil_qr_smilies'] : true,
// Evil Quick Reply Addon: BBcodes and smilies - End
	);

	// do evil_qr_ prefixed of the config values exist in $config
	// /me slaps highway of life
	foreach (array_keys($qr_config) as $key)
	{
		if (isset($config['evil_qr_' . $key]))
		{
			$qr_config[$key] = $config['evil_qr_' . $key];
		}
	}
	
	// Check if user has reply permissions for this forum or the topic is locked (thanks damnian)
	if (!$auth->acl_get('f_reply', $forum_id) || ($topic_data['topic_status'] == ITEM_LOCKED && !$auth->acl_get('m_lock', $forum_id)) || !$qr_config['enabled'])
	{
		return;
	}
	
	// Hidden fields
	$s_hidden_fields = array(
		't'			=> $topic_id,
		'f'			=> $forum_id,
		'mode'		=> 'reply',
		'lastclick'	=> time(),
		'icon'		=> 0,
	);
	// Set preferences such as allow smilies, bbcode, attachsig
	$reply_prefs = array(
		'disable_bbcode'	=> ($config['allow_bbcode'] && $user->optionget('bbcode')) ? false : true,
		'disable_smilies'	=> ($config['allow_smilies'] && $user->optionget('smilies')) ? false : true,
		'disable_magic_url'	=> false,
		'attach_sig'		=> ($config['allow_sig'] && $user->optionget('attachsig')) ? true: false,

		'notify'			=> ($config['allow_topic_notify'] && ($user->data['user_notify'] || isset($topic_data['notify_status']))) ? true : false,
		'lock_topic'		=> ($topic_data['topic_status'] == ITEM_LOCKED && $auth->acl_get('m_lock', $forum_id)) ? true : false,
	);

	foreach ($reply_prefs as $name => $value)
	{
		if ($value)
		{
			$s_hidden_fields[$name] = 1;
		}
	}

	$subject = ((strpos($topic_data['topic_title'], 'Re: ') !== 0) ? 'Re: ' : '') . censor_text($topic_data['topic_title']);

	if (!$qr_config['display_subject'])
	{
		// /me is a show-off
		list($s_hidden_fields['subject'], $subject) = array($subject, '');
	}

	// Confirmation code handling (stolen from posting.php)
	if ($config['enable_post_confirm'] && !$user->data['is_registered'])
	{
		// Show confirm image
		$sql = 'DELETE FROM ' . CONFIRM_TABLE . "
			WHERE session_id = '" . $db->sql_escape($user->session_id) . "'
				AND confirm_type = " . CONFIRM_POST;
		$db->sql_query($sql);

		// Generate code
		$code = gen_rand_string(mt_rand(5, 8));
		$confirm_id = md5(unique_id($user->ip));
		$seed = hexdec(substr(unique_id(), 4, 10));

		// compute $seed % 0x7fffffff
		$seed -= 0x7fffffff * floor($seed / 0x7fffffff);

		$sql = 'INSERT INTO ' . CONFIRM_TABLE . ' ' . $db->sql_build_array('INSERT', array(
			'confirm_id'	=> (string) $confirm_id,
			'session_id'	=> (string) $user->session_id,
			'confirm_type'	=> (int) CONFIRM_POST,
			'code'			=> (string) $code,
			'seed'			=> (int) $seed,
		));

		$db->sql_query($sql);

		$template->assign_vars(array(
			'S_CONFIRM_CODE'	=> true,
			'CONFIRM_ID'		=> $confirm_id,
			'CONFIRM_IMAGE'		=> '<img src="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=confirm&id=' . $confirm_id . '&type=' . CONFIRM_POST) . '" alt="" title="" />',
		));
	}

	// new RC6/RC7 stuff
	add_form_key('posting');

	// Page title & action URL, include session_id for security purpose
	$s_action = append_sid("{$phpbb_root_path}posting.$phpEx", false, true, $user->session_id);

// MSSTI Addon - Start
	// HTML, BBCode, Smilies, Images and Flash status
	$bbcode_status	= ($config['allow_bbcode'] && $auth->acl_get('f_bbcode', $forum_id)) ? true : false;
	$smilies_status	= ($bbcode_status && $config['allow_smilies'] && $auth->acl_get('f_smilies', $forum_id)) ? true : false;
	$img_status		= ($bbcode_status && $auth->acl_get('f_img', $forum_id)) ? true : false;
	$url_status		= ($config['allow_post_links']) ? true : false;
	$flash_status	= ($bbcode_status && $auth->acl_get('f_flash', $forum_id) && $config['allow_post_flash']) ? true : false;
	$quote_status	= ($auth->acl_get('f_reply', $forum_id)) ? true : false;
// MSSTI Addon - End

	// Assign template variables
	$template->assign_vars(array(
		'QR_SUBJECT'			=> $subject,

		'S_QR_HIDDEN_FIELDS'	=> build_hidden_fields($s_hidden_fields),
		'S_QR_POST_ACTION'		=> $s_action,

		'S_QR_ENABLED'			=> $qr_config['enabled'], // this is true anyway :P
		'S_QR_SUBJECT'			=> $qr_config['display_subject'],
		'S_QR_HIDE_BOX'			=> $qr_config['hide_box'],
		'S_QR_RESIZE'			=> $qr_config['resize'],
// MSSTI Addon - Start
		'S_BBCODE_IMG'			=> $img_status,
		'S_LINKS_ALLOWED'		=> $url_status,
		'S_BBCODE_FLASH'		=> $flash_status,
		'S_BBCODE_QUOTE'		=> $quote_status,
// MSSTI Addon - End
	));
	
// Evil Quick Reply Addon: BBcodes and smilies - Start
	if ($qr_config['smilies'] || $qr_config['bbcodes'])
	{
		$user->add_lang('posting');
		
		if ($qr_config['smilies'])
		{
			include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
			
			generate_smilies('inline', $forum_id);
			$template->assign_var('S_SMILIES_ALLOWED', true);
		}
		
		if ($qr_config['bbcodes'])
		{
			$template->assign_var('S_BBCODE_ALLOWED', true);
		}
// MSSTI Addon - Start
		display_custom_bbcodes();
// MSSTI Addon - End
	}
// Evil Quick Reply Addon: BBcodes and smilies - End

}

?>
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

it should but it shouldn't....
yes i purge the cache
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Evil Quick Reply

Post by leviatan21 »

rfforum wrote:it should but it shouldn't....
yes i purge the cache
Also need to edit and add someting in the template file ;)
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

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" id="postform">
		<table class="tablebg" width="100%" cellspacing="1">
		<tr>
			<th colspan="2">{L_QUICK_REPLY}</th>
		</tr>
		<!-- IF S_QR_SUBJECT -->
	        <tr>
         <td class="row1" valign="top" width="22%">
         <!-- 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="center">
                  <!-- BEGIN smiley -->
                     <a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
                  <!-- END smiley -->
                  </td>
               </tr>
               <!-- IF S_SHOW_SMILEY_LINK -->
               <tr>
                  <td align="center"><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a></td>
               </tr>
            <!-- ENDIF -->
            </table>
         <!-- ENDIF -->
         </td>
         <td class="row2" width="78%">
            <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 valign="top" style="width: 100%;"><textarea name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width: 98%;">{MESSAGE}</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>
		</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>

There template file
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Evil Quick Reply

Post by leviatan21 »

rfforum wrote:There template file
AHHH is a subsilver2 based off style.. try my fix : Subsilver2 fix by mssti
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

leviatan21 wrote:
rfforum wrote:There template file
AHHH is a subsilver2 based off style.. try my fix : Subsilver2 fix by mssti

I already had that in the template....
Still no work.
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: Evil Quick Reply

Post by leviatan21 »

rfforum wrote:
leviatan21 wrote:
rfforum wrote:There template file
AHHH is a subsilver2 based off style.. try my fix : Subsilver2 fix by mssti

I already had that in the template....
Still no work.
because you edit wrong the file, instead replace the textarea for the post you edit the imput for the subject,

Try this :

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">
<!-- Subsilver2 fix by mssti - Start -->
	<form action="{S_QR_POST_ACTION}" method="post" id="postform">
<!-- Subsilver2 fix by mssti - End -->
		<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 -->
<!-- Subsilver2 fix by mssti - Start -->
		<tr>
			<td class="row1" valign="top" width="22%">
			<!-- 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="center">
						<!-- BEGIN smiley -->
							<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
						<!-- END smiley -->
						</td>
					</tr>
					<!-- IF S_SHOW_SMILEY_LINK -->
					<tr>
						<td align="center"><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a></td>
					</tr>
				<!-- ENDIF -->
				</table>
			<!-- ENDIF -->
			</td>
			<td class="row2" width="78%">
				<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 valign="top" style="width: 100%;"><textarea name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width: 98%;">{MESSAGE}</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>
<!-- Subsilver2 fix by mssti - End -->
		<!-- 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>
After replace your file, refresh the template and clear the cache 8-)
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
User avatar
rfforum
Registered User
Posts: 136
Joined: Tue Nov 18, 2008 10:00 am

Re: Evil Quick Reply

Post by rfforum »

thanks heaps mate it worked
Image
Click the PIC ^^^^ to check out my site.
you get a great site if you click on the link
http://tectonicz.forumotion.net
User avatar
modtang
Registered User
Posts: 16
Joined: Wed Apr 30, 2003 8:37 pm

Re: Evil Quick Reply

Post by modtang »

Thanks a bunch for this mod. I've installed it on the forum at youami.com.au and it works like a charm. Made the edits to the non-default skin I've installed there and centered the quick reply box at the bottom too. Thanks again. :D
User avatar
ett
Registered User
Posts: 61
Joined: Mon Jul 19, 2004 9:14 am
Location: Oslo, Norway
Contact:

Re: Evil Quick Reply

Post by ett »

Hello

I've successfully installed Evil Qucik Reply before in another theme in my forum, so all files needed are uploaded allready. My only problem now is that the quick-reply button is just plain text. I've read the instructions on prosilver and added all the neccacary lines in the theme files.

What is the most common mistake done when the image don't display? I've refreshed my theme and followed instructions several times. The button is also uploaded to my native languages image-folder.

Thanks for all answers. :)

Edit: I looked through my old style and noticed I'd placed the Quick-reply code below div.topic-actions. That was why my image diden't apear because the Css therefor couldn't make any impact. You can never read instructions too carefully. :)
Idyll
Locked

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