Current time: 28-03-2024, 11:54 AM
Hello There, Guest!
Login 
  • Search
  • MyBB Modal Appearance Fix


    MyBB Group Developer
    #1
    Bug Fix 
    We have seen several support threads about the modal content is appearing at the bottom of page with no overlay.
    Well, here is the fix.

    There is a bug in js code and the chaining fails, and MyBB.popupWindow(); simply appends the modal code to the body. But the plugin fails to initiate.
    So if we break the chain, the issue gets resolved.

    Lets break it.
    Open general.js and go to line 107, find this line:
    $(html).appendTo('body').modal(options);
    

    Now change the line to:
    $(html).appendTo('body').addClass('lastModal').hide();
    $('.lastModal').removeClass('lastModal').modal(options);
    

    Save the file, hard refresh / clear cache of your browser and load the page, fire a modal you were having the issue with. Its resolved now.
    Like Reply

    Messages In This Thread

    MyBB Modal Appearance Fix - by effone - 08-05-2019, 07:01 PM