XF 2.1 Widget | jQuery not loading?

flogisch

Member
Hello guys!

I've tried to add a Widget to my page. I've added the full code to widget. However,
the script isn't loading somehow. Then I've added the <script> lines into the PAGE_CONTAINER.
This isn't working as well. Does anyone have an idea on how to fix that? :P
(The url's to the script files are working fine, no typo)

Hope someone can help me out 🙏
 

Attachments

  • reIw6htQuVyio_FnK9y8d+f6U52zx$ik7Dg§0a6E3B,oY8;E4TYv(-5e18X726s9Rc3.L72H42UZa1uGJ=q5Pl3W7M#A0...webp
    reIw6htQuVyio_FnK9y8d+f6U52zx$ik7Dg§0a6E3B,oY8;E4TYv(-5e18X726s9Rc3.L72H42UZa1uGJ=q5Pl3W7M#A0...webp
    98.5 KB · Views: 22
Your issue is that XenForo is loading jQuery again, which overwrites the jQuery version in your global namespace that has had the swiftbox extension. You'll need to remove your first line, as there's no need to load jQuery twice, and then move the remaining lines to after XF loads jQuery.
 
Thanks for the reply!
I'm a pretty newbie in that section. What code do I add where?
Isn't the jquery the same as on XenForo?

The jquery file is located forum/js/vendor/jquery. But I have no clue where to add what kind of code:rolleyes:
 
Back
Top Bottom