Email User Login

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Email User Login are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox


Caution


Email User Login.
Summary This mod will Email the Admin when a user logs in or if a Login fails.
Validation
Mod Updated 01 Nov 2022
Download link for
TNG 14.0
TNG 13.0

v12.3.0.1.zip
Download stats
Author(s) Linc Haymaker & MichelK
Homepage [Email User Login] (this page)
Mod Support TNG Community Forums
Contact Developer Contact us
Latest Mod 12.3.0.1
Min TNG V 12.3.0.0
Max TNG V nc
Files modified
processlogin.php
admin_edituser.php
admin_updateuser.php
Related Mods
Notes

Purpose of the mod

Version 0 : Sends an email to the administrator when a user or administrator logs in or if the login attempt fails.
Version 1 : Don't send if administrator logs in unless he/she is designated via the admin_edituser.php page (new checkbox). See snapshot

Developer

This mod was developed by Lincoln "Linc" Haymaker (deceased Aug 2022) and Michel Kirsch.

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary in the upper right corner of the page)
  • An installed current version of the Mod Manager.

TNG Modules Impacted

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

The following TNG Modules are modified, and should be backed up prior to installing this mod:

processlogin.php
admin_edituser.php
admin_updateuser.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/French-UTF8/cust_text.php
languages/French/cust_text.php
languages/Dutch-UTF8/cust_text.php
languages/Dutch/cust_text.php

File created by this Mod

in your 'extensions' path a text file containing the names of the admins to be "tracked" : Email_Admin_Login.txt
If this file is deleted, it will be re created as empty file and you'll lost your admins list.

Installation

  1. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  2. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and all its tables, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Functioning

To designate an administrator whose log in must be "followed", go to Admin >> Users >> Edit user and check the box 'Send me a mail if he/she logs in to the site'.

Languages

Originally intended for English, French and Dutch.
To add another language, translate this :

$admtext['sendhimmail'] = "Send me a mail if he/she logs in to the site";

Snapshot

The new checkbox


The new checkbox in admin_edituser.php

Sites using this mod

If you download and install this mod, please add your TNG site to the table below. If you have any problem adding your site, send an email to MyMail

URL User Note Mod-Version TNG-Version User-language
Descendants of John Irish Linc Haymaker Mod's Developer 12.3.0.0 12.3.0 EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS
[mymispoche.com/index.php MyMispoche Our Family History] Carlton Brooks Public & Private 12.3.0.0 13.0 EN
The Duttons of New England Darrin Dutton Public / Private 12.3.0.1 14.0.1 EN
The Severijns / Timmer Familytree Rob Severijns Public / Private 12.3.0.1 14.0.4 NL, EN
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 12.3.0.1 13.1.2 NL, EN, ES
Van Peer - Lewis Drew McClenaghan Private Site 12.3.0.1 14.0 EN
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Osage County Cousins Larry G Banks Public/Private 12​.3​.0​.1 14.0 }