[BETA] Registration Agreement Terms Editor 0.0.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Name: Khoa Nguyen

[BETA] Registration Agreement Terms Editor 0.0.1

Post by nedka »

Screenshots: Image

Download: http://phpbb2.wonasti.com/Registration_ ... _0.0.1.zip

Code: Select all

##############################################################
## MOD Title: Registration Agreement Terms Editor
## MOD Author: nedka < [email protected] > (Nguyen Dang Khoa) www.thuvienhoahoc.info
## MOD Description: This tool will help edit registration agreement terms of your forum easily only with write and save 
## actions in ACP.
## MOD Version: 0.0.1
##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit: includes/constants.php
#			includes/usercp_register.php
#			language/lang_english/lang_main.php
#			language/lang_english/lang_admin.php
## Included Files: admin/admin_agreement.php
##			 templates/subSilver/admin/admin_agreement.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Tested with phpBB 2.0.18
## Homepage of this MOD: http://www.thuvienhoahoc.info/phpbb_mods/pafiledb.php
##############################################################
## MOD History:
##
##   2005-12-23 - Version 0.0.1
##      - First version of this MOD
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
Last edited by nedka on Sun Nov 12, 2006 12:23 pm, edited 1 time in total.
User avatar
DeViAnThans3
Registered User
Posts: 877
Joined: Sat Oct 08, 2005 10:39 pm
Location: Belgium

Post by DeViAnThans3 »

hey! fantastic mod! really really usefull, i'ld use it once it is released anyway :)
is it maybe possible to make BBCode enabled too? :)
I only provide support via the appropriate topics! Please no PM or mails! :)
My MODs :: [BETA] Facebook Connect
Swizec
Former Team Member
Posts: 1701
Joined: Mon Mar 10, 2003 9:42 pm
Location: Slovenia
Contact:

Post by Swizec »

Great idea, but yeah, BBCode ftw ^^
dannyscats
Registered User
Posts: 76
Joined: Mon Dec 13, 2004 6:18 pm

Post by dannyscats »

Hey there, awesome mod! Can't wait to see it released :D
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3542
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer »

Nice mod. You need to save the install file as PLAIN TEXT. Currently it doesn't show up correctly in a plain text editor. Open it in Wordpad and copy and pasted it to notepad and that should fixed it. Also in the copy field remove the part about root from the second part as it is not needed and will mess up when someone installs via Easymod.
William Jacoby - Community Team
Knowledge Base | phpBB Board Rules | Search Customisation Database
Please don't contact me via PM or email for phpBB support .
MistaObvious
Registered User
Posts: 8
Joined: Sat Mar 25, 2006 4:33 pm

Post by MistaObvious »

This is exactly what I'm looking for, and yea, BBCode would be awesome.

If I could make just one suggestion after a quick look:

Instead of:

Code: Select all

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

#
#-----[ FIND ]------------------------------------------
#
$lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';

#
#-----[ REPLACE WITH ]------------------------------------------
# 
// $lang['Reg_agreement'] Removed by Registration Agreement Terms Editor
You might want to keep the whole thing, but commented out with the reason before and after in comments, like so:

Code: Select all

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

#
#-----[ FIND ]------------------------------------------
#
$lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';

#
#-----[ REPLACE WITH ]------------------------------------------
# 
// Removed by Registration Agreement Terms Editor Mod
// $lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';
// End Registration Agreement Terms Editor Mod
Any ETA on when this will be submitted for validation?
tempered007
Registered User
Posts: 218
Joined: Sun Jun 27, 2004 3:21 am

Post by tempered007 »

This is GREAT! GREAT!! Why such a long time comming? Thank you for this. Whew!
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Great MOD, if it goes final, i'll install it. Does it have language support? If it doesn't, than add it! :D
MistaObvious
Registered User
Posts: 8
Joined: Sat Mar 25, 2006 4:33 pm

Post by MistaObvious »

I made a couple changes to the install text (and renamed it to match the directory) to make it compatible with EasyMod and then tested it on my forum. Seems to work without any problems.

Here's the section of text I've changed:

Code: Select all

