Zum Inhalt springen

Automatische Zuordnung in Empfängerliste über FE Anmeldung mit direct_mail_subscription

Erstellt am 26. Mai 2006 · 3 Antworten · letzte Antwort am 18. Dezember 2006

Tags: Frontend-Benutzer, Direct Mail, Frage

tikemyson ·

Hallo ich verwende Direct-Mail 2.1.1 und direct_mail_subscription.
Im TS kann man bei mit folgender Option

plugin.feadmin.dmailsubscription.pid=XXX

den Sysordner bzw. den Datensatz angeben.
Ich möchte allerdings dass er die über dieses Formular angemeldeten Benutzer automatisch einer Empfängerliste von Direct_Mail zuordnet.
ich benötige keine Gruppen oder Kategorieenzuordnung.

Also. Kurzform: Benutzer meldet nsich auf website an, nach bestätigung wird seine adresse in die Empfängerliste eingetragen.
Danke

lobby ·

Also vielleicht noch ein paar Details:
Ich benutze die Extensions
- direct_mail 2.1.5
- direct_mail_subscription 1.1.0
- sr_email_subscribe 1.1.1
- sr_feuser_register 2.5.1
- df_dmailer 1.1.0
- tt_address 1.0.4

Habs im Tempalte so versucht

<!--###SUB_REQUIRED_FIELD_pid### begin
	This is shown only if the form is submitted and the field is configured to be "required" and at the same time not filled in.
	The syntax is of the comment 'name' is: 	SUB_REQUIRED_FIELD_[enter-the-field-name-here]
-->
	<font color=red><strong>Dieses Feld muss ausgef&uuml;llt werden!</strong></font><BR>
<!--###SUB_REQUIRED_FIELD_pid### end -->
    <input type="radio" name="FE[tt_address][pid]" value="2"> Gruppe 1
    <input type="radio" name="FE[tt_address][pid]" value="17"> Gruppe 2
    <input type="radio" name="FE[tt_address][pid]" value="18"> Gruppe 3

Im Typoscript hab ich ebenfalls pid zu create.fields und create.required hinzugefügt.

lobby ·

Also ich hab das jetzt so gelöst. Ist vielleicht ned ganz so sauber, funktionieren tuts aber.
In der Datei direct_mail_subscription/pi/class.dmailsubscribe.php in der function saveRecord($conf) unter der Zeile $fe = t3lib_div::_GP('FE'); folgendes einfügen:

$pidArray = array('pid'=>$fe[tt_address][pid]);
$GLOBALS['TYPO3_DB']->exec_UPDATEquery('tt_address','uid='.intval($conf['rec']['uid']),$pidArray);