Where to place Adbrite inline ads code in php files

Discussion in 'PHP' started by sushie, Mar 10, 2010.

  1. #1
    Hello people!

    I decided to join Adbrite and use their program called Inline ads, so after joining this program, they gave me a html code and say i have to place it on a body files.
    But all my files are php, (i use wordpress blog), so i don't know in which file i must place it and where?

    So if someone know the answer, it would be cool to help me. ^^'

    Thanks for reading.
     
    sushie, Mar 10, 2010 IP
  2. bhoo-day

    bhoo-day Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    Hello sushie...

    If you use wordpress, you must find first your theme folder you are using now. It can be found at

    wp-content\themes\<your-theme>

    If you want to put your ads in header, you must edit header.php
    If you want to put your ads in sidebar, you must edit sidebar.php

    although the extension is .php, it still contains html inside it.
     
    bhoo-day, Mar 10, 2010 IP
  3. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    put the javascript outside of php tag <?php ?>
     
    javaongsan, Mar 10, 2010 IP
  4. sushie

    sushie Peon

    Messages:
    228
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Okay, thanks.
    But if i want to put it in each post? Because adbrite inline ads are texte ads so i can't put it in header/sidebar but must put it on posts...
     
    sushie, Mar 11, 2010 IP
  5. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #5
    break up php, do something like <?php ....code...?> adbrite js <?php ...code continue...?>
     
    javaongsan, Mar 11, 2010 IP