Submit Photo/Document Form Mod

From TNG_Wiki
Revision as of 03:15, 13 April 2024 by Brett (talk | contribs) (Display change. Added category.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
NeedSupport The mod Submit Photo/Document Form Mod needs a new support person since the original mod developer or subsequent developers are no longer available to support the mod NeedSupport


Restricted Downloads of Submit Photo/Document Form Mod 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


Submit Photo/Document Form Mod
Summary Allows visitors to submit photos or documents.
Validation
Mod Updated 30 March 2024
Download link For
TNG 14.0
TNG 13.0.2
submitphotoform_V13.0.2.1.zip
For
TNG 12.0
TNG 11.0
TNG 10.1.0
submitphotoform_V10.1.0.1.zip
For
TNG 10.0
TNG 9.0

submitphotoform_V9.0.0.12.zip
Download stats See download statistics
Author(s) Jeff Robison
Homepage Submit Photo/Document Form Mod (This page)
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod 13.0.2.1
Min TNG V 9.0
Max TNG V 14.0
Files modified
getperson.php
familygroup.php
submit_photo.php
languages/English/cust_text.php
languages/English-UTF8/cust_text.php
Related Mods
Notes
Custom Text Mods for
Submit Photo/Document Form Mod
submitphotoform_v9.0.0.3_dutch.zip
Dutch custom text mod by Bart Degryse.
submitphotoform_v9.0.0.3_french.zip
French custom text mod by Bart Degryse.
submitphotoform_v10.1.0.0_german.zip
German custom text mod by Martin Pannier.

Purpose of the mod

This TNG modification is a base form which allows visitors to submit photos and/or documents for an individual or family.
Various mods that link to this form are listed in the panel to the right. Note that you must install one of these mods with this mod in order for it to work.

Developer

This mod was developed by Jeff Robison. View all mods by Jeff.
Updated for TNG 13.0.1 by Ron Krzmarzick.

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary to the right)
  • An installed current version of the Mod Manager.
  • Both English and English-UTF8 folders be on your site
  • A link to the form. Several are listed under Related Mods in the panel to the right.

Note: You can place a custom link to this form anywhere on your site but if no person or family ID is available, the name of your website will be displayed.

Revision History

Mod Version TNG Version Date Contents
13.0.2.1 13.0 30 Mar 2024 Fixed conflict with Simple SEO mod by Ron Krzmarzick.
13.0.2.0 13.0 17 Jan 2021 Fixed some bugs.- Jeff Robison
13.0.1.2a 13.0 14 Jan 2021 No functional change. The cfg version corrected.
13.0.1.2 13.0 12 Jan 2021 Updated for TNG 13.0.1 by Ron Krzmarzick.
10.1.0.1 10.1 05 Sep 2015 Fixed SMTP mail issue.
10.1.0.0b 10.1 31 Aug 2015 Fixed conflict with Simple SEO mod.
10.1.0.0a 10.1 28 Feb 2015 Menu/Tabs wrapping on acknowledgement page fixed for templates 9,10,11,13 and 14.
10.1.0.0 10.1 17 Jan 2015 Updated for TNG v10.1.
9.0.0.11b 9.0 22 Oct 2014 Menu/Tabs wrapping on acknowledgement page fixed for templates 9,10,11,13 and 14.
9.0.0.11 9.0 09 Aug 2014 Allows multiple file attachments.
  • Max number of attachments edit parameter in Mod Manager after installation
9.0.0.10a 9.0 14 Jul 2014 Custom text for the submit button fixed.
9.0.0.10 9.0 13 Jul 2014 Several changes.......
  • Obsolete code removed.
  • Added custom text to handle email acknowledgements.
  • Person/Family headers and tabs added to email acknowledgement page. (No 'Close Window' button needed)
9.0.0.9b 9.0 06 Jul 2014 submit_photo.php file would not create - Fixed.
9.0.0.9a 9.0 07 Jun 2014 Updated to allow for TNG sites using SMTP email.
9.0.0.9 9.0 20 Apr 2014 Session cookies replaced with variables. Fixes issue where the cookie values were being passed between browser tabs.
  • The submit_photo.php file is now created vs. a file copy.

You will need to replace the following mods which have been revised for this version........

9.0.0.8a 9.0 12 Jun 2013 Added parameters to edit in Mod Manager after installation
  • Captcha option (0=No captcha / 1=Use captcha).
  • Captcha file name (TNG_captcha.php).
  • Accepted extensions (jp?g|pdf|png|gif|doc|docx|odt). Change or add to. Note the separator used.
9.0.0.7 9.0 4 Nov 2012
  • Added file extension verification.
  • Hard coded acceptable file extensions are .gif, .jpg, .jpeg, and .docx.
9.0.0.6 9.0 8 Nov 2012
  • Added file extension verification.
  • Hard coded acceptable file extensions are .gif, .jpg, .jpeg, and .docx.
9.0.0.5 9.0 28 Oct 2012
  • TNG person and family page headers are used eliminating the need of a 'Cancel' button.
  • Registered user name, Registered user email address, burial info fields are auto-filled if info is available.
  • Link to person or family added to email.
9.0.0.4 9.0 27 Oct 2012
  • TNG person and family page headers are used eliminating the need of a 'Cancel' button.
  • Registered user name, Registered user email address, burial info fields are auto-filled if info is available.
  • Link to person or family added to email.
