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

XF 1.4 XenForo.serverTimeInfo.now injected into Ad Code

Discussion in 'Troubleshooting and Problems' started by arn, Jul 1, 2015.

  1. arn

    arn Active Member

    One of our ads isn't rendering correctly, due to what seems like Xenforo manipulating the DOM after rendering.

    You can see "XenForo.serverTimeInfo.now" code being injected which is messing it up. How can I prevent this from happening?

    Attached Files:

  2. Mike

    Mike XenForo Developer Staff Member

    The way the code is written -- XenForo.serverTimeInfo.now = 1234; ... -- isn't how it shows up in XF. We set it up in using object syntax. Then, there are only 3 lines in the JS that actually touch it and they just read the value back.

    I have to conclude it's not actually XF itself that is doing that.
  3. arn

    arn Active Member

    hmm... well, the other thing that is there that doesn't look like it's supposed to be there is <meta name="bdcache"> which is from [bd] Cache | XenForo Community -- so I'll investigate there too.
  4. Mike

    Mike XenForo Developer Staff Member

    That seems like a likely cause actually (given that it needs to update those values for the cache).
    arn likes this.

Share This Page