(03-05-2012 05:34 AM)RateU Wrote: Something like that.
For a disabled input fields, if you disable directly the original input, maybe the value of the input fields won't be saved (personally, I don't really like using readonly attribute for a checkboxes). That's why I use an hidden input fields, combined with a dummy input fields.
Something like this (member_register template):
Then, set the value in $user['options'] array in member.php (if you're not sure whether a user can change the value of the hidden input fields or not):
Thank you for the info !
Display is fine now (scrnshot attached), but when go to user profile, the resulting default options are not as set (scrnshot attached).
Modified code...
...but not sure what it is actually doing for setting options, but have removed the Edit Options button from the UCP (scrnshot attached), so assume that should eliminate the ability to change options ?
Any suggestions on where should look to set the actual options so they take effect at the profile display ?
Would like user to accept messages and have email notice, but not be able to be emailed directly by other users.
Ps:
Took out Email: field at member_profile, so not displayed, now how to get PM link to display ?
'member_profile' for PM looks like...
PM is showing up for one user, source view...
but not in another, source view...
...looks like some 'lang' missing somehow ?
Admin looks at account settings, shows one has boxes checked and other does not.
Isnt the (add "checked=\"checked\""; supposed to take care of that ?
Ps2:
Have tried three more test registrations, and all are per the pre-checked settings.
Now wondering how one got thru without.
Deleted and re-registered subject user and still not showing PM... wonder what it is about the one user that goes against the preset options ?
Guess just need to wait and see... few more tests ?