This is a TNG mod directive file %name:Add Attachment Link-$04% %version:V12.0.0.2% # v12.0.0.2 Fixed PHP 8 warnings # v12.0.0.1 Updated French translation. # # v12.0.0.0 Updated to Mod Manager V12 standards. # # v9.0.0.1 Corrected syntax errors in lines 85 and 94. # # v9.0.0.0 Updated to TNG v9+ so that the message will translate when opened from a place search. # # v8.1.0.3 Correctd target locations since $typestr = was already in file and was negating the mod target location and added the text variables needed to translate. # # v8.1.0.2 Added text variables for source and repository and changed size of message to add link and added optional Spanish and Czech translations. # # v8.1.0.1 Corrected misspelling and re-translated # # v8.1.0.0 Original release # %description:This mod will add a link on the Suggest form so that the user can add an attachment to their suggestion.
Spanish and Czech translations provided by Ronald Krzmarzick.
French translations provided by Michel Kirch, 19 November 2019.
DeepL Translator was used to translate text into other languages.
% %wikipage:Add_Attachment_Link% %author:Russ Strong:https://tng.lythgoes.net/wiki/index.php?title=User:Rgstrong% ===== suggest.php location 1 ===== %target:suggest.php% %location:% $page = isset($page) ? strip_tags( $page ) : ""; %end:% %insert:after% $name = isset($name) ? preg_replace("/[^A-Za-z0-9_\-. ]/", '', $name) : ""; //added by Add Attachement Link mod %end:% ===== suggest.php location 2 ===== %target:suggest.php% %location:% if( $enttype == "I" ) { $typestr = "person"; %end:% %replace:% if( $enttype == "I" ) { //$typestr = "person"; $typestr = "{$text['aa_person']}"; //added by Add Attachement Link mod %end:% ===== suggest.php location 3 ===== %location:% elseif( $enttype == "F" ) { $typestr = "family"; %end:% %replace:% elseif( $enttype == "F" ) { //$typestr = "family"; $typestr = "{$text['aa_family']}"; //added by Add Attachement Link mod %end:% ===== suggest.php location 4 ===== %location:% elseif( $enttype == "S" ) { $typestr = "source"; %end:% %replace:% elseif( $enttype == "S" ) { //$typestr = "source"; $typestr = "{$text['aa_source']}"; //added by Add Attachement Link mod %end:% ===== suggest.php location 5 ===== %location:% elseif( $enttype == "R" ) { $typestr = "repo"; %end:% %replace:% elseif( $enttype == "R" ) { //$typestr = "repo"; $typestr = "{$text['aa_repository']}"; //added by Add Attachement Link mod %end:% ===== suggest.php location 6 ===== %location:% elseif( $enttype == "L" ) { $typestr = "place"; %end:% %replace:% elseif( $enttype == "L" ) { //$typestr = "place"; $typestr = "{$text['aa_place']}"; //added by Add Attachement Link mod %end:% ===== suggest.php location 7 ===== %location:% @include($cms['tngpath'] . "TNG_captcha.php"); %end:% %insert:after% // added by Add Attachement Link mod to add attachment messages and link /*$04*/ $headline = strip_tags ($headline); /*$04*/ $name = strip_tags ($name); if( $enttype ) { $newheadline = $headline ." ". $text['mediaattached1']; echo "

{$text['addattachment']} $typestr {$text['addattachment1']}

\n"; echo "{$text['addattachment2']}
\n"; echo "{$text['addattachment3']}
\n"; /*$04*/ $body="{$text['proposed']}: $personID  $name %0A%0a{$text['filename']}: %0A%0a{$text['description']}:%0A%0a{$preemail}"; echo "{$text['attachment']}


\n"; } else { $newheadline = $headline ." ". $text['mediaattached2']; echo "

{$text['addattachment']} {$text['message']} {$text['addattachment1']}

\n"; echo "{$text['addattachment2']}

\n"; echo "{$text['addattachment3']}

\n"; /*$04*/ $body="{$text['proposed']}: $name: %0A%0a{$text['filename']}: %0A%0a{$text['description']}:%0A%0a{$preemail}"; echo "{$text['attachment']}


