Changing Registration page checkbox options
Permalink
The current display on the Registration single page gives two checkbox options:
I would like to receive private messages.
[] Yes
Send me email notifications when I receive a private message.
[] Yes
Having the label and then 'Yes' below it is redundant. I wanted to replace Yes with those labels. These are currently rendered by
I changed it to
Will this still function in the same way? I couldn't find a reference anywhere except from a response from jordanlev which was 2 years old I think and didn't work for me. The reason I have the p wrapper and the label after the element is for some custom form styling and don't have anything to do with it.
Edit: So far the only difference I can tell is if I were to add more user attributes on registration in the dashboard, I'd have to manually add them in.
I would like to receive private messages.
[] Yes
Send me email notifications when I receive a private message.
[] Yes
Having the label and then 'Yes' below it is redundant. I wanted to replace Yes with those labels. These are currently rendered by
foreach($attribs as $ak) { echo $af->display($ak, $ak->isAttributeKeyRequiredOnRegister()); }
I changed it to
<div class="input"><!-- This replaces the options displayed by the foreach loop ^ --> <ul class="inputs-list"> <li><p><input type="checkbox" class="ccm-input-checkbox" name="akID[9][value]" id="akID[9][value]" value="1" checked="checked" /><label>I would like to receive private messages.</label><p></li> <li><p><input type="checkbox" class="ccm-input-checkbox" name="akID[10][value]" id="akID[10][value]" value="1" checked="checked" /><label>Send me email notifications when I receive a private message.</label><p></li> </ul> </div>
Will this still function in the same way? I couldn't find a reference anywhere except from a response from jordanlev which was 2 years old I think and didn't work for me. The reason I have the p wrapper and the label after the element is for some custom form styling and don't have anything to do with it.
Edit: So far the only difference I can tell is if I were to add more user attributes on registration in the dashboard, I'd have to manually add them in.
![timtorres](/files/avatars/72442.jpg)
Bumpppppppppppppppp
I assume that you've copied and thus overridden /concrete/single_pages/register.php to /single_pages/register.php?
If so, then just try it - it'll either work or it won't, and if it doesn't, remove single_pages/register.php
If so, then just try it - it'll either work or it won't, and if it doesn't, remove single_pages/register.php
Well yes, but like I said, I just copied the code from the rendered html page and stuck it in there. I don't know if it's submitting properly or is there is a different loop I can use that will use the modified checkboxes I made while adding any more options automatically when I add them to the dashboard
how did it end up? Disappointed to see this is apparently the only time this was asked and it never got an answer.
Oh gosh this was such a long time ago. The checkbox elements rendered fine and so I was able to apply my styling, but I don't remember if they submitted properly. It was really hacky and I have no doubts that I was going about it the wrong way.
Anyway, c5 is (was at the time I used it) full of random dumb things like that and I haven't used it since I abandoned that project. I do think it does a lot of things right and has a ton of potential
Anyway, c5 is (was at the time I used it) full of random dumb things like that and I haven't used it since I abandoned that project. I do think it does a lot of things right and has a ton of potential