Checkboxes in User
Posted: 08 July 2008 06:02 AM   [ Ignore ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  133
Joined  2008-03-04

In EE you can customize elements that appear on the member/register page. I am using User for a much nicer looking Registration page (thank you Solspace).

My question is, can I create custom elements that can be selected by means of a checkbox that would be included in this section? This way a person could register and identify their preference for say news letters or being included in a particular group etc.

Hoping you have encouraging news.

Thanks,

Forrest

Profile
 
 
Posted: 08 July 2008 08:57 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Are you looking for a manual way of recording these options?
Or are you talking about actually adjusting email notifications, etc…

Manually, recording data in a custom field checkbox on registration would look like this: smile

<input type="checkbox" name="send_me_spam" /> YesPlease send me Spam!

 Signature 
Profile
 
 
Posted: 08 July 2008 09:14 AM   [ Ignore ]   [ # 2 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  133
Joined  2008-03-04

Hi and thanks for responding.

I am glad to know that there are options. I tried your sample and while it shows up fine on the registration page, it does not transmit with the registration email notification.

Is there something else that needs to be included for it to “show up”. Also, how about on the actual member profile?

Thanks in advance to the help.

Forrest

Profile
 
 
Posted: 08 July 2008 10:51 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Forrest,

That example was assuming you were going for something manual wink

I’m a little confused as to exactly what you’re after rasberry
If you’re looking for there to be a way for the User to adjust their email notification preferences, this can be done:
User:Edit Documentation (accept_admin_email, accept_user_email, etc)

If you’re just after something manual, you will need to create a custom member field (name it what you please - in this case: send_me_spam)
If you’d like that data to show up in their profile (User:Stats), you can pull it by specifying your custom member field: {send_me_spam}

You cannot yet control the registration email notification though smile

 Signature 
Profile
 
 
Posted: 08 July 2008 11:26 AM   [ Ignore ]   [ # 4 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  133
Joined  2008-03-04

Thanks for the clarification.

One follow up. When I create a custom member field I have the options of text input, text area and drop down list. I am not partial to any of these, but what I need is to have a checkbox on the registration page. So with our classic example here send_me_spam, would I make that as a text input or drop down list item, so that when the checkbox is selected it will carry over to the member info area?

Thanks,

Forrest

Profile
 
 
Posted: 08 July 2008 11:30 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Correct.... either of those options dont really matter.
Because your options are text input and textarea, it doesn’t mean that’s the only form field types you can use on the front end… it’s moreso just how it will display/store the data in the CP/database.

I’d go text input for checkboxes smile

 Signature 
Profile