Snow

AR Husker Fan

Team HuskerBoard
The script for the snow effect was:

<script src='/uploads/jquery-2.1.0.js'></script>
<script src='/uploads/snowfall.jquery.min.js'></script>
<script>
$( document ).ready(function() {
$(document).snowfall({shadow : true, round : true, minSize: 5, maxSize:8});
});
</script>

It's placed immediately before the </head> tag in globalTemplate. The conflict was with this bit of code that's already in the template:

<!--custom js-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="zoogies/js/jquery-1.11.0.min.js"><\/script>')</script>
<script src="zoogies/js/hb-mbb.js"></script>

{parse block="lib-js"}

As you can see, that code already has a reference to jquery.min.js. One of the problems I saw was trying to use the "Mark All Read" link - it would return a "You do not have permission to use this function" message. Another problem I saw was that the Topic Moderation options were displayed on every post - don't know if that was something only we could see or everyone.

As I said, the script worked fine - there were snowflakes falling. But that conflict was causing issues (and there may have been more that I didn't run across).

 
As you can see, that code already has a reference to jquery.min.js. One of the problems I saw was trying to use the "Mark All Read" link - it would return a "You do not have permission to use this function" message. Another problem I saw was that the Topic Moderation options were displayed on every post - don't know if that was something only we could see or everyone.

As I said, the script worked fine - there were snowflakes falling. But that conflict was causing issues (and there may have been more that I didn't run across).
Yeah, that's happened to me a couple of times in the past few months. There have been times when I couldn't recall whether a feature of HB that I see as a mod is, or isn't, available to all users.
default_dunno.gif
:

 
Back
Top