1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with script and loader xenforo

Discussion in 'XenForo Development Discussions' started by Allan, May 24, 2014.

  1. Allan

    Allan Well-Known Member

    I use this script for an add-on:

    <script type='text/javascript' src='http://code.jquery.com/jquery-1.11.1.min.js'></script>
        <script type="text/javascript">
            $(function() {
                var offset = $("#sidebar").offset();
                var topPadding = 15;
                $(window).scroll(function() {
                    if ($(window).scrollTop() > offset.top) {
                            marginTop: $(window).scrollTop() - offset.top + topPadding
                    } else {
                            marginTop: 0
    But it breaks the loader popup to xenforo:
    In that example, i click on username "Admin".


    An idea please ? :(
  2. EQnoble

    EQnoble Well-Known Member

    First things first, don't include jquery with your script because xf already includes it.
    Allan likes this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    That probably is indeed the cause.

    But in case it isn't, check the console in your browser.
    Allan likes this.
  4. Allan

    Allan Well-Known Member

  5. Allan

    Allan Well-Known Member

    Solved !

    Thank you guys ;)

Share This Page