############################################################## 
## MOD Title: Loewen Enterprise Paypal IPN Subscription with Group Mod - applied_x
## MOD Author: sandodo < zouxiong@loewen.com.sg > (Xiong Zou) http://bbs.loewen.com.sg & http://forum.loewen.com.sg
## MOD Description: 
##	Register user, With different timeframe, with Manual Payment Method and Recurring Payment Method.
##	PayPal IPN Integrated. Allow to set trial period, VIP user. 
##	Common member can not read, post or search content in restricted forums. 
##	User can subscribe to multi groups.
##	Admin can trace IPN Logs from ACP
##	Admin can manually set user subscriptions' group and expiration date
##	Admin can set extra days to give to user when they register to a payment group for the first time.
##
##	Note: Your PayPal account must be Premier/Business Account to be able to receive Recurring Payment. 
##	If you donot have one, please follow this link to register: https://www.paypal.com/row/mrb/pal=RARP2763AYFN4 , 
##	it is free and it makes us your referal, so you are helping us by doing it. Thanks. 
##
##	Always check the newest version or patch from http://bbs.loewen.com.sg
##
## MOD Version: 1.0.3
## 
## Installation Level: Intermediate
## Installation Time: 30 minutes.
## Files To Edit: 
##              templates/applied_x/overall_header.tpl
##				templates/applied_x/groupcp_info_body.tpl	
##              templates/applied_x/admin/board_config_body.tpl	
##				templates/applied_x/admin/group_edit_body.tpl	
##              
## Included Files: 
##              templates/applied_x/lwacctrecords_body.tpl
##              templates/applied_x/lwtopup_body.tpl
##              
##				templates/applied_x/admin/subscription_config_body.tpl
##				templates/applied_x/admin/admin_sub_settings_body.tpl
##				templates/applied_x/admin/admin_lwacctrecords_body.tpl
##              
############################################################## 
## For Security Purposes, Please Check: http://bbs.loewen.com.sg/ or http://forum.loewen.com.sg 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, Loewen Enterprise will not offer support for MOD's not offered 
## in the MOD-Database, located at: http://bbs.loewen.com.sg/ or http://forum.loewen.com.sg or http://www.phpbb.com
############################################################## 
## Author Notes: 
## 
## Terms of Use 
## 
## All of my MODifications are to use and edit/change for phpBB End Users 
## 
## Plese DO NOT remove any copyright/licence declaration when using the MODification 
## 
## I will remain as the sole developer for all my MODifications unless stated otherwise
## 
## 
## Distribution Terms 
## 
## All of my MODifications are prohibited to distribute to others without the permission from me.
## 
## Plese DO NOT remove any copyright/licence declaration when using the MODification 
## 
## I will remain as the sole developer for all my MODifications unless stated otherwise
## 
## Re-Distribution Terms 
## 
## If you are distributing WHOLE or PART of my MOD in your MOD Projects or Pre-modded Projects or any other means, you must: 
## 
## Get the formal authorization from me first.
## 
## Plese DO NOT remove any copyright/licence declaration when using the MODification 
## 
## I will remain as the sole developer for all my MODification unless stated otherwise. Do NOT declare youself as my co-developer 
## 
## Re-Distribution Terms DOES NOT apply to MOD authors that developing Add-Ons to my MOD. You will be the Add-Ons' Developer/Author
##  
############################################################## 
## MOD History: 
## 
##   2004-10-29 - Version 1.0.3 
##      - upgrade version, allow multi-subscription; add more admin Control
##   2004-09-20 - Version 1.0.2 
##      - upgrade version, init version of 1.0.1 is available in my site: http://bbs.loewen.com.sg
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
#
#-----[ COPY ]--------------------------------------------
#
copy templates/subSilver/lwacctrecords_body.tpl to templates/applied_x/lwacctrecords_body.tpl 
copy templates/subSilver/lwtopup_body.tpl to templates/applied_x/lwtopup_body.tpl 
copy templates/subSilver/admin/subscription_config_body.tpl to templates/applied_x/admin/subscription_config_body.tpl
copy templates/subSilver/admin/admin_lwacctrecords_body.tpl to templates/applied_x/admin/admin_lwacctrecords_body.tpl
copy templates/subSilver/admin/admin_sub_settings_body.tpl to templates/applied_x/admin/admin_sub_settings_body.tpl
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- mod : Loewen Enterprise - PAYPAL IPN REG / SUBSCRIPTION - GROUP -->
#
#-----[ FIND ]------------------------------------------------
#
{U_RANKS}
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
</a>
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
<br />
#
#-----[ AFTER, ADD ]------------------------------------------
#
							<a href="{U_LW_PAYMENTS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LW_PAYMENTS}" hspace="3" />{L_LW_PAYMENTS}</a><br />
							<a href="{U_LW_TRANSACTIONS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_LW_TRANSACTIONS}" hspace="3" />{L_LW_TRANSACTIONS}</a><br /> 
							<!-- BEGIN switch_lw_user_logged_in -->
							{L_LW_EXPIRE_REMINDER}
							<!-- END switch_lw_user_logged_in -->
