The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 { position: absolute; width: 100%; height: 780px; left: 0; top: 0; opacity: 0.9; } https://www.os-scape.com/ Could anybody help? |
#2
|
||||
|
||||
Try the following in your footer template:
Locate: PHP Code:
PHP Code:
|
Благодарность от: | ||
Inked_Mono |
#3
|
|||
|
|||
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.
|
Благодарность от: | ||
Inked_Mono |
#4
|
|||
|
|||
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! |
#5
|
||||
|
||||
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. |
#6
|
|||
|
|||
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! |
#7
|
|||
|
|||
i have this code below
PHP Code:
|
2 благодарности(ей) от: | ||
Inked_Mono, MarkFL |
#8
|
||||
|
||||
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. |
Благодарность от: | ||
the one |
#9
|
|||
|
|||
Quote:
Cheers! |
Благодарность от: | ||
MarkFL |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|