Firefox PHP

Terms of Service Module

Posted by Brian Moon 
All files from this thread

File Name File Size   Posted by Date  
terms_of_service-1.0.tar.gz 3.9 KB open | download Brian Moon 12/15/2005 Read message
terms_of_service-2.2.5.zip 15 KB open | download Oliver Riesen-Mallmann 12/01/2006 Read message
query_result.gif 30.6 KB open | download cdclose 10/17/2006 Read message
Terms of Service Module
December 15, 2005 02:12AM
This module adds a terms of service agreement to the register page. Its also a good example of how to add required registration page items. The text included in this module for the actual TOS is not guaranteed to be legal. You should replace it with text of your own after consulting a lawyer.

To have the TOS show up on the register page, you will need to put {TOS} in register.tpl. I recommend you put it just after the close table tag and just before the submit button. Users will be given a meta variable of tos_accept if they accept the TOS.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Attachments:
open | download - terms_of_service-1.0.tar.gz (3.9 KB)
Re: Terms of Service Module
January 20, 2006 02:10PM
terms of service text doesn't scroll in IE6 properly. It does fine with Foxfire. Is there a fix for this? Thanks.
Re: Terms of Service Module
January 20, 2006 02:17PM
nevermind. I simply changed the "disabled" to "readonly" and it works great now. Thanks for the nice mod Brian.
Re: Terms of Service Module
March 20, 2006 03:07PM
Hi,

I was asked by the board of our club to ask for some changes regarding the "terms of Service" module:
www.langzeittest.de is a forum with already 4300 registered members. Until now all registered Users were not forced to accept terms of service. How can we make it sure, that not only the new users, but also the old members accept the new terms of service?
It would be probably also helpful, if all registered Users have to accept NEW terms of Service again (e.g.if there are general changes to accept).

We allow also (not registered) guests to write articles; they should accept the terms of Service with EVERY article!

And, additionally, it could be very helpful if you always could have a view into the Terms of Service.

Therefore, we suggest the following changes:

1. In the form for new articles, place another checkbox: "I accept the terms of Service" (for guests). Then a test, if the is checkbox is checked, if not: error warning!

2. A new website (e.g. terms_of_service.php), that shows the terms of Service in a specified language (language from the module /mods/terms_ofService/lang/)

3. A new "user_custom_field" with date, when the "terms of Service" were accepted by the users. Appendix of the registration, so that it is possible to enter the date.

4. Addition of Login, so that a registered User has to accept the Terms of Service, if there is NO entry of acceptance date in the "user_custom_field". Then Entry of date!

5. An option in the settings of the module, so that the field "user_custom_field" can be erased for all users (so that they have to accept NEW terms of service at the next login).

So far our wishes in the hope, that the developers of the "terms of Service" module find our ideas so helpful for the phorum community, so that they notice them and add these changes to the module.

What do you think? Can you make it...?

Thanks a lot so far...

Olaf
Re: Terms of Service Module
March 20, 2006 03:31PM
I do not use terms of service myself, but here some additional ideas which might be useful:

An alternative for deleting all accept dates for the users: If you already store when the user has accepted the terms of service, you can also store a date along with the terms themselves. Then you can check if the accept date is before or after the date of the terms. Is it before this date, then the user has to accept the new terms of service.

For unregistered users, you could also set a session cookie to remember that they have accepted the terms, to prevent irritation in the posting process.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Terms of Service Module
March 21, 2006 12:11PM
This was done as a funded module. If you are interested in funding further development of it, you can contact me off the message board.

Of course, you could always submit a patch or a new version with these features.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Terms of Service Module
March 22, 2006 06:58AM
Hi Brian,

langzeittest.de is a non-profit consumer protection organisation with a very small budget. So it seems that we have to do it ourself.

Thanks
Oliver - Webmaster of langzeittest.de


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Terms of Service Module
April 11, 2006 11:47AM
Hi Brian,

Quote
brianlmoon
Of course, you could always submit a patch or a new version with these features.

Okay, here is a new version with the following additional functions:

1. Shows a Terms of Service agreement on the posting form for guests.

2. Offers a separate page with the Terms of Service via a new link in the navigation bar.

My other wishes I'll solve in the next version ;-)

Oliver

[Attached file removed because of new version 2.0. Oliver]


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.




Edited 1 time(s). Last edit at 08/30/2006 01:57AM by Oliver Riesen.
Terms of Service Module 2.2 (5.1 and 5.2 ready)
April 14, 2006 03:49PM
Terms of Service Module 2.2 (5.1 and 5.2 ready)

Adds a Terms of Service (TOS) agreement to the register and posting page and links to a separate page to display the Terms of Service.

Tested on version 5.1.17 and CVS (till revision 1468)

License:

Free to use, modify, or redistribute this code so long as I am given credit for the original development somewhere. This code comes with absolutely no warranty.

Installation:

1. Unpack the archive.

2. Move the directory "terms_of_service" to the directory "mods" within your Phorum installation. Don't change the directory name!

3. Move terms-of-service.php to your phorum-directory. Rename the file if you want to use a localized file name (in this case you have to change the file name also in the module settings).

4. Move the terms_of_service.tpl to your template-directory. You'll find a appropriate file for version 5.1 and 5.2 in /terms-of-service/templates/.

5. You will want to copy or edit lang/english.php in this module's directory and alter the TOS to be legal and appropriate for your site.

6. To have the TOS show up in the register form, just put {TOS} in register.tpl. I recommend just after the closing </table> tag and before the submit button.

