Difference between revisions of "New Account Warning"

From TNG_Wiki
Jump to: navigation, search
(mod v4c)
(Sites using this mod)
Line 111: Line 111:
| 11.1.1
| 11.1.1
| English
| English
| [http://genealogy.oceanwharf.com Hooley Family Links]
| [[User: lastejas|Rick Hooley]]
| Public/Private
| [[User: lastejas|See Here]]
| [[User: lastejas|See Here]]
| EN

Latest revision as of 14:46, 8 December 2018

New Account Warning
Summary Adds a warning about the lack of encryption in TNG's login process to the New Account Registration page.
Mod Updated 8 Nov 2018
Download link v12.0.0.4c
TNG 12.0

See the Revision History for older versions.
Download stats
Author(s) Robin Richmond
Homepage Robin Richmond's Genealogy Database
Mod Support My Mod Support form or TNG Community Forums
Contact Developer My Mod Support form
Latest Mod v12.0.0.4c
Min TNG V 12.0
Max TNG V at least 12.0.2
Files modified
newacctform.php, English cust_text.php
Related Mods

Purpose of the Mod

To tell users about the lack of password encryption on TNG sites that do not support (or do not require) https.

Compatibility With Other Mods

Not compatible with New Account Form Mod.

Related Mods


This mod uses the standard installation process. It does not have a mod subfolder. [Show Installation Details]


  • A working TNG installation.
  • An installed current version of the Mod Manager.
  • You should backup files listed in the panel on the right.


  1. Remove and delete previous version of this mod.
  2. Backup the files updated by this mod. They are listed in the panel at the upper right.
  3. Download the .zip file, Extract its .cfg file to the mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.


  1. Try using the Mod Manager Remove capability
  2. Contact me through My Mod Support form.
[Hide Details]


Account Registration Form BEFORE
New account warning-before1.png
Account Registration Form AFTER:
New account warning-after.png

Custom Text

The following strings are defined in the English and English-UTF8 versions of cust_text.php

# This text is placed after the first password field
$text['newacctwarn'] = "Note that the registration and login pages on this site ARE NOT ENCRYPTED, ";
$text['newacctwarn'] .= "so don't use a password that you use ANYWHERE ELSE - and don't just add a suffix to your standard password. ";
$text['newacctwarn'] .= "Use something completely different.";

If you want to modify this message, you must redefine it at the bottom of your cust_text.php file. Do not edit these lines, for that will cause a Mod Manager "Bad Target" error.

Be aware that most mods install their language strings immediately above the ?> that ends cust_text.php (and most PHP) files. As a result, language strings installed by mods after you define your own language strings will push your strings up in the file and make then hard to find.

(There is some good news: New mod programming guidelines introduced with TNGv12 address this problem, and reserve the space just above the closing ?> in cust_text.php files for hard-coded language strings (i.e. string definitions entered directly into cust_text.php files by TNG administrators.) Unfortunately, that scheme will not work well until all mods that target ?> have been updated to use the new guidelines.)

Revision History

Mod Version TNG Version Date Note 12.0+ 15 May 2018 No functional changes; made compatible with TNGv12. 9.2.2+ 21 Feb 2016 Moved the functionality that deals with additional required fields and form validation to the New Account Validation mod. Now uses Show Mod Names (but does not depend on it). 9.2.2 - 10.1.2 05 Sep 2015 Cleaned up the code to be more compatible with other mods and more like the original code in its form layout. The mod parameter now controls whether the Comments field is required (as it does with Phone, City, and State). Handles empty message strings more cleanly. 9.2.2 - 10.0.2 10 May 2014 No functional changes; the cust_text strings are added just at the end of the file rather than at the beginning. 9.2.2 - 10.0.2 30 Apr 2014 Initial Release

Sites using this mod

If you download and install this mod, please add your site to the table below.

URL User Note Mod-Version TNG-Version User-language
Robin Richmond's Genealogy Database Robin Richmond Mod developer 11.1.1 English
Hooley Family Links Rick Hooley Public/Private See Here See Here EN