Quote:
Originally Posted by doberlec
Dude, $bbuserinfo[field8] !='YES' doesn't make any sense. Why should the Javascript be included when the Users have set the Snow-Mode to NO?!
|
whoops- sorry- that's what I get for posting late at night... the correct code is this:
put this at the bottom of the header template:
Code:
<if condition="$bbuserinfo[field8]=='YES'">
<script type="text/javascript" src=" /forum/script/snowstorm.js"></script>
</if>
In your navbar template find:
Code:
<if condition="$show['member']">
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
add below:
Code:
<if condition="$bbuserinfo[field8]=='YES'">
<a href="javascript:snowStorm.randomizeWind()">Change Wind</a> <a href="javascript:snowStorm.stop()">Stop snowing</a><br /><br />
</if>
naturally substitute your proper profile field ID numbers as needed.