[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.

[BETA] Registration Agreement Terms Editor 0.0.1

Postby nedka » Thu Dec 22, 2005 5:45 pm

Screenshots: Image

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

Code: Select all
##############################################################
## MOD Title: Registration Agreement Terms Editor
## MOD Author: nedka < admin@thuvienhoahoc.info > (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.
VinaBB.com - THE HOLY LAND OF PHPBB AT VIETNAM
NOTE: You can download all MODs & Styles for phpBB3 from my website :)
User avatar
nedka
Registered User
 
Posts: 112
Joined: Tue Jun 28, 2005 8:55 am
Location: Vietnam - Ho Chi Minh City
Name: Khoa Nguyen

Postby DeViAnThans3 » Thu Dec 22, 2005 6:49 pm

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
User avatar
DeViAnThans3
Registered User
 
Posts: 877
Joined: Sat Oct 08, 2005 10:39 pm
Location: Belgium

Postby Swizec » Thu Dec 22, 2005 7:00 pm

Great idea, but yeah, BBCode ftw ^^
User avatar
Swizec
Former Team Member
 
Posts: 1701
Joined: Mon Mar 10, 2003 9:42 pm
Location: Slovenia

Postby dannyscats » Thu Dec 22, 2005 7:11 pm

Hey there, awesome mod! Can't wait to see it released :D
dannyscats
Registered User
 
Posts: 76
Joined: Mon Dec 13, 2004 6:18 pm

Postby bonelifer » Fri Dec 23, 2005 3:55 am

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.
Knowledge Base | phpBB Board Rules | Search All Mods

Image

Please don't contact me via PM or email for support .
User avatar
bonelifer
Moderator Team Member
Moderator Team Member
 
Posts: 2646
Joined: Wed Oct 27, 2004 11:35 pm
Name: William

Postby MistaObvious » Wed May 03, 2006 4:48 am

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?
MistaObvious
Registered User
 
Posts: 8
Joined: Sat Mar 25, 2006 4:33 pm

Postby tempered007 » Wed May 03, 2006 5:15 am

This is GREAT! GREAT!! Why such a long time comming? Thank you for this. Whew!
tempered007
Registered User
 
Posts: 218
Joined: Sun Jun 27, 2004 3:21 am

Postby igorw » Wed May 03, 2006 12:22 pm

Great MOD, if it goes final, i'll install it. Does it have language support? If it doesn't, than add it! :D
User avatar
igorw
Former Team Member
 
Posts: 8025
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Postby MistaObvious » Wed May 03, 2006 1:03 pm

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 < admin@thuvienhoahoc.info > (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
MistaObvious
Registered User
 
Posts: 8
Joined: Sat Mar 25, 2006 4:33 pm

Postby isellbeachhomes » Thu May 04, 2006 3:44 am

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.
isellbeachhomes
Registered User
 
Posts: 4
Joined: Tue May 02, 2006 12:28 am

Postby nedka » Thu May 04, 2006 3:59 am

VinaBB.com - THE HOLY LAND OF PHPBB AT VIETNAM
NOTE: You can download all MODs & Styles for phpBB3 from my website :)
User avatar
nedka
Registered User
 
Posts: 112
Joined: Tue Jun 28, 2005 8:55 am
Location: Vietnam - Ho Chi Minh City
Name: Khoa Nguyen

Postby Kalipo » Wed May 10, 2006 8:35 pm

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'] = '

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

Postby MistaObvious » Wed May 10, 2006 11:35 pm

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.
MistaObvious
Registered User
 
Posts: 8
Joined: Sat Mar 25, 2006 4:33 pm

Postby Kalipo » Wed May 10, 2006 11:55 pm

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
Kalipo
Registered User
 
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Postby igorw » Thu May 11, 2006 8:45 pm

Yeah, makes it easier for other Languages
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
igorw
Former Team Member
 
Posts: 8025
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Next

Return to [2.0.x] MODs in Development

Who is online

Users browsing this forum: No registered users and 0 guests