\n"; } // end of additions by Add Attachement Link mod for message and link %end:% %target:languages/English/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $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 link and description 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 by Add Attachement Link mod %end:% %target:languages/English-UTF8/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $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."; /*$04*/ $text['addattachment2'] = "This will open your email program where you can attach your file and then fill out the description in the body of your message and leave the rest of the form on this page blank.
If not adding an attachment, just enter your suggestion or correction on this page and submit."; /*$04*/ $text['addattachment3'] = ""; $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 by Add Attachement Link mod %end:% %target:@languages/German/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "ACHTUNG! Wenn Sie einen Anhang eines Fotos oder Dokuments für diese "; $text['addattachment1'] = " senden möchten, dann klicken Sie auf den untenstehenden Link."; $text['addattachment2'] = "Dies öffnet sich Ihr E-Mail-Programm, in dem Sie Ihre Datei anhängen und dann die Angaben Link und Beschreibung im Text Ihrer Nachricht ausfüllen können."; $text['addattachment3'] = "Dieses Formular muss nicht ausgefüllt werden."; $text['message'] = "mitteilung"; $text['mediaattached1'] = " mit angehängter Mediendatei"; $text['mediaattached2'] = ": Mediendatei im Anhang"; $text['attachment'] = "Anhang hinzufügen"; $text['aa_person'] = "person"; $text['aa_family'] = "familie"; $text['aa_repository'] = "aufbewahrungsort"; $text['aa_source'] = "quelle"; $text['aa_place'] = "ort"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:% %target:@languages/German-UTF8/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "ACHTUNG! Wenn Sie einen Anhang eines Fotos oder Dokuments für diese "; $text['addattachment1'] = " senden möchten, dann klicken Sie auf den untenstehenden Link."; $text['addattachment2'] = "Dies öffnet sich Ihr E-Mail-Programm, in dem Sie Ihre Datei anhängen und dann die Angaben Link und Beschreibung im Text Ihrer Nachricht ausfüllen können."; $text['addattachment3'] = "Dieses Formular muss nicht ausgefüllt werden."; $text['message'] = "mitteilung"; $text['mediaattached1'] = " mit angehängter Mediendatei"; $text['mediaattached2'] = ": Mediendatei im Anhang"; $text['attachment'] = "Anhang hinzufügen"; $text['aa_person'] = "person"; $text['aa_family'] = "familie"; $text['aa_repository'] = "aufbewahrungsort"; $text['aa_source'] = "quelle"; $text['aa_place'] = "ort"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:% %target:@languages/French/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "ATTENTION ! Si vous souhaitez envoyer une pièce jointe, une photo ou un document pour "; $text['addattachment1'] = " cliquez sur le lien [Ajouter une pièce jointe] ci-dessous."; $text['addattachment2'] = "Cela ouvrira votre programme de messagerie où vous pourrez joindre votre fichier et remplir les champs lien et description dans le corps de votre message."; $text['addattachment3'] = "Il ne sera donc plus nécessaire de remplir le formulaire ci-dessous."; $text['message'] = "ce message,"; $text['mediaattached1'] = " avec fichier multimédia joint;"; $text['mediaattached2'] = ": Dossier de presse joint en pièce jointe"; $text['attachment'] = "Ajouter une pièce jointe"; $text['aa_person'] = "cette personne,"; $text['aa_family'] = "cette famille,"; $text['aa_repository'] = "ce dépôt,"; $text['aa_source'] = "cette source,"; $text['aa_place'] = "ce lieu,"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:% %target:@languages/French-UTF8/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "ATTENTION ! Si vous souhaitez envoyer une pičce jointe, une photo ou un document pour "; $text['addattachment1'] = " cliquez sur le lien [Ajouter une pičce jointe] ci-dessous."; $text['addattachment2'] = "Cela ouvrira votre programme de messagerie oů vous pourrez joindre votre fichier et remplir les champs lien et description dans le corps de votre message."; $text['addattachment3'] = "Il ne sera donc plus nécessaire de remplir le formulaire ci-dessous."; $text['message'] = "ce message,"; $text['mediaattached1'] = " avec fichier multimédia joint;"; $text['mediaattached2'] = ": Dossier de presse joint en pičce jointe"; $text['attachment'] = "Ajouter une pičce jointe"; $text['aa_person'] = "cette personne,"; $text['aa_family'] = "cette famille,"; $text['aa_repository'] = "ce dépôt,"; $text['aa_source'] = "cette source,"; $text['aa_place'] = "ce lieu,"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:% %target:@languages/Dutch/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "AANDACHT! Als u een bijlage van een foto of document voor deze "; $text['addattachment1'] = " wilt meesturen, klik dan op de bijlage link hieronder."; $text['addattachment2'] = "Dit zal uw e-mailprogramma openen waar u uw dossier kunt bijvoegen en vervolgens de link en beschrijving in de hoofdtekst van uw bericht invullen."; $text['addattachment3'] = "U hoeft dit formulier niet in te vullen."; $text['message'] = "bericht"; $text['mediaattached1'] = " met bijgevoegd mediabestand"; $text['mediaattached2'] = ": Bijgevoegd mediabestand"; $text['attachment'] = "Bijlage toevoegen"; $text['aa_person'] = "persoon"; $text['aa_family'] = "gezin"; $text['aa_repository'] = "opslagplaats"; $text['aa_source'] = "bron"; $text['aa_place'] = "plaats"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:% %target:@languages/Dutch-UTF8/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "AANDACHT! Als u een bijlage van een foto of document voor deze "; $text['addattachment1'] = " wilt meesturen, klik dan op de bijlage link hieronder."; $text['addattachment2'] = "Dit zal uw e-mailprogramma openen waar u uw dossier kunt bijvoegen en vervolgens de link en beschrijving in de hoofdtekst van uw bericht invullen."; $text['addattachment3'] = "U hoeft dit formulier niet in te vullen."; $text['message'] = "bericht"; $text['mediaattached1'] = " met bijgevoegd mediabestand"; $text['mediaattached2'] = ": Bijgevoegd mediabestand"; $text['attachment'] = "Bijlage toevoegen"; $text['aa_person'] = "persoon"; $text['aa_family'] = "gezin"; $text['aa_repository'] = "opslagplaats"; $text['aa_source'] = "bron"; $text['aa_place'] = "plaats"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:% %target:@languages/Spanish/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "¡ATENCIÓN! Si desea enviar un archivo adjunto de una foto o documento para este "; $text['addattachment1'] = " luego haga clic en el enlace adjunto a continuación."; $text['addattachment2'] = "Esto abrirà su programa de correo electrónico donde puede adjuntar su archivo y luego llenar el link y description en el cuerpo de tu mensaje."; $text['addattachment3'] = "No es necesario rellenar este formulario."; $text['message'] = "mensaje"; $text['mediaattached1'] = " con archivo multimedia adjunto"; $text['mediaattached2'] = ": Archivo multimedia adjunto"; $text['attachment'] = "Añadir un adjunto"; $text['aa_person'] = "persona"; $text['aa_family'] = "familia"; $text['aa_repository'] = "depósito"; $text['aa_source'] = "fuente"; $text['aa_place'] = "lugar"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:% %target:@languages/Spanish-UTF8/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "ˇATENCIÓN! Si desea enviar un archivo adjunto de una foto o documento para este "; $text['addattachment1'] = " luego haga clic en el enlace adjunto a continuación."; $text['addattachment2'] = "Esto abrirá su programa de correo electrónico donde puede adjuntar su archivo y luego llenar el link y description en el cuerpo de tu mensaje."; $text['addattachment3'] = "No es necesario rellenar este formulario."; $text['message'] = "mensaje"; $text['mediaattached1'] = " con archivo multimedia adjunto"; $text['mediaattached2'] = ": Archivo multimedia adjunto"; $text['attachment'] = "Ańadir un adjunto"; $text['aa_person'] = "persona"; $text['aa_family'] = "familia"; $text['aa_repository'] = "depósito"; $text['aa_source'] = "fuente"; $text['aa_place'] = "lugar"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:% %target:@languages/Czech/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "Chcete-li za tímto ú&269;elem poslat p&345;ílohu fotografie nebo dokumentu "; $text['addattachment1'] = " potom klikn&283;te na odkaz na p&345;ílohu ní&382;e."; $text['addattachment2'] = "Tím se otev&345;e váš e-mailový program, kde m&367;&382;ete p&345;ipojit soubor a poté vyplnit link a description v t&283;le zprávy."; $text['addattachment3'] = "Není t&345;eba vypl&328;ovat tento formulá&345;."; $text['message'] = "zpráva"; $text['mediaattached1'] = " s p&345;ipojeným mediálním souborem"; $text['mediaattached2'] = ": P&345;ipojený mediální soubor"; $text['attachment'] = "P&345;idat p&345;ílohu"; $text['aa_person'] = "osoba"; $text['aa_family'] = "rodina"; $text['aa_repository'] = "repozitá&345;e"; $text['aa_source'] = "zdroj"; $text['aa_place'] = "místo"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:% %target:@languages/Czech-UTF8/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added to open email for attachment to suggest.php by Add Attachement Link mod $text['addattachment'] = "Chcete-li za tímto úcelem poslat prílohu fotografie nebo dokumentu "; $text['addattachment1'] = " potom kliknete na odkaz na prílohu níže."; $text['addattachment2'] = "Tím se otevre váš e-mailový program, kde mužete pripojit soubor a poté vyplnit link a description v tele zprávy."; $text['addattachment3'] = "Není treba vyplnovat tento formulár."; $text['message'] = "zpráva"; $text['mediaattached1'] = " s pripojeným mediálním souborem"; $text['mediaattached2'] = ": Pripojený mediální soubor"; $text['attachment'] = "Pridat prílohu"; $text['aa_person'] = "osoba"; $text['aa_family'] = "rodina"; $text['aa_repository'] = "repozitáre"; $text['aa_source'] = "zdroj"; $text['aa_place'] = "místo"; // added for version 9+ // end attachment messages by Add Attachement Link mod %end:%