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

Profile Page Tabs Problem

Discussion in 'Troubleshooting and Problems' started by Jeff Fuqua, Jun 2, 2012.

  1. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    I am having a problem with my profile page tabs. All the information is put on the front tab and clicking on any other tab takes me to the front page of my site. I've viewed this page from my mac using Safari, Chrome and Firefox for mac. I have the same issue when viewing from my iPad as well.

    One other person here said they went to the page and it rendered fine. I come to this site and the profile page tabs work as designed. I'm puzzled as to what the problem may be.

    Here's the url: http://www.gotitans.com/xf/members/titanjeff.1/
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Sounds like it might be a javascript problem. It's working for me in Firefox, but maybe the javascript is failing to load for some users. If javascript isn't working then features like navbar popup menus and member cards won't work.
  3. Chris D

    Chris D XenForo Developer Staff Member

    Hi Jeff,

    It appears to be your ad code that's doing it.

    (I have access to Jeff's site as I set it up for him)

    I have just removed a load of ad code and it's sorted the problem.

    I will put it back and see if we can find a way to stop it from clashing with xenforo.js
  4. Chris D

    Chris D XenForo Developer Staff Member

    I've narrowed it down a bit more.

    It's this ad code:

    <script type="text/javascript"><!--
    dp_ad_width = 728;
    dp_ad_height = 90;
    dp_ad_color_title = "#000044";
    dp_ad_color_desc = "#6699cc";
    dp_ad_color_background = "#ffffff";
    dp_ad_color_border = "#000044";
    dp_ad_effect = "slideleft";
    dp_ad_radius = 5;
    dp_ad_fallback = "http://www.gotitans.com/contextweb728x90.html";
    dp_ad_notice = 14;
    //--></script><script type="text/javascript" src="http://s.dpstatic.com/s/ad.js"></script>
    Which you have in ad_below_content.

    That bottom line has // in it which may be commenting out that line and thus leaving the <script tags open, which could very well be killing things.

    Let me remove those //, and see if it works.

    EDIT: It's definitely something in that code, but what I thought it was didn't work. Can you check with your ad provider? The code is different to how the top banner is, and that seems to work. I will wrap that ad_below_content ad in <xen:comment></xen:comment> tags to disable it. I'll leave it alone now until you verify the code.
  5. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    Some strange stuff going on.

    I removed the <xen:comment> and the tab issue returned. So I swapped in other ad code (from another network), removed the <xen:comment> and the ad returned the first time the page loaded but, when I went to the next page, the ad went away and was replaced by a huge space under the bottom nav to the footer.

    Very strange. http://www.gotitans.com/xf/members/titanjeff.1/

    But the tabs are working. :)
  6. Chris D

    Chris D XenForo Developer Staff Member

    I see no huge spacer - all seems to be working for me on every page. :)
  7. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    Here's what I'm getting...


    And no ad.

    EDIT: It seems random. I got it to load properly the first couple of pages then it went to the spacer.
  8. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    The culprit was some jQuery issues and Shawn at DP was able to adjust his code to get it loading properly.

Share This Page