1) pulling FB name as joomla-username
when a user registers via the FB button as full joomla user, id like to pre-populate the username field (just like the email is pre-filled). ive modified line 52 of components/com_jfbconnect/views/loginregister/tmpl/default.php and added "echo $this->fbUserProfile" (enclosed with php tags; cant post php code here) to the value of username:
class="inputbox" id="username"name="username" value=" PHP open tag echo $this->fbUserProfile PHP close tag" size="20" onblur="jfbc.register.checkUsernameAvailable()" />
ive tried it and it seems to work. was there a reason why this field was not pre-filled per default like in the welcome heading and email field?
2) uncheck newsletter checkbox
a) i've created a newsletter checkbox (similar to the radio button on the screenshot
, set it to required, published etc. when i uncheck it during registration, no FB data is imported and account activation is necessary (despite contrary settings).
b) ive also tried to pre-fill a radio button (YES/NO) (setting the default value in mysql to YES), but its not getting pre-filled (the value is prefilled when one clicks the CB registration link).
regarding a) and assuming no value is prefilled with the radio buttons, can you confirm that FB data is imported correctly when no value is selected?