The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello, I've got a variable in the forumhome template that I want users to be able to switch on/off in the usercp.
How can I do this? |
|
#2
|
||||
|
||||
|
Create a custom userfield in the ACP and use that in your template.
|
|
#3
|
|||
|
|||
|
Can you tell me how the statement around the var would look? Thank you.
|
|
#4
|
||||
|
||||
|
Code:
<if condition="$bbuserinfo['fieldX']"> |
|
#5
|
|||
|
|||
|
Thanks, works!
|
|
#6
|
|||
|
|||
|
Just one more question: how can I make it checked by default?
|
|
#7
|
||||
|
||||
|
There should be a setting when creating the field (I think).
|
|
#8
|
|||
|
|||
|
Hm I can't find it...
|
![]() |
|
|