The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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.
|
#3
|
|||
|
|||
Yes I have tried a search.
Anyone got any ideas how I can do it? |
#4
|
||||
|
||||
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.) |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
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.
|
#7
|
|||
|
|||
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.
|
#8
|
||||
|
||||
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". |
#9
|
|||
|
|||
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.
|
#10
|
|||
|
|||
The code for making the box would be something like:
Code:
<input type="checkbox" name="digest" value="Yes" checked="checked" /> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|