Auto Email Original
|Auto Email Original|
|Summary||Adds a link for users to request high resolution image originals to be emailed|
|Validation||This mod is XHTML compliant.|
|Mod Updated||31 Oct 2018|
|Author(s)||Harold Roberts v7,v8,v12;|
Brian McFadyen v10
|Homepage||Auto Email Original (this page)|
|Mod Support||TNG Community Forums|
|Contact Developer||Mod Support|
|Latest Mod||184.108.40.206 for TNG V12 |
10.0.0.1 for TNG V10
8.1.0 for TNG V8
2.2e for TNG V7
|Min TNG V||7.0.3|
|Max TNG V||12.0.2|
The email fields must be customized after installation using the EDIT button in the Mod Manager
Purpose of the mod
This mod allows an owner to create a link within pictures that allows an authorized user to request a high quality copy of the picture without bugging the owner. It requires creating an original folder on the server and placing high quality copies of the pictures within this directory. The end user then clicks the link and a copy of the image is emailed to them at the email address they registered with.
This mod applies to TNG 7.0.3 and up
This mod was developed by Harold Roberts
- A working TNG installation. The automated installation release was initially tested at TNG Version 7.1.0. Manual installation previously used on TNG 7
- A backup of the following TNG files:
Automated Installation v.7.1.0 or higher
- An installed current version of the Mod Manager.
- This requires the latest version of Mod Manager.
- Download the appropriate .zip from the above status box
- After downloading the config file, unzip it into the ./admin/mod_folder for V7 or ./mods for V8 and up, and then follow the normal automated installation for Mod Manager mods.
- You MUST use the Mod Manager EDIT button to customize the email fields to enable this mod to function
1. Copy the following files to your extensions folder beneath your TNG folder (i.e. genealogy/extensions)
2. Copy the following file to your TNG Root Directory (i.e. genealogy)
3. Make a copy of the following files.
4. Make the following changes to showmedialib.php (inside the Function showTable)
a. Line 384 after the existing global line, add the following:
global $mediaID; $high .= "<a href='extensions/auto_mail.php?mediaID=$mediaID' onclick='openwindow(this.href); return false'><strong>$text[emailclickmessage]</strong></a>" ;
b. Line 403 add the following:
$tabletext .= showEvent( array( "text"=>$text[emaildisplaymessage], "fact"=>$high ) );
5. Add the following line to showmedia.php
The whole section should now look like this:
6. Copy the following into English/cust_text.php (before the ending ?>)
The above $text[originalpath'] is the location of where you will store the original files.
Visual of mod
In the event of a problem with your TNG site
- Try using the Mod Manager Remove capability
- Or copy your backup showmedia.php, and showmedialib.php files to your TNG directory
- all should be well now
TNG User sites using this mod
- Please add TNG site that you have found that utilize this modification
- Roberts Family Tree I use this TNG mod to provide a link to allow my relatives to get a high quality copy of a picture, without having to wait for me to find the time to send it to them. (Harold Roberts)