Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Aug 2012, 05:38
licensinglinks licensinglinks is offline
 
Join Date: Sep 2011
Pre-checked custom profile field

I want to set up a checkbox custom profile field "Receive weekly digest" (like the default "Receive Email from Administrators" field). I want this to display at registration and to be pre-checked.

Is this possible?
Reply With Quote
  #2  
Old 11 Aug 2012, 15:53
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Is it possible? Of course - anything is possible if you code it. If you are wondering if it already exists as a modification, then I would ask if you have tried a search yet? I do not know of a mod for this offhand.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 16 Aug 2012, 21:11
licensinglinks licensinglinks is offline
 
Join Date: Sep 2011
Yes I have tried a search.

Anyone got any ideas how I can do it?
Reply With Quote
  #4  
Old 16 Aug 2012, 21:16
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Create a User Profile Field, set it up to show at registration, and set the default for it to be checked. https://www.vbulletin.com/docs/html/profile

(Sorry, at first I thought you were asking about something else.)
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 16 Aug 2012, 21:29
licensinglinks licensinglinks is offline
 
Join Date: Sep 2011
Originally Posted by Lynne View Post
Create a User Profile Field, set it up to show at registration, and set the default for it to be checked. https://www.vbulletin.com/docs/html/profile
You can't do that with checkboxes!
Reply With Quote
  #6  
Old 16 Aug 2012, 21:59
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Why not use a single-selection radio button with Yes/No as the answer and preset it to Yes? Your other option is for you to custom code it.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 18 Aug 2012, 21:11
licensinglinks licensinglinks is offline
 
Join Date: Sep 2011
Originally Posted by Lynne View Post
Why not use a single-selection radio button with Yes/No as the answer and preset it to Yes? Your other option is for you to custom code it.
Yes I could do this, but I want to know if I can do it with a pre-checked checkbox instead. That solution would be much neater.
Reply With Quote
  #8  
Old 19 Aug 2012, 00:47
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You cannot do it using the user profile fields. You would need to custom code it if you want it prechecked.

Another option is do do the opposite - instead of "Check if you wish to receive a weekly site newsletter", go with "Check if you do NOT wish to receive the weekly site newsletter".
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #9  
Old 19 Aug 2012, 08:54
licensinglinks licensinglinks is offline
 
Join Date: Sep 2011
Originally Posted by Lynne View Post
You would need to custom code it if you want it prechecked.
That's what I want to know. Can anyone explain how to do it? I'm not looking for alternative ideas - I'm aware of the other options.
Reply With Quote
  #10  
Old 19 Aug 2012, 12:06
Black Snow Black Snow is offline
 
Join Date: Jul 2012
The code for making the box would be something like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

As for implementing it into vB, that's another story.
Reply With Quote
  #11  
Old 19 Aug 2012, 17:28
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by Black Snow View Post
As for implementing it into vB, that's another story.
Yep, it's going to be quite a bit of effort. If you don't know how to code, then I suggest your post in the Paid Requests forum to hire someone. You need to add the item to all the right templates, add a database field, and modify all forms that deal with the field.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:37.

Layout Options | Width: Wide Color: