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

XF 1.2 Html/Javascript not working

Discussion in 'XenForo Questions and Support' started by Jefferson Filho, Jul 8, 2013.

  1. Jefferson Filho

    Jefferson Filho Active Member

    Yo!

    For some reason in my forum when I add a html code or javascript in any part of the forum it doesn't work, I have tired on the ad_ template hooks for java from ads from google and html and seems not working, any idea why?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Paste the code here.
     
  3. Jefferson Filho

    Jefferson Filho Active Member

    Code:
    <style type="text/css">
    #banner-4687-250 {
      position:absolute;
      width:488px;
      height:75px;
      left:55%;
      top: 17px;
      border-color: 1px #DEDCC5;
      background-color: #DEDCC5;
      --moz-border-radius: 10px;
      border-radius: 10px;
      -moz-box-shadow: inset 0 0 2px 2px #C9C9C9;
      -webkit-box-shadow: inset 0 0 5px 5px #C9C9C9;
      box-shadow: inset 0 0 4px 4px #C8C8C8;
    
    }
    #banner-inside-4687 {
      position:absolute;
       width:468px;
       height:60px;
      bottom: 8px;
       left:11px;
      --moz-border-radius: 15px;
      border-radius: 15px;
    }
    
    </style>
    <center><div id="banner-4687-250">
    <div id="banner-inside-4687">
    
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-8647881776322128";
    /* forum */
    google_ad_slot = "6376520295";
    google_ad_width = 468;
    google_ad_height = 60;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    
    </div></div></center>
    Google one

    The other one
    Code:
    <a href="http://www.hastlehost.com" target="_new"> <img alt="Patrocinador Oficial" src="http://hastlehost.com/banners/banner7.png" /></a>
    It was working fine just few days ago don't know what happen
     
    Last edited: Jul 8, 2013
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The second one works for me.

    The first one you will need to check with your Google account to see if the ads are being served and the details are correct.
     
  5. Jefferson Filho

    Jefferson Filho Active Member

    I know right? There is nothing wrong! To make sure I install a new xenforo for test with the same version im using, installing all the addons that I have in the other one and on the test on everything works perfecly both of them show how it was suppos to be! Any idea what it could be?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    What is the link to the page where they should be displayed?
     
  7. Jefferson Filho

    Jefferson Filho Active Member

  8. Brogan

    Brogan XenForo Moderator Staff Member

    If the code is identical then it can only really be one of two things: a JavScript conflict with additional JS you have on your site somewhere, or the domain is blocked in your Google account.
     
  9. Jefferson Filho

    Jefferson Filho Active Member

    Might be the first option, because even the normal code is not showing, the html one, but the thing is none of html code is working as well.
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    The other one shows for me.
     
  11. Jefferson Filho

    Jefferson Filho Active Member

    In which site? www.xprogz.com ? Because here for me is not showing, I'm using firefox


    Edit:

    Now is showing for me as well! I will check the java thing to see what might be!
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, that site on both Chrome and Firefox.
     
    Jefferson Filho likes this.
  13. Jefferson Filho

    Jefferson Filho Active Member

    Yeah looks like is google who is blocking the domain! Thanks for the help! I will do some research and see what is going on, cos I didn't received any message from google about it.
     
  14. Jefferson Filho

    Jefferson Filho Active Member

    I discovery now, my domain is banned, I think is because I changed name etc!
     

Share This Page