9.0.0.3 9.0 29 Sep 2012 Deprecated PHP function "session_unregister" removed.
9.0.0.2 9.0 19 May 2012 Revised to allow for TNG user assigned links to the form such as a link on your home page, menu etc. See TNG User Defined Link
9.0.0.1 9.0 06 May 2012 Revised for changes made to Submit Headstone Photo Mod.
Does not affect other mods linking to the form.
9.0.0.0 9.0 04 Dec 2011 submit_photo.php and CaptchaSecurityImages.php are now modules copied to your root directory.
Form for Submit Headstone Photo Mod has more fields.
8.1.5a 8.1 27 Nov 2010 my_sql query error after going to media fixed.
Still no spam reported using the CaptchaSecurityImages function.
Note: I can no longer address problems concerning ReCaptcha. I know nothing about it.
8.1.4c
1.0.2b
11 Oct 2010 8.1 Another email fix (Mail was not being sent).
Still no spam reported using the CaptchaSecurityImages function.
Got the file version right in V1.0.2b.
Thank you for your patience.
8.1.4b 8.1 07 Oct 2010 Some spam got through with previous version. Security code changed to include numbers.
Testing on several sites. No spam reported!
8.1.4a
1.0.2a
8.1 27 Sep 2010 Email routine changed. Fix works for at least one Mac user. This version is suggested for all.

Common variables within mods that use this form are included to eliminate Mod Manager conflicts. If you currently use one of the Submit mods, remove/delete and upload/install the current version of the particular mod.

8.1.3c
1.0.1
8.1 17 Sep 2010 Email 'Subject' field fixed.
8.1.3b 8.1 28 Aug 2010 User logout upon submission fixed.
8.1.3a 8.1 24 Aug 2010 Unnecessary variables removed.
1.0.0 8.1 29 Aug 2010 For those who like spam or prefer to use another captcha routine (Captcha Mod).

Conflicts and Issues

No known conflicts.

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. 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.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

TNG User Defined Links

  • For TNG user defined links (i.e. Link on home page) to the submit photo/document form.
  1. Within HTML: <a href="submit_photo.php">Submit Photo/Document</a>
  2. For Custom Drop Down Menu mod customconfig.php file: $custommenulinks[$i]['target'] = "submit_photo.php";

Custom Text Additions

Note: The config file only includes the English language $text variables. If you support multiple languages you can modify the config file to add the custom text for those other languages, or manually add them to each of your other languages with the appropriate translations.

// Added for Submit Photo/Document Form Mod 
$text['enteratt'] = "Please select a file to attach";
$text['enteraccept'] = "Accepted file types: ";
$text['enterdescr'] = "File description missing.";
$text['submitphotofor'] = "Photo/Document Submission: ";
$text['submitphotohdr'] = "Submit Photo / Document";
$text['optional'] = "Optional";
$text['sharephoto'] = "Submit Photo / Doc";
$text['submitphotocredit'] = "Credit / Source";
$text['submitphotodescription'] = "Description";
$text['submitphotoattachment'] = "Attachment";
$text['submitphotorequiredfield'] = "Required Field";
$text['submitremove'] = "Remove";
$text['submitaddattachment'] = "Add another attachment";
$text['submitphotoprivacy'] = "We respect your privacy - your name and email address will not be publicly displayed or released.";
$text['submitphotobutton'] = "Submit Attachment(s)";
$text['submitmessage1'] = "Thank you xxx (yyy).";
$text['submitmessage2'] = "File(s) submitted for review to ";
$text['submitsendcopy'] = "You should receive a copy soon.";
$text['submitregards'] = "Best Regards,";
$text['submitmailnotsent'] = "We're sorry, but your submission could not be delivered.";

Please add the following if you wish to add Italian to your page -

// Aggiunto per inviare foto/documento modulo Mod
$text ['enteratt'] = "Seleziona un file da allegare";
$text ['enteraccept'] = "tipi di file accettati:";
$text ['enterdescr'] = "File Descrizione mancante.";
$text ['submitphotofor'] = "foto/documento di presentazione:";
$text ['submitphotohdr'] = "Inviare foto / documento";
$text ['optional'] = "Optional";
$text ['sharephoto'] = "Inviare foto / Doc";
$text ['submitphotocredit'] = "Credito / Source";
$text ['submitphotodescription'] = "Descrizione";
$text ['submitphotoattachment'] = "Allegato";
$text ['submitphotorequiredfield'] = "Campo obbligatorio";
$text ['submitremove'] = "Rimuovi";
$text ['submitaddattachment'] = "Aggiungi un altro allegato";
$text ['submitphotoprivacy'] = "noi rispettiamo la tua privacy - il tuo nome e indirizzo email non sarà essere visualizzato pubblicamente o rilasciato.";
$text ['submitphotobutton'] = "Invia allegati";
$text ['submitmessage1'] = "Grazie xxx (yyy).";
$text ['submitmessage2'] = "Il file inviato per la revisione a";
$text ['submitsendcopy'] = "Si riceverà una copia presto.";
$text ['submitregards'] = "Best Regards,";
$text ['submitmailnotsent'] = "Siamo spiacenti, ma non è stato possibile recapitare il tuo invio.";

Visualization

The following screen captures show the changes made by the mod:

SubmitCapture.jpg

Sites using this mod

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