MyBB, Bootstrap5 Modal JS Conflict?
#1
I am trying to use bootstrap 5 in my theme, but I think, bootstrap js is conflicting with mybb js. Modals of MyBB don't work, I suppose because they use the same class "modal"? Is there an easy way to fix this without changing bootstrap or mybb core js files?
root@TekkieDa: $ ▮
Reply
#2
(2023-07-15, 04:37 PM)Xiraa Wrote: I am trying to use bootstrap 5 in my theme, but I think, bootstrap js is conflicting with mybb js. Modals of MyBB don't work, I suppose because they use the same class "modal"? Is there an easy way to fix this without changing bootstrap or mybb core js files?

Download the js package of bootstrap and rename the functions?
Reply
#3
(2023-07-15, 05:51 PM)Eldamar Wrote: Download the js package of bootstrap and rename the functions?
Yes that works, Thats what I have done now, but I thought if there was a way to do this without changing bootstrap core files.
root@TekkieDa: $ ▮
Reply
#4
Would someone explain to me how to do this? Because I don't know JS please
Reply
#5
MyBB, like Bootstrap, uses the .modal class for popups (login, reputation, etc). This will directly conflict with MyBB modal function, so you have two options:

- Download a customized version of Bootstrap and exclude the modal, or
- Override the existing modal by editing the CSS classes and replacing each modal template
My Projects | Discord: matty9719Do not PM me for support unless advised to do so.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)