MyBB Community Forums

Full Version: external js not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using Foundation to build my forum's layout, and the scripts that need to be installed won't work. I've put them in the headerinclude linking to the CDNs, I've created my own .js files in the /jscripts directory and linked to that. I've put the links directly into the header template... nothing works. I'm not sure why. This isn't the first time I've had issues linking to an external script or stylesheet. 

My forum is here. The specific script that won't work is the one used for the topnav that allows the dropdown content to work on hover. 

The specific links I've used are: 
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/foundation.min.js"></script>
 
and
<script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/foundation.min.js"></script>
this all works perfectly on my development site. myBB for some reason doesn't seem to like it when I link to external scripts or styles. Am I missing something obvious?

edit: ignore the wonkyness of the layout, I'm aware that the forum isn't actually inside of the content areas, yet. xD
Do you have a test account? I assume that the default layout isn't the one you're changing.
oh! nope. You should be able to use the dropdown at the bottom of the forum to go to the Foundation theme.

I made a Test account just in case, though:
username: Tester
pw: testing123

Ah!! It's working! It was a simple bit of code to initialize the script that I had left out. -headdesk-

thank you for stopping by to help out, anyway! Sorry to waste your time. xD