Of course
Before making the template edits, do theese:
1) AdminCP -> User Profile Fields -> Add New User Profile Field
2) Choose "Single Selection Radio Buttons"
3) Fill in all required fields and insert two values in the Options Box: (seperated with a return)
YES
NO
4) Set "Default" to YES
5) Hit "Save" and memorize the name of your field, in my case it's "field8".
6) Now, instead of adding
Code:
<!-- Start vBGuides Season -->
<if condition="$vboptions[guidesvbs_onoff] == 1">
<if condition="$vboptions[guidesvbs_area] == 0">
<script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
</if></if>
<!-- End vBGuides Season -->
at the top of the header, add this:
Code:
<!-- Start vBGuides Season -->
<if condition="$bbuserinfo['fieldX']=='YES'">
<if condition="$vboptions[guidesvbs_onoff] == 1">
<if condition="$vboptions[guidesvbs_area] == 0">
<script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
</if></if>
</if>
<!-- End vBGuides Season -->
7)Also, instead of adding
Code:
<!-- Start vBGuides Season -->
<if condition="$vboptions[guidesvbs_onoff] == 1">
<if condition="$vboptions[guidesvbs_area] == 1">
<script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
</if></if>
<!-- End vBGuides Season -->
in forumhome, add this:
Code:
<!-- Start vBGuides Season -->
<if condition="$bbuserinfo['fieldX']=='YES'">
<if condition="$vboptions[guidesvbs_onoff] == 1">
<if condition="$vboptions[guidesvbs_area] == 1">
<script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
</if></if>
</if>
<!-- End vBGuides Season -->
You should replace the fieldX to the one specified on step 5
Known bug: If i set from acp the default to YES, it does not show the snowflakes, but my users, must set it to yes from user cp, and save, to see them. Any ideas to make it working for all users, without having to enable it for the first time?