Small problem on php.. Openads not showing up in header

Discussion in 'JavaScript' started by daones, Jun 6, 2007.

  1. #1
    I can get it to show up in the footer but it just wont show up in the header next to the logo. Send me a pm if you want the code and can help me with this small problem. Thanks in advance.
     
    daones, Jun 6, 2007 IP
  2. unknowngiver

    unknowngiver Peon

    Messages:
    94
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hm footer of what? Vbulletin?
     
    unknowngiver, Jun 6, 2007 IP
  3. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #3
    of php directory
     
    daones, Jun 6, 2007 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,813
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Just post the link... you've probably pasted the code in wrong.
     
    sarahk, Jun 6, 2007 IP
  5. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #5
    its at www.fesu.net if you look the javascript is at the top underneath where the logo goes.
     
    daones, Jun 6, 2007 IP
  6. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #6
    <td width="320"><a href="{$smarty.const.DOC_ROOT}/"><img src="{$smarty.const.DOC_ROOT}/images/logo.gif" border="0" /></a>
    <tr>

    <script language='JavaScript' type='text/javascript' src='http://fesu.net/adserver/adx.js'></script>
    <script language='JavaScript' type='text/javascript'>
    <!--
    if (!document.phpAds_used) document.phpAds_used = ',';
    phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

    document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
    document.write ("http://fesu.net/adserver/adjs.php?n=" + phpAds_random);
    document.write ("&amp;what=zone:1");
    document.write ("&amp;exclude=" + document.phpAds_used);
    if (document.referrer)
    document.write ("&amp;referer=" + escape(document.referrer));
    document.write ("'><" + "/script>");
    //-->
    </script><noscript><a href='http://fesu.net/adserver/adclick.php?n=a9f368a6' target='_blank'><img src='http://fesu.net/adserver/adview.php?what=zone:1&amp;n=a9f368a6' border='0' alt=''></a></noscript>
     
    daones, Jun 6, 2007 IP
  7. sarahk

    sarahk iTamer Staff

    Messages:
    28,813
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #7
    Your adserver is on the same site as your site... so why are you not using local invocation or atleast remote. The javascript version is not as reliable.

    I use it remotely all the time and it's great - but have had js problems (in the past). So first thing I'd change would be that.

    Firebug isn't showing any errors on your page so then I have to wonder if your zone and banner are done right. When you look at probability in the zone does it show the right banner?
     
    sarahk, Jun 6, 2007 IP
  8. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #8
    so i should use local banner (sql)? also probability is 100% and is showing the banner. I tried using local mode but i get a smarty error.
     
    daones, Jun 7, 2007 IP
  9. sarahk

    sarahk iTamer Staff

    Messages:
    28,813
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #9
    I would, or the standard remote banner.
     
    sarahk, Jun 7, 2007 IP
  10. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #10
    Im using the remote banner already, i just dont understand why it would show in the footer but not the header?
     
    daones, Jun 7, 2007 IP
  11. daones

    daones Well-Known Member

    Messages:
    1,151
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    120
    #11
    No one can figure this out?
     
    daones, Jun 11, 2007 IP
  12. sarahk

    sarahk iTamer Staff

    Messages:
    28,813
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #12
    If the code is being pasted in right and you can see it looking right when you view the source then it'll be a problem within OpenAds. We can't see that you'll just need to look at how you have everything setup. Maybe ask at their forums?
     
    sarahk, Jun 11, 2007 IP