Difference between revisions of "Submit Photo/Document Form Mod"

From TNG_Wiki
Jump to navigation Jump to search
(Display change. Added category.)
 
(65 intermediate revisions by 23 users not shown)
Line 1: Line 1:
{{restricted}}{{TNGmod
+
{{SupportNeeded}}{{restricted}}{{TNGmod
| mod_name = Submit Photo/Document Form Mod
+
| mod_name       = {{PAGENAME}}
| mod_summary = Allows visitors to submit photos or documents.
+
| mod_summary     = Allows visitors to submit photos or documents.
| mod_validation =
+
| mod_validation =
| download_link = <br />{{Tv110}}{{Tv1010}}[http://www.robisonandblythe.org/ccount/click.php?id=94&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} submitphotoform_V10.1.0.1.zip]<hr />{{Tv100}}{{Tv90}}<br />[http://www.robisonandblythe.org/ccount/click.php?id=76&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} submitphotoform_V9.0.0.12.zip]<br />Mod Manager 'Edit' after installation...<br /><li />Max attachments<li />Captcha option Yes/No<br /><li />Captcha file name<br /><li />Accepted file extensions<hr />
+
| mod_last_update = 30 March 2024
| download_stats = [http://www.robisonandblythe.org/ccount/index.php?action=stats&groupid=1 See download statistics]
+
| download_link   = For{{Tv140}}{{Tv1302}}‎[[Media:submitphotoform_V13.0.2.1.zip|submitphotoform_V13.0.2.1.zip]]<hr style="clear: both;"/>For{{Tv120}}{{Tv110}}{{Tv1010}}[http://www.robisonandblythe.org/ccount/click.php?id=94&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} submitphotoform_V10.1.0.1.zip]<hr style="clear: both;"/>For{{Tv100}}{{Tv90}}<br />[http://www.robisonandblythe.org/ccount/click.php?id=76&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} submitphotoform_V9.0.0.12.zip]
| mod_author = Jeff Robison
+
| download_stats = [http://www.robisonandblythe.org/ccount/index.php?action=stats&groupid=1 See download statistics]
| mod_url = [http://www.robisonandblythe.org/ Robison and Blythe Genealogy]
+
| mod_author     = Jeff Robison
| mod_support = [http://tng.community/ TNG Community Forums]
+
| mod_url = '''{{PAGENAME}}''' (This page)<!-- [http://www.robisonandblythe.org/ Robison and Blythe Genealogy] -->
| mod_contact = [http://www.robisonandblythe.org/mod_support.php My Mod Support]
+
| mod_support     = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums]
| mod_version = 10.1.0.1
+
| mod_contact     = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums]<!-- [http://www.robisonandblythe.org/mod_support.php My Mod Support] -->
| min_TNG_ver = 9.0
+
| mod_version     = 13.0.2.1
| max_TNG_ver = 11.1
+
| min_TNG_ver     = 9.0
| TNG_file_list = <br />getperson.php<br />familygroup.php
+
| max_TNG_ver     = 14.0
| related_mods = [[Submit Photo Tab Mod]]<br />[[Submit Photo Mod]]
+
| TNG_file_list   = getperson.php<br />familygroup.php<br />submit_photo.php<br />languages/English/cust_text.php<br />languages/English-UTF8/cust_text.php
| notes = See [[Submit_Photo/Document_Form_Mod#Custom_Text_Additions|Custom Text Additions]] if you are using multiple languages.<br /><hr /><center>'''Custom Text Mods for'''<br />'''Submit Photo/Document Form Mod'''</center>
+
| related_mods   = [[Submit Photo Tab Mod]]<br />[[Submit Photo Mod]]
 +
| notes           = <center>'''Custom Text Mods for'''<br />'''Submit Photo/Document Form Mod'''</center>
 
[[Media:submitphotoform_v9.0.0.3_dutch.zip | submitphotoform_v9.0.0.3_dutch.zip]]<br />Dutch custom text mod by Bart Degryse.<br />[[Media:submitphotoform_v9.0.0.3_french.zip | submitphotoform_v9.0.0.3_french.zip]]<br />French custom text mod by Bart Degryse.<br />[[Media:Submitphotoform_v10.1.0.0_german.zip | submitphotoform_v10.1.0.0_german.zip]]<br />German custom text mod by Martin Pannier.
 
[[Media:submitphotoform_v9.0.0.3_dutch.zip | submitphotoform_v9.0.0.3_dutch.zip]]<br />Dutch custom text mod by Bart Degryse.<br />[[Media:submitphotoform_v9.0.0.3_french.zip | submitphotoform_v9.0.0.3_french.zip]]<br />French custom text mod by Bart Degryse.<br />[[Media:Submitphotoform_v10.1.0.0_german.zip | submitphotoform_v10.1.0.0_german.zip]]<br />German custom text mod by Martin Pannier.
}}
+
}}{| style="margin-right:0.5 em;" align="right"
 
+
| __TOC__
{|align=right
 
|__TOC__
 
 
|}
 
|}
 
 
== Purpose of the mod ==
 
== Purpose of the mod ==
This is a base form which allows visitors to submit photos and/or documents for an individual or family.<br />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.
+
This TNG modification is a base form which allows visitors to submit photos and/or documents for an individual or family.<br />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 ==
 
== Developer ==
 
+
This mod was developed by [[User:Jefr58|Jeff Robison]]. View all mods by [[User:Jefr58|Jeff]].<br />Updated for TNG 13.0.1 by [[User:Tngrlkrz|Ron Krzmarzick]].
This mod was developed by Jeff Robison.<br />* [[User:Jefr58|View all mods by Jeff Robison]]
 
  
 
==Requirements==
 
==Requirements==
 
+
* A working TNG installation.
* A working TNG installation. The automated installation release will work with TNG v9.0+.
+
* A backup of all affected files (see the list in the summary to the right)
 
* An installed current version of the [[Mod Manager]].
 
* 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.<br />
 
*A link to the form. Several are listed under '''Related Mods''' in the panel to the right.<br />
 
'''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.
 
'''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.
  
==Automated Installation==
+
== Revision History ==
# All files of previous versions of [[Submit Photo/Document Form Mod]] must be uninstalled and deleted from your root directory!
+
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
# Upload the .zip file to your mods folder and extract files.
+
|-
# Install using Mod Manager.
+
! Mod Version
 +
! TNG Version
 +
! Date
 +
! Contents
  
==TNG User Defined Link Requirement==
+
|- style="vertical-align:top;"
 +
| 13.0.2.1
 +
| 13.0
 +
| style="white-space: nowrap;"|30 Mar 2024
 +
| Fixed conflict with [[Simple SEO]] mod by [[User:Tngrlkrz|Ron Krzmarzick]].
  
* '''For TNG user defined links (i.e. Link on home page) to the submit photo/document form.'''
+
|- style="vertical-align:top;"
# Within HTML: <a href="submit_photo.php">Submit Photo/Document</a>
+
| 13.0.2.0
# For [[Custom Drop Down Menu]] mod customconfig.php file: $custommenulinks[$i]['target'] = "submit_photo.php";
+
| 13.0
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
+
| style="white-space: nowrap;"|17 Jan 2021
 +
| Fixed some bugs.- Jeff Robison
 +
 
 +
|- style="vertical-align:top;"
 +
| 13.0.1.2a
 +
| 13.0
 +
| style="white-space: nowrap;"|14 Jan 2021
 +
| No functional change. The cfg version corrected.
  
==Revision History==
+
|- style="vertical-align:top;"
 +
| 13.0.1.2
 +
| 13.0
 +
| style="white-space: nowrap;"|12 Jan 2021
 +
| Updated for TNG 13.0.1 by [[User:Tngrlkrz|Ron Krzmarzick]].
  
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
+
|- style="vertical-align:top;"
|-
+
| 10.1.0.1
! Version
+
| 10.1
! Date
+
| style="white-space: nowrap;"|05 Sep 2015
! Description
 
|-
 
| V10.1.0.1
 
| 05 September 2015
 
 
| Fixed SMTP mail issue.
 
| Fixed SMTP mail issue.
|-
+
 
| V10.1.0.0b
+
|- style="vertical-align:top;"
| 31 August 2015
+
| 10.1.0.0b
 +
| 10.1
 +
| style="white-space: nowrap;"|31 Aug 2015
 
| Fixed conflict with [[Simple SEO]] mod.
 
| Fixed conflict with [[Simple SEO]] mod.
|-
+
 
| V10.1.0.0a
+
|- style="vertical-align:top;"
| 28 February 2015
+
| 10.1.0.0a
 +
| 10.1
 +
| style="white-space: nowrap;"|28 Feb 2015
 
| Menu/Tabs wrapping on acknowledgement page fixed for templates 9,10,11,13 and 14.
 
| Menu/Tabs wrapping on acknowledgement page fixed for templates 9,10,11,13 and 14.
|-
+
 
| V10.1.0.0
+
|- style="vertical-align:top;"
| 17 January 2015
+
| 10.1.0.0
 +
| 10.1
 +
| style="white-space: nowrap;"|17 Jan 2015
 
| Updated for TNG v10.1.
 
| Updated for TNG v10.1.
|-
+
 
| V9.0.0.11b
+
|- style="vertical-align:top;"
| 22 October 2014
+
| 9.0.0.11b
 +
| 9.0
 +
| style="white-space: nowrap;"|22 Oct 2014
 
| Menu/Tabs wrapping on acknowledgement page fixed for templates 9,10,11,13 and 14.
 
| Menu/Tabs wrapping on acknowledgement page fixed for templates 9,10,11,13 and 14.
|-
+
 
| V9.0.0.11
+
|- style="vertical-align:top;"
| 09 August 2014
+
| 9.0.0.11
 +
| 9.0
 +
| style="white-space: nowrap;"|09 Aug 2014
 
| Allows multiple file attachments.
 
| Allows multiple file attachments.
 
* Max number of attachments edit parameter in Mod Manager after installation
 
* Max number of attachments edit parameter in Mod Manager after installation
|-
+
 
| V9.0.0.10a
+
|- style="vertical-align:top;"
| 14 July 2014
+
| 9.0.0.10a
 +
| 9.0
 +
| style="white-space: nowrap;"|14 Jul 2014
 
| Custom text for the submit button fixed.
 
| Custom text for the submit button fixed.
|-
+
 
| V9.0.0.10
+
|- style="vertical-align:top;"
| 13 July 2014
+
| 9.0.0.10
 +
| 9.0
 +
| style="white-space: nowrap;"|13 Jul 2014
 
| Several changes.......
 
| Several changes.......
 
* Obsolete code removed.
 
* Obsolete code removed.
 
* Added custom text to handle email acknowledgements.
 
* Added custom text to handle email acknowledgements.
 
* Person/Family headers and tabs added to email acknowledgement page. (No 'Close Window' button needed)
 
* Person/Family headers and tabs added to email acknowledgement page. (No 'Close Window' button needed)
|-
+
 
| V9.0.0.9b
+
|- style="vertical-align:top;"
| 06 July 2014
+
| 9.0.0.9b
 +
| 9.0
 +
| style="white-space: nowrap;"|06 Jul 2014
 
| submit_photo.php file would not create - Fixed.
 
| submit_photo.php file would not create - Fixed.
|-
+
 
| V9.0.0.9a
+
|- style="vertical-align:top;"
| 07 June 2014
+
| 9.0.0.9a
 +
| 9.0
 +
| style="white-space: nowrap;"|07 Jun 2014
 
| Updated to allow for TNG sites using SMTP email.
 
| Updated to allow for TNG sites using SMTP email.
|-
+
 
| V9.0.0.9
+
|- style="vertical-align:top;"
| 20 April 2014
+
| 9.0.0.9
|
+
| 9.0
Session cookies replaced with variables. Fixes issue where the cookie values were being passed between browser tabs.
+
| style="white-space: nowrap;"|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.
 
* 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........
 
You will need to replace the following mods which have been revised for this version........
Line 109: Line 140:
 
* [[Submit Photo Tab Mod]]
 
* [[Submit Photo Tab Mod]]
 
* [[Submit Headstone Photo Mod]]
 
* [[Submit Headstone Photo Mod]]
|-
+
 
| V9.0.0.8a
+
|- style="vertical-align:top;"
| 12 June 2013
+
| 9.0.0.8a
|
+
| 9.0
'''Added parameters to edit in Mod Manager after installation.....'''
+
| style="white-space: nowrap;"|12 Jun 2013
 +
|Added parameters to edit in Mod Manager after installation
 
* Captcha option (0=No captcha / 1=Use captcha).
 
* Captcha option (0=No captcha / 1=Use captcha).
 
* Captcha file name (TNG_captcha.php).
 
* Captcha file name (TNG_captcha.php).
 
* Accepted extensions (jp?g|pdf|png|gif|doc|docx|odt). Change or add to. <span style="color: Red">Note the separator used.</span>
 
* Accepted extensions (jp?g|pdf|png|gif|doc|docx|odt). Change or add to. <span style="color: Red">Note the separator used.</span>
|-
+
 
| V9.0.0.7
+
|- style="vertical-align:top;"
| 4 November 2012
+
| 9.0.0.7
 +
| 9.0
 +
| style="white-space: nowrap;"|4 Nov 2012
 
|
 
|
 
* Added file extension verification.
 
* Added file extension verification.
 
* Hard coded acceptable file extensions are .gif, .jpg, .jpeg, and .docx.
 
* Hard coded acceptable file extensions are .gif, .jpg, .jpeg, and .docx.
|-
+
 
| V9.0.0.6
+
|- style="vertical-align:top;"
| 8 November 2012
+
| 9.0.0.6
 +
| 9.0
 +
| style="white-space: nowrap;"|8 Nov 2012
 
|
 
|
 
* Added file extension verification.
 
* Added file extension verification.
 
* Hard coded acceptable file extensions are .gif, .jpg, .jpeg, and .docx.
 
* Hard coded acceptable file extensions are .gif, .jpg, .jpeg, and .docx.
|-
+
 
| V9.0.0.5
+
|- style="vertical-align:top;"
| 28 October 2012
+
| 9.0.0.5
 +
| 9.0
 +
| style="white-space: nowrap;"|28 Oct 2012
 
|
 
|
 
* TNG person and family page headers are used eliminating the need of a 'Cancel' button.
 
* 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.
 
* 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.
 
* Link to person or family added to email.
|-
+
 
| V9.0.0.4
+
|- style="vertical-align:top;"
| 27 October 2012
+
| 9.0.0.4
 +
| 9.0
 +
| style="white-space: nowrap;"|27 Oct 2012
 
|
 
|
 
* TNG person and family page headers are used eliminating the need of a 'Cancel' button.
 
* 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.
 
* 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.
 
* Link to person or family added to email.
|-
+
 
| V9.0.0.3
+
|- style="vertical-align:top;"
| 29 September 2012
+
| 9.0.0.3
 +
| 9.0
 +
| style="white-space: nowrap;"|29 Sep 2012
 
| Deprecated PHP function "session_unregister" removed.
 
| Deprecated PHP function "session_unregister" removed.
|-
+
 
| V9.0.0.2
+
|- style="vertical-align:top;"
| 19 May 2012
+
| 9.0.0.2
| Revised to allow for TNG user assigned links to the form such as a link on your home page, menu etc..<br />'''See TNG User Defined Link Requirement above.'''
+
| 9.0
|-
+
| style="white-space: nowrap;"|19 May 2012
| V9.0.0.1
+
| Revised to allow for TNG user assigned links to the form such as a link on your home page, menu etc. See [[Submit_Photo/Document_Form_Mod#TNG User Defined Link|TNG User Defined Link]]
| 6 May 2012
+
 
 +
|- style="vertical-align:top;"
 +
| 9.0.0.1
 +
| 9.0
 +
| style="white-space: nowrap;"|06 May 2012
 
| Revised for changes made to [[Submit Headstone Photo  Mod]].<br />Does not affect other mods linking to the form.
 
| Revised for changes made to [[Submit Headstone Photo  Mod]].<br />Does not affect other mods linking to the form.
|-
+
 
| V9.0.0.0
+
|- style="vertical-align:top;"
| 4 December 2011  
+
| 9.0.0.0
|   submit_photo.php and CaptchaSecurityImages.php are now modules copied   to your root directory.<br />Form for [[Submit Headstone Photo  Mod]] has more fields.
+
| 9.0
|-
+
| style="white-space: nowrap;"|04 Dec 2011  
| V8.1.5a
+
| submit_photo.php and CaptchaSecurityImages.php are now modules copied to your root directory.<br />Form for [[Submit Headstone Photo  Mod]] has more fields.
| 27 November 2010  
+
 
|   my_sql query error after going to media fixed.<br>Still no spam  reported using the CaptchaSecurityImages function.<br>'''Note:'''  I  can no longer address problems concerning ReCaptcha. I know nothing  about it.
+
|- style="vertical-align:top;"
|-
+
| 8.1.5a
| V8.1.4c<br>V1.0.2b
+
| 8.1
| 11 October 2010  
+
| style="white-space: nowrap;"|27 Nov 2010  
|   Another email fix (Mail was not being sent).<br>Still no spam  reported using the CaptchaSecurityImages function.<br>Got the file  version right in V1.0.2b.<br>Thank you for your patience.
+
| my_sql query error after going to media fixed.<br>Still no spam  reported using the CaptchaSecurityImages function.<br>'''Note:'''  I  can no longer address problems concerning ReCaptcha. I know nothing  about it.
|-
+
 
| V8.1.4b
+
|- style="vertical-align:top;"
| 07 October 2010  
+
| 8.1.4c<br>1.0.2b
|   Some spam got through with previous version. Security code changed to   include numbers.<br>Testing on several sites. No spam reported!
+
| style="white-space: nowrap;"|11 Oct 2010  
|-
+
| 8.1
| V8.1.4a<br>V1.0.2a
+
| Another email fix (Mail was not being sent).<br>Still no spam  reported using the CaptchaSecurityImages function.<br>Got the file  version right in V1.0.2b.<br>Thank you for your patience.
| 27 September 2010  
+
 
 +
|- style="vertical-align:top;"
 +
| 8.1.4b
 +
| 8.1
 +
| style="white-space: nowrap;"|07 Oct 2010  
 +
| Some spam got through with previous version. Security code changed to include numbers.<br>Testing on several sites. No spam reported!
 +
 
 +
|- style="vertical-align:top;"
 +
| 8.1.4a<br>1.0.2a
 +
| 8.1
 +
| style="white-space: nowrap;"|27 Sep 2010  
 
| Email routine changed. Fix works for at least one Mac user. This version is suggested for all.
 
| 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.
 
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.
 
If you currently use one of the Submit mods, remove/delete and upload/install the current version of the particular mod.
|-
+
 
| V8.1.3c<br>V1.0.1
+
|- style="vertical-align:top;"
| 17 September 2010  
+
| 8.1.3c<br>1.0.1
 +
| 8.1
 +
| style="white-space: nowrap;"|17 Sep 2010  
 
| Email 'Subject' field fixed.
 
| Email 'Subject' field fixed.
|-
+
 
| V8.1.3b
+
|- style="vertical-align:top;"
| 28 August 2010  
+
| 8.1.3b
 +
| 8.1
 +
| style="white-space: nowrap;"|28 Aug 2010  
 
| User logout upon submission fixed.
 
| User logout upon submission fixed.
|-
+
 
| V8.1.3a
+
|- style="vertical-align:top;"
| 24 August 2010  
+
| 8.1.3a
 +
| 8.1
 +
| style="white-space: nowrap;"|24 Aug 2010  
 
| Unnecessary variables removed.
 
| Unnecessary variables removed.
|-
+
 
| V1.0.0
+
|- style="vertical-align:top;"
| 29 August 2010  
+
| 1.0.0
 +
| 8.1
 +
| style="white-space: nowrap;"|29 Aug 2010  
 
| For those who like spam or prefer to use another captcha routine ([[Captcha Mod]]).
 
| For those who like spam or prefer to use another captcha routine ([[Captcha Mod]]).
 
|}
 
|}
  
 +
== Conflicts and Issues ==
 +
No known conflicts.
 +
 +
== Installation ==
 +
# Uninstall and delete previous version of this mod (if installed)
 +
# Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
 +
# Extract the file from the downloaded zip file into the '''mods''' folder or FTP the extracted file to your mods folder.
 +
# 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 ==
 +
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability.
 +
* Copy the backup of the affected files back to your TNG  directory.
 +
* Retry installing mod.
 +
* Contact us through the [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums].
 +
 +
== Uninstalling the mod ==
 +
If  you want to completely '''Remove''' (uninstall) this mod and all its tables, you should
 +
# click the '''Uninstall''' button to uninstall the mod
 +
# 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.'''
 +
# Within HTML: <a href="submit_photo.php">Submit Photo/Document</a>
 +
# For [[Custom Drop Down Menu]] mod customconfig.php file: $custommenulinks[$i]['target'] = "submit_photo.php";
 
== Custom Text Additions ==  
 
== 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.
 
'''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.
  
 
+
<syntaxhighlight lang="php" >
<syntaxhighlight lang="php" enclose="div">
 
 
// Added for Submit Photo/Document Form Mod  
 
// Added for Submit Photo/Document Form Mod  
 
$text['enteratt'] = "Please select a file to attach";
 
$text['enteratt'] = "Please select a file to attach";
Line 226: Line 316:
 
Please add the following if you wish to add Italian to your page -  
 
Please add the following if you wish to add Italian to your page -  
  
<syntaxhighlight lang="php" enclose="div">
+
<syntaxhighlight lang="php" >
 
// Aggiunto per inviare foto/documento modulo Mod
 
// Aggiunto per inviare foto/documento modulo Mod
 
$text ['enteratt'] = "Seleziona un file da allegare";
 
$text ['enteratt'] = "Seleziona un file da allegare";
Line 250: Line 340:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Visualization of this mod ==
+
== Visualization ==
 
+
The following screen captures show the changes made by the mod:
{|
+
{||
|
 
 
|[[Image:submitCapture.jpg|1280px|right]]
 
|[[Image:submitCapture.jpg|1280px|right]]
 
|}
 
|}
  
== TNG User sites using this mod ==
+
== Sites using this mod ==
 +
If you download and install this mod, please add your TNG site to the table below:
  
 +
*[https://www.treichel-familie.de Treichel-Familie.de]
 +
*[https://dubuc-landry.ca/getperson.php?personID=I224&tree=dubuc/ Généalogie Dubuc-Landry] Français - English - German - Italian - Spanish
 +
*[https://www.we4kings.com/ Things of KINGS] Happy user
 
*[http://www.houseofproctor.org/ House Of Proctor] Joe Proctor: Author of original Submit Photo / Document code.
 
*[http://www.houseofproctor.org/ House Of Proctor] Joe Proctor: Author of original Submit Photo / Document code.
 
*[http://www.robisonandblythe.org/ Robison and Blythe Genealogy]
 
*[http://www.robisonandblythe.org/ Robison and Blythe Genealogy]
Line 277: Line 370:
 
*[http://legacygazette.com/ Legacy Gazette: My Roots - My Legacy]
 
*[http://legacygazette.com/ Legacy Gazette: My Roots - My Legacy]
 
*[http://paradiseohana.com/ Farnham &amp; Paradise Ohana] v9.0.0.8 with minor modifications]
 
*[http://paradiseohana.com/ Farnham &amp; Paradise Ohana] v9.0.0.8 with minor modifications]
*[http://genealogy.oceanwharf.com Hooley Family Links]
 
 
*[http://mfo.me.uk Mitchell Families Online] 9.0.0.11 is a very worthwhile and useful update. Nice one Jeff!
 
*[http://mfo.me.uk Mitchell Families Online] 9.0.0.11 is a very worthwhile and useful update. Nice one Jeff!
 
*[http://www.wortelboer.tk Wortelboer Genealogy]
 
*[http://www.wortelboer.tk Wortelboer Genealogy]
 
*[https://www.gambrillfamilytree.com/genealogy/submit_photo.php?subpersonID=I268&subentyp=I&submittree=treeno1 Gambrill Family Tree]
 
*[https://www.gambrillfamilytree.com/genealogy/submit_photo.php?subpersonID=I268&subentyp=I&submittree=treeno1 Gambrill Family Tree]
 
*[http://www.hendeefamily.org Genealogy of the Hendee Family]
 
*[http://www.hendeefamily.org Genealogy of the Hendee Family]
*[http://www.duttongenealogy.com The Dutton's of Vermont]
+
*[http://www.duttongenealogy.com The Duttons of New England]
 
*[https://www.bradyfamilytree.org/ Brady Family Tree in Western Australia]
 
*[https://www.bradyfamilytree.org/ Brady Family Tree in Western Australia]
*[http://www.bastiaanssen.us/tng/ Bastiaans(s)en Genealogy]
+
*[https://bastiaanssen.us Bastiaanssen Genealogy]
*[https://genealogywings.com/ MOTYER Family Genealogy]
 
 
*[http://geneagraphie.com/ Families all over the World] - [[User:Henri_Textor| Hans Weebers]]
 
*[http://geneagraphie.com/ Families all over the World] - [[User:Henri_Textor| Hans Weebers]]
 
*[http://rgstrong-genes.com R G Strong Family Genealogy] - [[User:Rgstrong| Russell Strong]]
 
*[http://rgstrong-genes.com R G Strong Family Genealogy] - [[User:Rgstrong| Russell Strong]]
Line 292: Line 383:
 
*[http://www.rintoulbowman.com/ Rintoul/Bowman Family] - [[User:Adrintoul|Andrew Rintoul]]
 
*[http://www.rintoulbowman.com/ Rintoul/Bowman Family] - [[User:Adrintoul|Andrew Rintoul]]
 
*[http://racine-ad.fr/TNG/index.php Racine d'Alsace]
 
*[http://racine-ad.fr/TNG/index.php Racine d'Alsace]
 +
*[http://bumbery.com/ Bumbery-Wangler Genealogy Research Project]
 +
*[http://www.colegenealogy.net/ The Cole / Tanner Family Tree]
 +
*[http://kks-fam.net/ KK's Family History]
 +
*[http://www.wfjansen.nl/genealogy/ Voorvaderen en nazaten]
 +
*[https://www.brabantse-genealogie.nl/ Brabantse Genealogie]
 +
*[https://www.lookingbackwards.net/tng/ LookingBackwards - All Our Relations]
 +
*[https://www.kentuckykindred.com/ Kentucky Kindred]
 +
*[https://www.lathro.pe/ Lathrope Family Genealogy]
 +
*[http://cw.ourfamilyroots.org Coon White Family History]
 +
*[https://www.kmtrees.com/ Roots & Relatives Remembered] - [[User:Tngrlkrz|Ron Krzmarzick]]
  
 +
[[Category:Mods for TNG v14]]
 +
[[Category:Mods for TNG v13]]
 +
[[Category:Mods for TNG v12]]
 +
[[Category:Mods for TNG v11]]
 +
[[Category:Mods for TNG v10]]
 
[[Category:Mods for TNG v9]]
 
[[Category:Mods for TNG v9]]
[[Category:Mods for TNG v10]]
+
 
[[Category:Mods for TNG v11]]
+
[[Category:getperson.php mods]]
 +
[[Category:familygroup.php mods]]
 +
[[Category:submit_photo.php mods]]
 +
 
 +
[[Category:Cust text.php English mods]]

Latest revision as of 03:15, 13 April 2024

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: