Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Benachrichtigung bei Bildupload funktioniert nicht TFU 3.0
https://www.tinywebgallery.com/forum/viewtopic.php?f=7&t=2668
Page 1 of 2

Author:  Travel-Infopoint [ 6. Aug 2010, 09:22 ]
Post subject:  Benachrichtigung bei Bildupload funktioniert nicht TFU 3.0

Hallo,

leider funktioniert die Benachrichtigung per Mail an Admin und Abonnenten bei einem neuen Bildupload nicht.
Stattdessen taucht diese Fehlermeldung in der Debug auf:

ERROR 8 in xxx/xxx/xxx/admin/upload/tfu_helper.php, line 654: Undefined index: NaN

Author:  TinyWebGallery [ 6. Aug 2010, 10:28 ]
Post subject: 

wo soll es denn diese Funktionalität geben?
Im Flash in TWG ist doch dies Benachrichtigung gar nicht konfiguriert...

- Michael

Author:  Travel-Infopoint [ 6. Aug 2010, 10:49 ]
Post subject: 

Sorry, hast Recht. War nur bei Kommentar bzw. Rating. Und das funktioniert.

Trotzdem wäre die Benachrichtigung bei neuem Upload zumindest für den Admin schön. Vielleicht wäre das ja eine Idee für ein nächstes Update.

Author:  TinyWebGallery [ 6. Aug 2010, 11:09 ]
Post subject: 

Trags einfach in die tfu_config.php ein... Notification ist im uploader selbst ja vorhanden.

- Michael

Author:  Travel-Infopoint [ 6. Aug 2010, 11:58 ]
Post subject: 

$upload_notification_email = 'true';
$upload_notification_email_from = 'meineadresse@meinedomain.de'; // the sender of the notification email!
$upload_notification_email_subject = 'Files were uploaded by the TWG Flash Uploader';
$upload_notification_email_text = 'The following files where uploaded by %s: %s'; // Text of the email - the first %s ist the username (if no is set 'not set is used'), the 2nd %s is the list of files that where uploaded!

Hab das mal so in der tfu_config.php geändert.
Ergebnis: nichts.

Was falsch gemacht oder irgendwas vergessen?

Author:  TinyWebGallery [ 6. Aug 2010, 14:41 ]
Post subject: 

$upload_notification_email = "to@email.com";

da musst du die E-Mail eintragen, an wen die E-Mail geschickt werden soll.

- Michael

Author:  Travel-Infopoint [ 6. Aug 2010, 15:16 ]
Post subject: 

Prima, hat geklappt. So langsam gefällt mir die TWG richtig gut :lol: .
Danke.

Author:  TinyWebGallery [ 6. Aug 2010, 16:27 ]
Post subject: 

Die Doku werde ich da noch anpassen - das mit der E-Mail war unklar. Dadurch, dass ich beim JFU alles Parameter komplett über eine hübsche Oberfläche habe war hier nicht klar, was einzutragen ist.

- Michael

Author:  Travel-Infopoint [ 26. Sep 2013, 16:09 ]
Post subject:  Re: Benachrichtigung bei Bildupload funktioniert nicht TFU 2

Mittlerweile verwende ich die Version 3.0, die in TWG 1.9 enthalten ist.
Folgendes...

$upload_notification_email = 'meineempfängeradresse@meinedomain.de';
$upload_notification_email_from = 'meineabsenderadresse@meinedomain.de" rel="nofollow'; // the sender of the notification email!
$upload_notification_email_subject = 'Files were uploaded by the TWG Flash Uploader';
$upload_notification_email_text = 'The following files where uploaded by %s: %s'; // Text of the email - the first %s ist the username (if no is set 'not set is used'), the 2nd %s is the list of files that where uploaded!

... habe ich jetzt in die my_tfu_config.php eingefügt, damit bei einem Update von TWG > 1.9 nicht wieder meine Einstellungen weg sind.
Leider klappt die Benachrichtung über neue hochgeladene Bilder wieder nicht.
Woran liegt's diesmal oder klappt das nur, wenn ich die Änderungen in die tfu_config.php eintrage?

