Zum Inhalt springen

feuser_register - Daten neuer Felder werden nicht in die Datenbank eingetragen

Erstellt am 3. Oktober 2005 · 1 Antwort · letzte Antwort am 3. Oktober 2005

Tags: TCA, Frontend-Benutzer, Frage

Rocco ·

Hallo,

ich habe die extension fr_feuser_register und kickstarter installiert und alles funktioniert auch soweit. Mit kickstarter habe ich das Registrierformular erweitert, die neuen Felder werden angezeigt, die Tabellen sind in der Datenbank eingetragen, allerdings wenn ein User das Formular ausfüllt, dann werden die Informationen von den neu erstellten Feldern nicht in die Datenbank eingetragen.

Folgende Postings konnten mir auch nicht helfen:

#6675
#8354

Ich vermute, dass es an meinem TS-Setup Code liet. Vielleicht könnte jemand einen Blick darüber werfen:

Der Name der Extension ist: tx_importbuster_productdescription

plugin.tx_srfeuserregister_pi1 {
	templateFile = {$plugin.tx_srfeuserregister_pi1.file.templateFile}

	wrap1.wrap = {$plugin.tx_srfeuserregister_pi1.wrap1}
	wrap2.wrap = {$plugin.tx_srfeuserregister_pi1.wrap2}
	wrap3.wrap = {$plugin.tx_srfeuserregister_pi1.wrap3}
	color1.wrap = {$plugin.tx_srfeuserregister_pi1.color1}
	color2.wrap = {$plugin.tx_srfeuserregister_pi1.color2}
	color3.wrap = {$plugin.tx_srfeuserregister_pi1.color3}

	icon_delete = {$plugin.tx_srfeuserregister_pi1.file.icon_delete}

	pid = {$plugin.tx_srfeuserregister_pi1.pid}
	pidTitleOverride = {$plugin.tx_srfeuserregister_pi1.pidTitleOverride}
	registerPID = {$plugin.tx_srfeuserregister_pi1.registerPID}
	editPID = {$plugin.tx_srfeuserregister_pi1.editPID}
	confirmPID = {$plugin.tx_srfeuserregister_pi1.confirmPID}
	confirmType = {$plugin.tx_srfeuserregister_pi1.confirmType}
	loginPID = {$plugin.tx_srfeuserregister_pi1.loginPID}
	linkToPID = {$plugin.tx_srfeuserregister_pi1.linkToPID}
	linkToPIDAddButton = {$plugin.tx_srfeuserregister_pi1.linkToPIDAddButton}
	defaultCODE = {$plugin.tx_srfeuserregister_pi1.defaultCODE}

	formName = {$plugin.tx_srfeuserregister_pi1.formName}
	onChangeCountryAttribute = {$plugin.tx_srfeuserregister_pi1.onChangeCountryAttribute}

	allowMultipleUserGroupSelection = {$plugin.tx_srfeuserregister_pi1.allowMultipleUserGroupSelection}

	# you may modify here the conditions under which an attachment file will be added to the email
	addAttachment =  {$plugin.tx_srfeuserregister_pi1.enableEmailAttachment}
	addAttachment.cmd = setfixed
	addAttachment.sFK = APPROVE
	addAttachment.file = {$plugin.tx_srfeuserregister_pi1.file.attachmentFile}

	create = 1
	create {
		preview = {$plugin.tx_srfeuserregister_pi1.enablePreviewRegister}
		fields = {$plugin.tx_srfeuserregister_pi1.formFields}
		required = {$plugin.tx_srfeuserregister_pi1.requiredFields}
		useEmailAsUsername = {$plugin.tx_srfeuserregister_pi1.useEmailAsUsername}
		allowUserGroupSelection = {$plugin.tx_srfeuserregister_pi1.allowUserGroupSelection}
		defaultValues {
			module_sys_dmail_html = 1
			module_sys_dmail_category = 1
			usergroup = {$plugin.tx_srfeuserregister_pi1.userGroupUponRegistration}
			disable = {$plugin.tx_srfeuserregister_pi1.enableEmailConfirmation}
		}
		overrideValues {
			usergroup = {$plugin.tx_srfeuserregister_pi1.userGroupUponRegistration}
			disable = {$plugin.tx_srfeuserregister_pi1.enableEmailConfirmation}
		}
		evalValues {
			password = twice, atLeast[{$plugin.tx_srfeuserregister_pi1.passwordAtLeast}], atMost[{$plugin.tx_srfeuserregister_pi1.passwordAtMost}]
			username = uniqueLocal, atLeast[{$plugin.tx_srfeuserregister_pi1.usernameAtLeast}], atMost[{$plugin.tx_srfeuserregister_pi1.usernameAtMost}]
			email = email,atMost[255],uniqueLocal
			##email = email,atMost[255]
			gender = 
			name = atMost[{$plugin.tx_srfeuserregister_pi1.nameAtMost}]
			first_name = atMost[50]
			last_name = atMost[50]
			date_of_birth = date
			company = atMost[50]
			city = atMost[40]
			zip = atMost[20]
			telephone = atMost[25]
			fax = atMost[25]
			image = upload[{$plugin.tx_srfeuserregister_pi1.maxImages}]
			title = 
			address = 
			www = wwwURL
			comments = 
			status = 
			module_sys_dmail_category = 
			usergroup =
			tx_importbuster_productdescription =
			
		}
	}

	setfixed = {$plugin.tx_srfeuserregister_pi1.enableEmailConfirmation}
	setfixed.APPROVE {
		_FIELDLIST = uid,pid,usergroup
		usergroup = {$plugin.tx_srfeuserregister_pi1.userGroupAfterConfirmation}
		disable = 0
	}
	enableAutoLoginOnConfirmation = {$plugin.tx_srfeuserregister_pi1.enableAutoLoginOnConfirmation}
	autoLoginRedirect_url = {$plugin.tx_srfeuserregister_pi1.autoLoginRedirect_url}
	setfixed.DELETE {
		_FIELDLIST = uid,pid
	}

	authcodeFields = {$plugin.tx_srfeuserregister_pi1.authcodeFields}
	authcodeFields.codeLength = {$plugin.tx_srfeuserregister_pi1.codeLength}

	invite < .create

	edit < .create
	edit {
		preview = {$plugin.tx_srfeuserregister_pi1.enablePreviewEdit}
		allowUserGroupSelection = {$plugin.tx_srfeuserregister_pi1.allowUserGroupUpdate}
		defaultValues {
			disable = 0
			usergroup >
			module_sys_dmail_html >
			module_sys_dmail_category >
		}
		overrideValues {
			username = 
			usergroup >
			disable = 0
		}
		evalValues {
			username = unsetEmpty
			usergroup = unsetEmpty
			
		}
	}

	infomail = 0

	forceFileDelete = {$plugin.tx_srfeuserregister_pi1.forceFileDelete}

	parseValues {
		username = nospace,trim
		email = lower,nospace,trim
		password = trim,nospace
		name = trim
		first_name = trim
		last_name = trim
		date_of_birth = date
		title = trim
		company = trim
		city = trim
		zip = trim
		image = files
		module_sys_dmail_html = setEmptyIfAbsent
		module_sys_dmail_category = setEmptyIfAbsent
		www = wwwURL
		usergroup = multiple
		tx_importbuster_productdescription = trim
	}

	parseFromDBValues {
		date_of_birth = adodb_date
	}
	parseToDBValues {
		date_of_birth = adodb_date
	}

	email.from = {$plugin.tx_srfeuserregister_pi1.email}
	email.fromName = {$plugin.tx_srfeuserregister_pi1.siteName}
	email.admin = {$plugin.tx_srfeuserregister_pi1.email}
	email.field = email
	email.HTMLMail =  {$plugin.tx_srfeuserregister_pi1.enableHTMLMail}
	email.HTMLMailCSS =  {$plugin.tx_srfeuserregister_pi1.HTMLMailCSS}

	email.CREATE_SAVED = {$plugin.tx_srfeuserregister_pi1.enableEmailOnRegister}
	email.EDIT_SAVED = {$plugin.tx_srfeuserregister_pi1.enableEmailOnUpdate}
	email.DELETE_SAVED =  {$plugin.tx_srfeuserregister_pi1.enableEmailOnDelete}
	email.SETFIXED_APPROVE =  {$plugin.tx_srfeuserregister_pi1.enableEmailOnApprove}
	email.SETFIXED_DELETE =  {$plugin.tx_srfeuserregister_pi1.enableEmailOnRefuse}

	notify.CREATE_SAVED = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnRegister}
	notify.EDIT_SAVED = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnUpdate}
	notify.DELETE_SAVED =  {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnDelete}
	notify.SETFIXED_CREATE = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyConfirmation}
	notify.SETFIXED_INVITE = {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyConfirmation}
	notify.SETFIXED_APPROVE =  {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnApprove}
	notify.SETFIXED_DELETE =  {$plugin.tx_srfeuserregister_pi1.enableAdminNotifyOnRefuse}

  _CSS_DEFAULT_STYLE (
   .tx-srfeuserregister-pi1 p { font-family:Verdana, sans-serif; font-size:12px; line-height:125%; color:#35006d; margin-top:8px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; padding-right:3px; padding-left:3px; text-indent:0px; }
   .tx-srfeuserregister-pi1 a:link { background-color:transparent; color:navy; text-decoration:none; font-weight:bold;}
   .tx-srfeuserregister-pi1 a:visited { background-color:transparent; color:navy; font-weight:bold; text-decoration:none; }
   .tx-srfeuserregister-pi1 a:hover { background-color:transparent; color:#333333; text-decoration:none; }
   .tx-srfeuserregister-pi1 a:active { background-color:transparent; color:navy; font-weight:bold; text-decoration:none; }
   .tx-srfeuserregister-pi1 td { vertical-align:top;  font-family:Verdana, sans-serif; font-size:12px; line-height:125%; color:#35006d; margin-top:8px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; padding-right:3px; padding-left:3px; text-indent:0px;}
   .tx-srfeuserregister-pi1 input { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
   .tx-srfeuserregister-pi1 input[type=radio] { vertical-align: middle; margin-left: 10px; margin-right: 5px; }
   .tx-srfeuserregister-pi1 input.tx-srfeuserregister-pi1-submit { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
   .tx-srfeuserregister-pi1 input.tx-srfeuserregister-pi1-uploader { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
   .tx-srfeuserregister-pi1 input.tx-srfeuserregister-pi1-icon { font-size:10px; font-family:Verdana; background-color:transparent;}
   .tx-srfeuserregister-pi1 select { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
   .tx-srfeuserregister-pi1 textarea { font-size:10px; font-family:Verdana; background-color:#35006d; color:#ffffff; font-weight:bold; }
   .tx-srfeuserregister-pi1 .tx-srfeuserregister-pi1-radio input  { font-size:10px; font-family:Verdana; background-color:transparent; color:#35006d; font-weight:bold; vertical-align:middle; }
   .tx-srfeuserregister-pi1 .tx-srfeuserregister-pi1-checkbox input  { font-size:10px; font-family:Verdana; background-color:transparent; color:#35006d; font-weight:bold; vertical-align:middle; }
   .tx-srfeuserregister-pi1 ul.tx-srfeuserregister-multiple-checkboxes { list-style-type: none; list-style-image: none; list-style-position: inside; margin: 0 0 0 .5em; font-size: 1em; }
   .tx-srfeuserregister-pi1 ul.tx-srfeuserregister-multiple-checkboxes li { margin: 0 0 .4em 0; }
   .tx-srfeuserregister-pi1 ul.tx-srfeuserregister-multiple-checkboxes li label { margin: 0; padding: 0 0 0 .5em; font-size: 1em; }
   .tx-srfeuserregister-pi1 ul.tx-srfeuserregister-multiple-checked-values { list-style-type: square; list-style-image: none; list-style-position: inside; margin: 0; font-size: 1em; }
   .tx-srfeuserregister-pi1 ul.tx-srfeuserregister-multiple-checked-values li { float: left; margin: 0 2em 0 0;}
  )

 _DEFAULT_PI_VARS {
 }

}

Über jede Hilfe und Anregung wäre ich sehr dankbar!

Beste Grüße aus Sydney

Rocco[/b]

Rocco ·

Hier gibt es diese Problem auch noch mal: #8354

Laut der Doku ( http://typo3.org/documentation/document-library/sr_feuser_register/Tutorial_Adding_fie/)

muss ich noch folgendes eintragen:

You may also specify in the TS template Setup some default values and validation rules to be applied by the plugin to the additional fields. (This will require further explanations...)

If there are no validation rules, you should set:

plugin.tx_srfeuserregister_pi1.create.evalValues.myNewFieldName =

Ich glaube, da liegt mein Fehler. Kann mir das jemand zeigen, wie ich es einzutragen habe.

Vielen Dank und Gruss aus Sydney

Rocco