SelfRegistration: omissions of controltypes
Posted: Mon Jun 29, 2009 9:50 am
Hello all,
First of all Hail & Praise to the developers of this fantastic opensource initiative. I am currently investigating the applicability of several CMS solutions, and CMSms is currently my favorite, due to its ease of use and code setup.
One of the functionalities i am trying to implement is user registration via the SelfRegistration module. This all works as advertised, except when i tried to extend the user properties to include a Radiobutton group, this didn't display. Diggin through the code revealed that there seem to be only 5 controloptions for the function "_UserDisplayRegistrationForm1" in the SelfRegistration "funtions.php" file.
Adding this controloption myself, i get an additional oddity in the CGUserDirectory module (and probably elsewhere) because the userproperties are displayed using a test like this:
However, if the radiobutton represents a value of 0 (decimal 0), then apparently the above if-statement evaluates to false, and subsequently the property and data is not displayed. The above mentioned userproperty code appears in different places, so I'm not sure where to file this as a bug report. In addition, it may be that this problem occurs in a more general sense, so i thought i mention it here in the forum. My apologies if this is not the correct place for it.
But again, other then some minor issues, i am having a ball, and think CMSms will most likely become my CMS of choice.
First of all Hail & Praise to the developers of this fantastic opensource initiative. I am currently investigating the applicability of several CMS solutions, and CMSms is currently my favorite, due to its ease of use and code setup.
One of the functionalities i am trying to implement is user registration via the SelfRegistration module. This all works as advertised, except when i tried to extend the user properties to include a Radiobutton group, this didn't display. Diggin through the code revealed that there seem to be only 5 controloptions for the function "_UserDisplayRegistrationForm1" in the SelfRegistration "funtions.php" file.
Adding this controloption myself, i get an additional oddity in the CGUserDirectory module (and probably elsewhere) because the userproperties are displayed using a test like this:
Code: Select all
if( !empty($tmp[$j]['data']) && $tmp[$j]['data'] != '<notset>' )
But again, other then some minor issues, i am having a ball, and think CMSms will most likely become my CMS of choice.