Sr feuser register
From TYPO3Wiki
Front End User Registration (sr_feuser_register) (contact: franzholz)
It enables (frontend) users to register themselves. It is very feature rich extension including things like confirmation emails, registration forms, invitation letters and more.
Contents |
Dependency
The following TER-dependency must be added to typo3conf/ext/sr_feuser_register in the file ext_emconf.php, then upload your extension, if you're the extension-owner.
- ...
See also
Tips and Tricks
Preconfiguration of Country and Language
Put this to your TS Setup field (e.g. in your root page template):
plugin.tx_srfeuserregister_pi1.create.defaultValues.static_info_country = DEU plugin.tx_srfeuserregister_pi1.create.defaultValues.language = DE plugin.tx_srfeuserregister_pi1.create.defaultValues.zone = BAY
Moreover add this in TS Setup to limit to european countrys in the country dropdown (!!! e.g. Switzerland will be skiped out !!!):
plugin.tx_srfeuserregister_pi1.where.static_countries = cn_eu_member = 1
Unfortunately the "old" way to write it like plugin.tx_staticinfotables_pi1.countryCode = DEU does not seems to work anymore.
Correction to use module_sys_dmail_category as a required field
Apparently Sr feuser register (v.2.5.15) does not check for required field module_sys_dmail_category. This patch corrects this problem.
Index: model/class.tx_srfeuserregister_data.php
===================================================================
--- model/class.tx_srfeuserregister_data.php (revision 14)
+++ model/class.tx_srfeuserregister_data.php (working copy)
@@ -311,7 +311,7 @@
* @return void on return, the ControlData failure will contain the list of fields which were not ok
*/
function evalValues ($theTable, &$dataArray, &$origArray, &$markContentArray, $cmdKey, $requiredArray) {
-
+
$displayFieldArray = t3lib_div::trimExplode(',', $this->conf[$cmdKey.'.']['fields'], 1);
if($this->controlData->useCaptcha()) {
$displayFieldArray[] = 'captcha_response';
@@ -395,8 +395,9 @@
$this->failureMsg[$theField][] = $this->getFailureText($theField, $theCmd, 'evalErrors_valid_email');
}
break;
- case 'required':
- if (!trim($dataArray[$theField])) {
+ case 'required':
+
+ if ((!is_array($dataArray[$theField]) && !trim($dataArray[$theField])) || (is_array($dataArray[$theField]) && !sizeof($dataArray[$theField]))) {
$failureArr[] = $theField;
$this->inError[$theField] = TRUE;
$this->failureMsg[$theField][] = $this->getFailureText($theField, $theCmd, 'evalErrors_required');