7. To have the TOS agreement show up in the posting form, just put {TOS} in posting_buttons.tpl. I recommend just at the beginning of this file before the first line.

8. To show a link to the TOS on the index page, edit index_classic.tpl and index_new.tpl. Add the following line just behind the {INCLUDE "loginout_menu"}:

{IF URL->TOS}&bull;<a class="PhorumNavLink" href="{URL->TOS}">{LANG->TOS->Header}</a>{/IF}

9. Login as administrator in Phorum's administrative interface and go to the "Modules" section.

10. Enable the module "Terms of Service Module".

11. At the first time that this module is run (by visiting the forum), the module will automatically create a custom profiles field for storing the acceptance date of the TOS. You should be able to see the field in the admin interface under "Custom Profiles":

Field name: mod_tos
Field length: 8
Disable HTML: yes

Module settings:

1. Date of last change to the Terms of Service

Set the date of the last change to the Terms of Service. This date is used to force users to re-accept the Terms of Services after modifications. It's recommended to use a date in the future.

The default value is the date of enabling the module.

2. Default value for the accept-checkbox

Define the default value for the accept-checkbox on the posting-form. If you use "unchecked" the user have to mark the checkbox for each post.

The default value is "unchecked"

3. File name of the Terms of Service page

Change the file name if you want to use a localized name. Don't add the file extension ".php". Take care that you have to change also the file name in the file system!

The default value is "terms-of-service".

Language support:

This module supports multiple languages.

The following languages are included:

- English
- German (Sie)
- German (Du) male
- German (Du) female

If you want to translate the module to a new language, you'll have to do the following:

Copy lang/english.php to lang/yourlang.php (yourlang.php must have the same name as Phorum's main language file that you use). After this, translate the strings in lang/yourlang.php.

If you have created a translation for this module, please post a zip file containing lang/yourlang.php in the module thread at phorum.org, so the translation can be added to the module package.

Sanity Checks:

If you have problems with this module login as administrator in Phorum's administrative interface and go to the "System Sanity Checks" section. Check for warnings or errors for the Terms of Service Module.

Known issues:

Because of a bug in Phorum database installation (till 5.1.17) you can get an error messages similar to this:

You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near ''20061026')' at line 1:
insert into phorum_user_custom_fields (user_id,type,data) VALUES(2,,'20061026')

In this case:

1. Login as administrator in Phorum's administrative interface and go to the "Custom Profiles" section.

2. Delete mod_tos field

3. Add a new profile field:

Field Name: mod_tos
Field Length: 8
Disable HTML: yes

Changelog:

2005/12/15 version 1.0.0 by Brian Moon
- Terms of Service agreement for register page.

2006/04/11 version 1.1.0 by Oliver Riesen (oliver@riesen.org)
- Added TOS agreement for posting page for guests.
- Added display page for the TOS (with language support for file name of the page).

2006/04/13 version 2.0.0 by Oliver Riesen (oliver@riesen.org)
- Changed TOS agreement link on posting page.
- Added custom profile field to store the date of acceptance.
- Added date of last change of the TOS in the module settings.
- Added reforcing TOS agreement after modifications of the TOS.

2006/06/25 version 2.0.1 by Oliver Riesen (oliver@riesen.org)
- Changed TOS display on register page; thanks to Patricius.

2006/08/30 version 2.0.2 by Oliver Riesen (oliver@riesen.org)
- Changed how to determine the number of custom user profile fields in use; thanks to Maurice Makaay.
- Documentation extended.

2006/08/31 version 2.1.0 by Oliver Riesen (oliver@riesen.org)
- Prepare status of TOC so that other modules can use this information; thanks to freedman.
- Registered users can renew there agreement also on the terms-of-service page.

2006/08/31 version 2.1.1 by Oliver Riesen (oliver@riesen.org)
- Some small fixes.

2006/09/01 version 2.2.0 by Oliver Riesen (oliver@riesen.org)
- Added sanity checks. See "System Sanity Checks" in Phorum administration.
- Default settings are stored automatically on first usage of the module. So the admin don't have to go to the settings page.
- Module language strings now uses own sub-array.
- Correcting error: whenever someone posted a message their TOS accept date got updated to the current date; thanks to freedman.
- Correcting error: a TOS version date in the future forced a renew for each post; thanks to freedman.
- Including template for version 5.1 and future 5.2.

2006/09/26 version 2.2.1 by Oliver Riesen (oliver@riesen.org)
- Optimizing auto-installation of default settings.
- Bug fix: missing profile field when calling settings just after enabling the module; thanks to BBSNewbie.

2006/09/29 version 2.2.2 by Oliver Riesen (oliver@riesen.org)
- Small bug fix in sanity checks; thanks to BBSNewbie.

2006/10/02 version 2.2.3 by Oliver Riesen (oliver@riesen.org)
- Show TOS also on read page with posting form; thanks to Avdoshyn Andrej
(http://www.phorum.org/phorum5/profile.php?16,713).

2006/10/26 version 2.2.4 by Oliver Riesen (oliver@riesen.org)
- Bug fix in storing custom profile field.

2006/10/26 version 2.2.5 by Oliver Riesen (oliver@riesen.org)
- Revert bug fix from 2.2.4. It was a bug in the Phorum core, corrected in changeset 1456 and 1459.


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.




Edited 13 time(s). Last edit at 12/01/2006 09:11AM by Oliver Riesen.
Attachments:
open | download - terms_of_service-2.2.5.zip (15 KB)
Re: Terms of Service Module, version 2
April 16, 2006 12:30AM
Behold, the power of open source!

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Sorry, only registered users may post in this forum.

Click here to login