The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Checkbox enable question
Hi there,
I want that people can enable the top10 in there UserCP with a checkbox but how will look the <if condition="$bbuserinfo['fieldX']"> to enable this for all my members? Thanks... |
#2
|
||||
|
||||
What is "top10"?
|
#3
|
|||
|
|||
the 10 hottest threads like the topxstats, some people on my forum like it and some dont, sow i want that my members can enable and disable it with a checkbox
|
#4
|
|||
|
|||
If I understand your question correctly, you could add a radio profile field and then reference that in a template conditional to prevent the stats from being displayed. For instance, if field5 was "Display Top 10?" with the possible answers: "Yes" or "No":
HTML Code:
<if condition="$userinfo[field5]=='Yes'">...TOP10 STUFF HERE...</if> |
#5
|
|||
|
|||
Thanks Farcaster,
but is this also possible with a checkbox? otherwise a radio profile will do Kind regards Stickers |
#6
|
|||
|
|||
A single checkbox will do exactly the same as a Yes/No radio button. But I don't think there is an option to use a single checkbox option in vBulletin custom fields.
|
#7
|
|||
|
|||
You could use the multi-select checkbox and only provide one option. If the checkbox is selected, it is a bitwise field, so it will be set to 1 in this case. Otherwise it will be blank, so you could simply rewrite that condition to:
HTML Code:
<if condition="$bbuserinfo[field5]">...TOP10 STUFF HERE...</if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|