![]() |
Simple Conditional
Well, I asked for vB support, but didn't work out. Can you guys help?
Quote:
|
$post isn't available in the header...
Is field7 what the current user selected? If so, try PHP Code:
|
Thanks man. =) Here is the full code for anyone who wants it (may release a product later). It installs a nice little snow effect on your board, I'm sure you can figure out the check box as a custom profile field your self.
<if condition="$vbulletin->userinfo['field7'] == 'Yes'"> <!-- Snow Effect(Small SnowFlakes) by Blackpheonix ? to Dynamic Drive --> <script type="text/javascript" src="/board/images/misc/snow.js"> </script> <!-- /Snow Effect(Small SnowFlakes) by Blackpheonix ? to Dynamic Drive --> <else /> <!-- no snow decoration --> </if> Use with this hack. :nervous: |
Aren't yes/no fields boolean?
|
Quote:
|
All times are GMT. The time now is 08:03 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:
|