![]() |
Implementing JS script within forum? (Snow Effect)
Hey, everyone! I'm just wondering what the best way to implement as JS script I have would be. The JS itself is currently being hosted off the FTP titled "snow.js", and I've tried sticking the following in many different places (footer and header included);
< script src="./snow.js" >< /script > For whatever reason, I can't seem to get it to load. Also, something to sort of keep in mind is I have the following assigned as a div: Code:
<div id="particles-js"></div> Code:
#particles-js { https://www.os-scape.com/ Could anybody help? |
Try the following in your footer template:
Locate: PHP Code:
PHP Code:
|
According to the developer console errors, it happens because it can't find a div with classname "particles-js-canvas-el". This might happen because of conflicting JavaScript files. For example vBulletin's JavaScript files may not work properly with the snow.js JavaScript.
|
Quote:
Ended up giving that a shot to no avail! I would totally consider making it a plugin, however that's a bit beyond me and not actually too necessary as we only use the same them (yeaaah, for now even for mobile version). Thank you though! Quote:
I think you might be right! After trying Mark's idea above, I'm all out of options. I think I might play around with it for a bit longer and see if I can't figure something else out, or start a hunt for a predesigned snow plugin. Thank you! |
Yes, if you only have one active style, then the template hack is fine, although with a plugin, you can turn it on and off without touching your template.
If you want, send the login credentials to an admin account to your site via PM to me, and I will be glad to take a look and see if I can get it to work. :) |
Quote:
I sent a PM containing as much information as I thought you may have needed. As mentioned within, if you need anything else please let me know and I'd be more than happy to provide it! Thanks! |
i have this code below
PHP Code:
|
Quote:
Inked_Mono, if you don't like this particular effect, simply delete the plugin titled "Add Snowstorm" and delete the file "clientscript/snowstorm.js" from your server. :) |
Quote:
Cheers! |
All times are GMT. The time now is 02:41 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:
|