#
#-----[ OPEN ]------------------------------------------------
#
templates/applied_x/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<tr>
{L_RESET}
#
#-----[ BEFORE, ADD ]------------------------------------------
#
	<tr>
	  <th class="thHead" colspan="2">{L_LW_PAYPAL_SETTINGS}</th>
	</tr>
	<tr>
		<td class="row1">{L_LW_OUR_PAYPAL_ACCT}</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="255" name="paypal_p_acct" value="{LW_PAYPAL_P_ACCT}" /></td>
	</tr>
	<tr>
		<td class="row1">{L_LW_PAYPAL_CURRENCY_CODE}</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="paypal_currency_code" value="{LW_PAYPAL_CURRENCY_CODE}" /></td>
	</tr>
	<tr>
		<td class="row1">{L_LW_TRIAL_PERIOD}</td>
		<td class="row2"><input class="post" type="text" size="25" maxlength="100" name="lw_trial_period" value="{LW_TRIAL_PERIOD}" /></td>
	</tr>
#
#-----[ OPEN ]------------------------------------------------
#
templates/applied_x/admin/group_edit_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full lines maybe longer
#
{S_GROUP_OPEN_TYPE}
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
{L_GROUP_HIDDEN}
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
&nbsp;<input type="radio" name="group_type" value="{S_GROUP_PAYMENT_TYPE}" {S_GROUP_PAYMENT_CHECKED} />	{L_GROUP_PAYMENT} &nbsp;
#
#-----[ FIND ]------------------------------------------------
#
	<!-- BEGIN group_edit -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
	<tr> 
	  <td class="row1" width="38%"><span class="gen">{L_GROUP_PAYMENTS_LW}:</span></td>
	  <td class="row2" width="62%"><input class="post" type="text" class="post" name="group_amount" maxlength="50" size="20" value="{GROUP_AMOUNT_LW}" /> (This amount will be billed now, or as soon as any trial periods are over) 
	  	<br> Continue to bill the subscriber for this amount on a recurring basis? {LW_SUB_RECUR}
	  	<br> Length of each billing cycle {LW_BILLING_CIRCLE_PERIOD} {LW_BILLING_PERIOD_BASIS}
					
		<br> Would you like to stop the recurring payments after a certain number? {LW_STOP_RECURRING} 
		<br> If yes, how many? {LW_STOP_RECURRING_NUM}
		<br> Would you like to reattempt if payment fails for the subscription? {LW_SUBCRIBE_REATTEMPT}
	  </td>
	</tr>
	<tr> 
	  <td class="row1" width="38%"><span class="gen">Trial Period #1:
(Skip this section if you do not want to offer trial periods with your subscriptions)</span></td>
	  <td class="row2" width="62%">Bill the subscriber now for <input class="post" type="text" class="post" name="group_first_trial_fee" maxlength="50" size="20" value="{GROUP_TRIAL_PERIOD_ONE_FEE_LW}" /> (Enter 0 to create a free trial period)
	  	<br> This trial period should last {LW_FIRST_TRIAL_PERIOD} {LW_FIRST_TRIAL_PERIOD_BASIS}
	  	
	  </td>
	</tr>
	<tr> 
	  <td class="row1" width="38%"><span class="gen">Trial Period #2:
(Skip this section if you are only offering one trial period.)</span></td>
	  <td class="row2" width="62%">Bill the subscriber now for <input class="post" type="text" class="post" name="group_second_trial_fee" maxlength="50" size="20" value="{GROUP_TRIAL_PERIOD_TWO_FEE_LW}" /> 
	  	<br> This trial period should last {LW_SECOND_TRIAL_PERIOD} {LW_SECOND_TRIAL_PERIOD_BASIS}
	  	
	  </td>
	</tr>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/groupcp_info_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
		<input class="mainoption" type="submit" name="unsub" value="{L_UNSUBSCRIBE_GROUP}" />
#
#-----[ REPLACE WITH ]------------------------------------------
#
		{L_UNSUBSCRIBE_GROUP}
#
#-----[ FIND ]------------------------------------------------
#
		<input class="mainoption" type="submit"
#
#-----[ REPLACE WITH ]------------------------------------------
#
		{L_JOIN_GROUP}
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM
