#################################################################
## Mod Title: Advanced Quick Reply Mod
## Mod Author: RustyDragon <dev@RustyDragon.com>  http://www.phpbbhacks.com
## Mod Version: 1.1.1
## Mod Description: This will allow users to use quick reply form 
##		which is placed below every topic.
##		It will only display when user has the Reply access
##		User have a option to quote the last message.
##      A list of 24 smilies is shown below input area.
##		Users can paste names of users just by clicking on it.
##      Also they can select any text on a page and quote it to the input area.
##
##      Last 3 options were absent in Quick Reply Mod with Quote on which
##      this mod is based.
##		Additional feature - uses of template for quick reply form.
##		So you can change a look of the mod to whatever you want.
##
## Installation Level: Very Easy
## Installation Time: 4 Minutes
##
## Files To Edit: 3
##	viewtopic.php,
##	language/lang_english/lang_main.php
##	templates/subSilver/viewtopic_body.tpl
##
## Included Files: quick_reply.php, quick_reply.tpl
#################################################################
##
## Author Note:
##  If you want to have different number of smilies displayed find a line
##  $max_smilies = 30;
##  in a file quick_reply.php and replace 30 with whatever you want. Setting this variable to zero 
##  will disable  smilies row.
##
##  This MOD is based on Quick Reply Mod with Quote from Smartor <smartor_xp@hotmail.com>
##  
##  This mod will increase the size of your topic page by approx 7kb 
##  and execute one additional (but simple) SQL query for every page load.
##
##	The Quick-Quote Feature was an idea from Nexialys (www.bebeabord.org)
##
##	You should change all your templates and language pack
##
##  Advanced Quick Reply Mod is Copyright  RustyDragon, 2002
##
##	Quick Reply Mod with Quote is Copyright  Smartor, 2002
##   
##	(Any changes to this MOD must retain these Copyright Notices)
##
##  Next version will include:
##  - Sorting smilies by usage 
##  - Configurable number of smilies to be shown
##
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ 
############################################################## 
##
## Revision History:
##
## v1.1.0
##  - Feature: Added link to all smilies
##  - Feature: Animated gifs are animating even after you clicked on them
##	- Bug: fixed bug with doubling post text
##	- Bug: fixed bug with single quote (') in a quote text
## v1.0.0
##	- Initial Release
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################


#
#-----[ COPY ]------------------------------------------
#
copy quick_reply.php to /
copy quick_reply.tpl to templates/subSilver

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

#
#-----[ BEFORE, ADD ]------------------------------------
#
include($phpbb_root_path . 'quick_reply.'.$phpEx);

#
#-----[ OPEN ]------------------------------------------
#
lang/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]------------------------------------
#
// Advanced Quick Reply Mod
$lang['Quick_Reply'] = 'Quick Reply';
$lang['Quick_quote'] = 'Quote the last message';
$lang['QuoteSelelected'] = 'Quote selected';
$lang['QuoteSelelectedEmpty'] = 'Select a text anywhere on a page and try again';
$lang['Quick_Reply_smilies'] = 'all';
$lang['Quick_add_smilies'] = 'Smilies'; 

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_NAME}

#
#-----[ REPLACE WITH ]------------------------------------
#
<a href="javascript:emoticon('[b]{postrow.POSTER_NAME}[/b], ')">{postrow.POSTER_NAME}</a>

#
#-----[ FIND ]------------------------------------------
#
<!-- END postrow -->

#
#-----[ AFTER, ADD ]------------------------------------
#
	<tr align="center"> 
		<td class="row1" colspan="2" >
		{QUICKREPLY_OUTPUT}
		</td>
	</tr>


#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
#EoM