Difference between revisions of "Add Attachment Link"

From TNG_Wiki
Jump to navigation Jump to search
(Update link for v9)
Line 5: Line 5:
 
| mod_validation  = This mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
 
| mod_validation  = This mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
 
| mod_last_update = 13 Oct 2018
 
| mod_last_update = 13 Oct 2018
| download_link  = [http://www.rgstrong-genes.com/ccount/click.php?id=5&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}}  add_attachment_link_v9.0.0.0.zip]<br />From:<span class="nowrap">{{Tv120}}{{Tv90}}<br /><br /></span><hr />
+
| download_link  = [http://www.rgstrong-genes.com/ccount/click.php?id=5&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}}  add_attachment_link_v9.0.0.1.zip]<br />From:<span class="nowrap">{{Tv120}}{{Tv90}}<br /><br /></span><hr />
 
[http://www.rgstrong-genes.com/ccount/click.php?id=1&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} add_attachment_link_v8.1.0.4.zip]{{Tv81}}<br /><br /><hr />
 
[http://www.rgstrong-genes.com/ccount/click.php?id=1&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} add_attachment_link_v8.1.0.4.zip]{{Tv81}}<br /><br /><hr />
 
| download_stats = [http://www.rgstrong-genes.com/ccount//index.php?action=stats&groupid=1 See download statistics]
 
| download_stats = [http://www.rgstrong-genes.com/ccount//index.php?action=stats&groupid=1 See download statistics]
Line 12: Line 12:
 
| mod_support    = [https://www.rgstrong-genes.com/mod_support.php My Mod Support]
 
| mod_support    = [https://www.rgstrong-genes.com/mod_support.php My Mod Support]
 
| mod_contact    = [https://www.rgstrong-genes.com/mod_support.php My Mod Support]
 
| mod_contact    = [https://www.rgstrong-genes.com/mod_support.php My Mod Support]
| mod_version    = 9.0.0.0 for TNG V9+, 8.1.0.4 for TNG V8.1.x
+
| mod_version    = 9.0.0.1 for TNG V9+, 8.1.0.4 for TNG V8.1.x
 
| min_TNG_ver    = 8.1
 
| min_TNG_ver    = 8.1
 
| max_TNG_ver    = 12
 
| max_TNG_ver    = 12

Revision as of 20:04, 13 October 2018

Restricted Downloads of Add Attachment Link 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


Add Attachment Link
Summary This mod will add a link on the Suggest form so that the user can add an attachment to his suggestion.
Validation This mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 13 Oct 2018
Download link add_attachment_link_v9.0.0.1.zip
From:
TNG 12.0
TNG 9.0



add_attachment_link_v8.1.0.4.zip

TNG 8.1



Download stats See download statistics
Author(s) Russ Strong
Homepage Add Attachment Link (This page)
Mod Support My Mod Support
Contact Developer My Mod Support
Latest Mod 9.0.0.1 for TNG V9+, 8.1.0.4 for TNG V8.1.x
Min TNG V 8.1
Max TNG V 12
Files modified
suggest.php
cust_txt.php
Related Mods
Notes
This mod includes optional French, German, Dutch, Spanish
and Czech translation files.


Purpose of the mod

This mod will add a link to the suggest form that will open the users email client so they can attach a file/s to their suggestion.

Developer

This mod was developed by Russ Strong. Layout changes, Spanish and Czech translations provided by Ron Krzmarzick.

Requirements

  • A working TNG installation. The automated installation release was tested at TNG Version 8.1 +.
  • An installed current version of the Mod Manager.

Installation

  1. Download the appropriate zip file as shown in the summary in the upper right corner of the page.
  2. Extract the config file from the downloaded zip file into the 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.

Custom Text Additions

Note that the config file includes the English, French, German, and Dutch language changes, see summary for other languages included. If you support multiple languages you can modify the config file to add the custom text for those other languages, or manually add the following custom text to each of your other languages with appropriate translations. Note if using version 9 and greater remove the comment from the last variable to enable it.

// added to open email for attachment to suggest.php
$text['addattachment'] = "ATTENTION! If you would like to send an attachment of a photo or document for this ";
$text['addattachment1'] = " then click on the attachment link below.";
$text['addattachment2'] = "This will open your email program where you can attach your file and then fill out the <b>link</b> and <b>description</b> in the body of your message.";
$text['addattachment3'] = "There is no need to fill in this form.";
$text['message'] = "message";
$text['mediaattached1'] = " with media file attached";
$text['mediaattached2'] = ": Media file attached";
$text['attachment'] = "Add Attachment";
$text['aa_person'] = "person";
$text['aa_family'] = "family";
$text['aa_repository'] = "repository";
$text['aa_source'] = "source";
//$text['aa_place'] = "place";  // added for version 9+ 
// end attachment messages

Revision History

Version Date Contents
V9.0.0.0 13 Oct 2018 Updated to work with TNG V9+ so mod will translate when suggest.php is called from a placesearch.
V8.1.0.4 13 Oct 2018 Corrected syntax errors on lines 74 and 83.
V8.1.0.3 12 Oct 2018 Changed target locations and added text variables for each $typestr so they will translate to other languages when opened from a person page or family page.
V8.1.0.2 11 Oct 2018 Minor layout changes and re-translated cust_txt.php files for German, French, and Dutch files using DeepL Translator. Added Spanish and Czech files provided by Ron Krzmarzick.
V8.1.0.1 7 Oct 2018 Corrected spelling errors and re-translated cust_txt.php files for German, French, and Dutch files.
V8.1.0.0 ? Initial Release (private unpublished)

In the event of a problem

Visualization of this mod

Without Mod

Without this mod, the suggest.php displays as shown in the image on
the right.

Add attachment link before.png

With Mod Installed

With the Add Attachment Link mod installed, the suggest.php includes
a message and an "Add Attachment" link that opens the user's email
client where the user can attach images and description to the email.

Add attachment link after.png

Sites using this mod

If you download and use this mod, please add your TNG site to the table below. If you are not sure how to add your details please email me (see box top right) and I will update.

URL User Note Mod-Version TNG-Version User-language
R G Strong Family Genealogy Russell Strong Developer V9.0.0.0 12.0.2 EN, DE, FR, NL
Roots & Relatives Remembered Ron Krzmarzick Public & Private V8.1.0.1 12.0.2 EN,DE,CS,ES