Hi Manfredo,
wie ich sehe, benutzt du für die Newsletteranmeldung ebenfalls die Extension "df_direct_mail_subscription".
Ich habe diese soeben in meine Seite eingebunden, um eine Newsletteranmeldung mit 4 Eingabefeldern (Anrede als Dropdown, Vorname, Nachname & Emailadresse) zu realisieren.
Es scheint alles korrekt installiert und auch per TS korrekt konfiguriert zu sein.
Ich habe für die Empfänger einen Sysordner angelegt, auf den ich in den Constants verweise.
Die Anmeldung funktioniert und die eingegebenen Daten erscheinen dort auch als Liste.
Alle Daten (Vorname, Nachname, Emailadresse & Mailformat) AUSSER die Anrede (gender).
Ich frage mich, warum diese Information entweder nicht ausgelesen oder nicht in die Datenbank gespeichert werden.
Hast du eine Idee dazu? Bin schon langsam am verzweifeln ;-)
Dank dir schon mal für deine Antwort. Natürlich freue ich mich auch über jeden Hinweis von einem anderen Leser.
LG, Kai
TS Constants
plugin.feadmin.dmailsubscription {
# cat=df_dmailsubscription/file; type=file[html,htm,tmpl,txt]; label= Template File: HTML-template file
file.templateFile = fileadmin/templates/subscription_de.html
# cat=df_dmailsubscription//; type=string; label= Administration email: Enter the administration email address here. This email address will be the sender email and also recieve administration notes.
email = kai@xxxxxx.com
# cat=df_dmailsubscription//; type=string; label= Administration name: Enter the administration name here. If set, this will be used as the email address name in the mails sent.
emailName = XXXXXX
# cat=df_dmailsubscription//; type=int+; label= Record PID: If the records edited/created is located in another page than the current, enter the PID of that page here.
pid = 4
}
TS Setup
includeLibs.directmailsubscribe = EXT:df_direct_mail_subscription/pi1/class.dmailsubscribe.php
plugin.feadmin.dmailsubscription >
plugin.feadmin.dmailsubscription = USER_INT
plugin.feadmin.dmailsubscription {
userFunc = user_feAdmin->init
includeLibs = media/scripts/fe_adminLib.inc
templateFile ={$plugin.feadmin.dmailsubscription.file.templateFile}
cObjects {
CATLIST = USER
CATLIST.userFunc = user_dmailsubscribe->makeCheckboxes
CATLIST {
templateFile = {$plugin.feadmin.dmailsubscription.file.templateFile}
pid = {$plugin.feadmin.dmailsubscription.pid}
hideNonTranslatedCategories = 0
}
}
create.userFunc_afterSave = user_dmailsubscribe->saveRecord
edit.userFunc_afterSave = user_dmailsubscribe->saveRecord
// Tables + Commands
table = tt_address
// Info-mail setup
setfixed=1
setfixed.approve {
_FIELDLIST = uid
hidden = 0
}
setfixed.DELETE = 1
setfixed.DELETE._FIELDLIST = uid
delete = 1
delete.userFunc_afterSave = user_dmailsubscribe->saveRecord
delete.userFunc = user_dmailsubscribe->saveRecord
defaultCmd=create
// Info-mail setup
infomail = 1
infomail.default {
label = FORGOTPASSWORD
}
// Edit setup
edit = 1
edit.fields = tx_dfdirectmailsubscription_gender, first_name, last_name, email, module_sys_dmail_category, module_sys_dmail_html, hidden
edit.required = tx_dfdirectmailsubscription_gender, first_name, last_name, email
edit.evalValues {
email = uniqueLocal, email
}
// Create setup
create = 1
create.preview = 0
create.fields = tx_dfdirectmailsubscription_gender, first_name, last_name, email, module_sys_dmail_category, module_sys_dmail_html, hidden
create.required = tx_dfdirectmailsubscription_gender, first_name, last_name, email
create.noSpecialLoginForm = 1
# Initially hide the user until he approves!
create.overrideValues.hidden = 1
create.evalValues {
email = uniqueLocal, email
}
authcodeFields = uid
authcodeFields.addKey =
authcodeFields.addDate =
evalErrors.email.uniqueLocal = Apparently you're already registered with this email address!
evalErrors.email.email = This is not a proper email address!
parseValues.module_sys_dmail_category = checkArray,setEmptyIfAbsent
parseValues.module_sys_dmail_html = setEmptyIfAbsent
pid = {$plugin.feadmin.dmailsubscription.pid}
email.from = {$plugin.feadmin.dmailsubscription.email}
email.fromName = {$plugin.feadmin.dmailsubscription.emailName}
email.admin = {$plugin.feadmin.dmailsubscription.email}
email.field = email
}
Auszug HTML Extensiontemplate (Dateneingabe)
<!-- ###TEMPLATE_CREATE### begin
Form for creation of a new newsletter recipient
-->
<div class="element newsletterform">
<form name="tt_address_form" method="post" action="###FORM_URL###" id="newsletterform">
###GW2B###
<span class="label select">
<label for="sanrede">Anrede:</label>
</span>
<select id="sanrede" name="FE[tt_address][tx_dfdirectmailsubscription_gender]" class="input select">
<option value="0"></option>
<option value="1">Herr</option>
<option value="2">Frau</option>
</select>
<br />
<span class="label text">
<label for="firstname">Vorname:</label>
</span>
<input type="text" name="FE[tt_address][first_name]" id="firstname" size="20" value="" class="input text" />
<br />
<span class="label text">
<label for="firstname">Nachname:</label>
</span>
<input type="text" name="FE[tt_address][last_name]" id="lastname" size="20" value="" class="input text" />
<br />
<!--###SUB_REQUIRED_FIELD_email### begin --><div class="required">Angabe erforderlich!</div><!--###SUB_REQUIRED_FIELD_email### end-->
<span class="label text">
<label for="lemail">Email: *</label>
</span>
<input type="text" name="FE[tt_address][email]" id="lemail" size="20" value="" class="input text" />
<br />
<span class="label text">
Newsletter als
</span>
<div class="padding">
<input name="FE[tt_address][module_sys_dmail_html]" id="nurhtml" type="radio" value="1" checked="checked" class="input radio" />
<span class="label radio">
<label for="nurhtml">HTML (empfohlen)</label>
</span>
<span class="clear"> </span>
</div>
<div class="padding">
<input name="FE[tt_address][module_sys_dmail_html]" id="nurtext" type="radio" value="0" class="input radio" />
<span class="label radio">
<label for="nurtext">Nur Text</label>
</span>
<span class="clear"> </span>
</div>
<input type="submit" name="b-anmelden" value="Anmelden" class="input submit" />
###HIDDENFIELDS###
</form>
</div>
<br />
<!-- <a href="###FORM_URL###&cmd=infomail&backURL=###FORM_URL_ENC###">» Profil bearbeiten</a><br /> -->
###GW2E###
<!-- ###TEMPLATE_CREATE### end-->