Hallo,
ich habe eine Newsletter-Anmeldung konfiguriert, die alle Abonnenten in der Tabelle fe_users speichert. Das funktioniert so weit sehr gut, nun möchte ich aber auch direkt einen Usernamen vergeben, der jewesil der Mailadresse entsprechen soll.
Kann mir jemand einen Tipp geben, ob das möglioch ist und falls ja, wie man das umsetzt?
Anbei mein bisheriges TS-Setup.
LG
maxhb
plugin.feadmin {
dmailsubscription {
table=fe_users
templateFile = fileadmin/tmpl/fe_admin_dmailsubscrip.html
pid = 56
// Pag where categories are stored
cObjects.CATLIST.pid = 74
create {
fields = name,first_name,email,module_sys_dmail_html,module_sys_dmail_category,disable,username,password
required = name,first_name,email
defaultValues.module_sys_dmail_html = 1
overrideValues {
disable = 1
}
}
edit {
fields = name,first_name,email,module_sys_dmail_html,module_sys_dmail_category
required = name,first_name,email
}
setfixed=1
setfixed {
approve.hidden >
approve {
_FIELDLIST = uid
disable = 0
}
}
evalErrors {
email.uniqueLocal = <p style="color:red">Apparently you're already registered with this email address!</p><p style="color:red">Use the link below this form to (un)subscribe.</p>
email.email = <p style="color:red">This is not a regular email address!</p>
}
}
}