##############################################################
## MOD Title: Registration Agreement Terms Editor
## MOD Author: nedka < [email protected] > (Nguyen Dang Khoa) www.thuvienhoahoc.info
## MOD Description: This tool will help edit registration agreement terms of your forum easily only with write and save 
## actions in ACP.
## MOD Version: 0.0.1
##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit:
##			includes/constants.php
##			includes/usercp_register.php
##			language/lang_english/lang_main.php
##			language/lang_english/lang_admin.php
## Included Files: 
##			admin/admin_agreement.php
##			templates/subSilver/admin/admin_agreement.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Tested with phpBB 2.0.18
## Homepage of this MOD: http://www.thuvienhoahoc.info/phpbb_mods/pafiledb.php
##############################################################
## MOD History:
##
##   2005-12-23 - Version 0.0.1
##      - First version of this MOD
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
#
copy admin/admin_agreement.php to admin/admin_agreement.php
copy templates/subSilver/admin/admin_agreement.tpl to templates/subSilver/admin/admin_agreement.tpl
and

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
		'AGREEMENT' => $lang['Reg_agreement'],

#
#-----[ REPLACE WITH ]------------------------------------------
# 
// [BEGIN] Registration Agreement Terms Editor
		'AGREEMENT' => stripslashes($agreement['agreement_text']),
//		'AGREEMENT' => $lang['Reg_agreement'],
// [END] Registration Agreement Terms Editor

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

#
#-----[ FIND ]------------------------------------------
#
$lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';

#
#-----[ REPLACE WITH ]------------------------------------------
#
// Removed by Registration Agreement Terms Editor Mod
// $lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';
// End Registration Agreement Terms Editor Mod
isellbeachhomes
Registered User
Posts: 4
Joined: Tue May 02, 2006 12:28 am

Post by isellbeachhomes »

I am sorta new at this and don't really understand how to install this. I guess i really don't understand this part:

-----[ SQL ]------------------------------------------
#
# Remember change table prefix ...
#
CREATE TABLE phpbb_agreement (
id int(8) not null,
agreement_text text);

INSERT INTO phpbb_agreement (id,agreement_text) VALUES
('1','While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.');

i take it i need to log into my SQL account and change a file?

Thanks for your help.
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Name: Khoa Nguyen

Post by nedka »

User avatar
Kalipo
Registered User
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Post by Kalipo »

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';

#
#-----[ REPLACE WITH ]------------------------------------------
#
// Removed by Registration Agreement Terms Editor Mod
// $lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';
// End Registration Agreement Terms Editor Mod
:evil: :evil:

How about...

Code: Select all

#
#-----[ FIND ]------------------------------------------
# Line is actually longer

$lang['Reg_agreement'] = '

#
#-----[ IN-LINE FIND ]------------------------------------------
#

$lang

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
# End result should look like this: //$lang['Reg_agreement'] = '

//
MistaObvious
Registered User
Posts: 8
Joined: Sat Mar 25, 2006 4:33 pm

Post by MistaObvious »

Kalipo wrote:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';

#
#-----[ REPLACE WITH ]------------------------------------------
#
// Removed by Registration Agreement Terms Editor Mod
// $lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';
// End Registration Agreement Terms Editor Mod
:evil: :evil:

How about...

Code: Select all

#
#-----[ FIND ]------------------------------------------
# Line is actually longer

$lang['Reg_agreement'] = '

#
#-----[ IN-LINE FIND ]------------------------------------------
#

$lang

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
# End result should look like this: //$lang['Reg_agreement'] = '

//


The reason I suggested that was because of uninstall. If at some point you decide to uninstall this, it'd be easier if the original code were still there somewhere. Since this is commented out, it won't effect server load or processing time.
User avatar
Kalipo
Registered User
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Post by Kalipo »

If at some point you decide to uninstall this, it'd be easier if the original code were still there somewhere.


Perhaps you should read the directions in my example again.

You don't need to list the entire line in MOD instructions. As a matter of fact, IN-LINE actions are encouraged instead of replacements like the one you're suggesting.
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Yeah, makes it easier for other Languages
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
Post Reply

Return to “[2.0.x] MODs in Development”