need help adding banner code

Discussion in 'HTML & Website Design' started by ljinvests, Jul 6, 2009.

Thread Status:
Not open for further replies.
  1. #1
    I need help entering a banner code on my poker site i dont know much about php i put the code where i though it would go and the banner showed up but messed up the rest of the site with database errors.
    this is the code <center><?php

    $script_path = "advertising/";

    include_once ($script_path."placebanner.php");

    placeBanner(1);

    ?>

    i added the same one at the bottom of the page no problem i was told because it was after all the codes.I will send you the page i want to add to please help thanks
     
    ljinvests, Jul 6, 2009 IP
  2. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #2
    Without knowing too much, my initial reaction is that what you're including is larger than its "box" and is therefore messing up your site.

    It works at the bottom, most likely, because there's plenty of room there.

    It's like trying to put a 500px x 800px picture in a CSS div or table or area built for something like 400px x 100px. Something is going to get jacked.
     
    marketjunction, Jul 7, 2009 IP
  3. ljinvests

    ljinvests Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Nothing to do with the size made it really small same thing
     
    ljinvests, Jul 7, 2009 IP
  4. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #4
    Are you importing html code? If so, perhaps it's breaking a <div> or something else.
     
    marketjunction, Jul 7, 2009 IP
  5. ks.alam28

    ks.alam28 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    if your external php file is ok then try this one..

    <center>
    <div>
    <?php
    include_once ('advertising/placebanner.php');
    placeBanner(1);
    ?>
    </div>
    </center>

    let me know the result..... hope it will work
     
    ks.alam28, Jul 8, 2009 IP
  6. Enter

    Enter Active Member

    Messages:
    272
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    log in your blog and click layout/add a gadget/html java script/ and past the code ur banner is activated u can move your banner anywhere ur site left or right or center ... thanks
     
    Enter, Jul 9, 2009 IP
  7. syamsa

    syamsa Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Put the cursor to the place where you gonna put the banner. then click the code view, then place the code overthere.
     
    syamsa, Jul 9, 2009 IP
Thread Status:
Not open for further replies.