Author:  TinyWebGallery [ 27. Sep 2013, 11:12 ]
Post subject:  Re: Benachrichtigung bei Bildupload funktioniert nicht TFU 2

my_tfu_config.php sollte o.k. sein. schau mal, ob die auch genau so geschrieben ist weil sonst wird die nicht included.


In der version gibt es noch weitere Parameter für die e-mail.

Schau dir mal
$use_smtp = false; // New 2.17 (true,false) false: use build in php mail, true: use smtp. Please provide the settings below.
$smtp_host = "localhost"; // New 2.17 (String) The smtp host. If you want to use ssl please use e.g. ssl://smtp.strato.de. See http://php.net/manual/en/transports.inet.php for available transport protocols.
$smtp_port = 456; // New 2.17 (Number) The smtp port. 456 is the default for ssl!
$smtp_user = "<user>"; // New 2.17 (String) The smtp user name
$smtp_password = "<password>"; // New 2.17 (String) The smtp password

Ist. Da kannst du dann die e-mails auch per smtp schicken.

Gruß, Michael

Author:  Travel-Infopoint [ 27. Sep 2013, 12:22 ]
Post subject:  Re: Benachrichtigung bei Bildupload funktioniert nicht TFU 2

Die Benachrichtigung bei Bildupload hat ja mal bei der Vorgängerversion funktioniert. Deshalb bin ich so verwundert, daß es jetzt mit der neuen Version wieder nicht mehr klappt.
my_tfu_config.php scheint auch included zu sein, da die von mir eingetragene Größenbeschränkung für das Upload übernommen wird.
In der debug Datei steht dafür folgendes: Security tokens did not match. no further actions are allowed.

Author:  TinyWebGallery [ 29. Sep 2013, 19:31 ]
Post subject:  Re: Benachrichtigung bei Bildupload funktioniert nicht TFU 2

Das System drunter unterstützt jetzt eben auch smtp. Schon mal konfiguriert?

Gruß, Michael

Author:  Travel-Infopoint [ 30. Sep 2013, 13:08 ]
Post subject:  Re: Benachrichtigung bei Bildupload funktioniert nicht TFU 2

Ich gehe mal davon aus, daß die Comment-Benachrichtigung auch über php-mail verschickt wird. Die funktioniert auch.
Warum klappt das dann nicht bei den Uploads?
Blick nicht mehr durch...

Author:  TinyWebGallery [ 30. Sep 2013, 17:58 ]
Post subject:  Re: Benachrichtigung bei Bildupload funktioniert nicht TFU 2

Das sind 2 verschiedene Stellen. Der Uploader funktioniert ja komplett unabhängig von der TWG (siehe auch JFUploader, Wordpress Flash Uploader ....).

Aber die Konfiguration ob smtp übernehme ich auch von der config.php.

Aber du hast bei $upload_notification_email keine e-mail gesetzt!

Gruß, Michael

Author:  Travel-Infopoint [ 1. Oct 2013, 13:58 ]
Post subject:  Re: Benachrichtigung bei Bildupload funktioniert nicht TFU 2

TinyWebGallery wrote:
...
Aber du hast bei $upload_notification_email keine e-mail gesetzt!

Gruß, Michael


Klar habe ich die gesetzt:
$upload_notification_email = 'meineempfängeradresse@meinedomain.de';
$upload_notification_email_from = 'meineabsenderadresse@meinedomain.de"; // the sender of the notification email!
$upload_notification_email_subject = 'Files were uploaded by the TWG Flash Uploader';
$upload_notification_email_text = 'The following files where uploaded by %s: %s'; // Text of the email - the first %s ist the username (if no is set 'not set is used'), the 2nd %s is the list of files that where uploaded!

Geht trotzdem nicht!

Page 1 of 2 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/