![]() |
An on/off switch for a variable in a template
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? |
Create a custom userfield in the ACP and use that in your template.
|
Can you tell me how the statement around the var would look? Thank you.
|
Code:
<if condition="$bbuserinfo['fieldX']"> |
Thanks, works!
|
Just one more question: how can I make it checked by default?
|
There should be a setting when creating the field (I think).
|
Hm I can't find it...
|
All times are GMT. The time now is 03:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|