IPB 1.3 Urgent Help Needed - Placement of Adsense

Discussion in 'AdSense' started by seanro, Jul 7, 2007.

Thread Status:
Not open for further replies.
  1. #1
    I want to insert adsense of any such code in my IPB 1.3 ... but that cant be done from board wrapper , i want to do it by editing FUNCTION.php file ..


    The placement of the ad should be , as in following snapshot .. i have done it before years .. but now i have forgotten !

    i have to add code somewhere in function.php file ...

    [​IMG]


    Please help by telling after which line in function.php of IPB 1.3 , i should do the edits in order to get ads where i want as above !

    Thanks
    Reply With Quote
     
    seanro, Jul 7, 2007 IP
  2. seanro

    seanro Banned

    Messages:
    83
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    help me :(
     
    seanro, Jul 8, 2007 IP
  3. kyoku2

    kyoku2 Peon

    Messages:
    322
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Seanro, you may get some help here but you better to ask in IPB Mod support forum.
     
    kyoku2, Jul 8, 2007 IP
  4. Mara Linz

    Mara Linz Peon

    Messages:
    63
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Mara Linz, Jul 8, 2007 IP
  5. seanro

    seanro Banned

    Messages:
    83
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    LOL :D
    i know about IZE .. i m not asking for any MOD .. i am asking which line to edit in functions.php to insert code :rolleyes:
     
    seanro, Jul 8, 2007 IP
  6. SEOdir.net

    SEOdir.net Banned

    Messages:
    2,549
    Likes Received:
    105
    Best Answers:
    0
    Trophy Points:
    173
    #6
    Go to ACP -> Look & Feel -> Edit Template Footer & Header (after licking on a template)
    There you can edit everything in HTML.

    I am using the newest version on IPB so this is the oldest one so there ca be other path to this.


    Hope I helped you ;)
     
    SEOdir.net, Jul 8, 2007 IP
  7. seanro

    seanro Banned

    Messages:
    83
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i need function.php edit:cool:
     
    seanro, Jul 9, 2007 IP
  8. SEOdir.net

    SEOdir.net Banned

    Messages:
    2,549
    Likes Received:
    105
    Best Answers:
    0
    Trophy Points:
    173
    #8
    But you want to add adsense right ?
     
    SEOdir.net, Jul 10, 2007 IP
  9. Dr.Sell

    Dr.Sell Active Member

    Messages:
    588
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #9
    look at that,
    sorry i can't put image

    /sources/lib/func_topic_linear.php



    Find=trouvee

    ==================================================

    //-----------------------------------------
    // Format and print out the topic list
    //-----------------------------------------

    while ( $row = $this->ipsclass->DB->fetch_row( $oq ) )
    {
    $return = $this->lib->parse_row( $row );

    $poster = $return['poster'];
    $row = $return['row'];

    ==================================================

    Replace=remplace

    ==================================================


    //-----------------------------------------
    // Format and print out the topic list
    //-----------------------------------------
    //Replace the text below with your AdSense code
    $adsense='&lt;****** type="text/java******"><!--
    google_ad_client = "xxx-xxxxxxxxxxxxxxxx";
    google_ad_width = xxx;
    google_ad_height = xx;
    google_ad_format = "xxxxxx";
    google_ad_channel = "";
    google_color_border = "xxxxxx";
    google_color_bg = "xxxxxx";
    google_color_link = "xxxxxx";
    google_color_text = "xxxxxx";
    google_color_url = "xxxxxx";
    //--></******>
    &lt;****** type="text/java******"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </******><br>';
    $a=1;
    while ( $row = $this->ipsclass->DB->fetch_row( $oq ) )
    {
    $return = $this->lib->parse_row( $row );


    if($a == 1){
    $return['row']['post']=$adsense. $return['row']['post'];
    }
    $a++;

    $poster = $return['poster'];
    $row = $return['row'];
    good luck:D
     
    Dr.Sell, Jul 10, 2007 IP
  10. SEOdir.net

    SEOdir.net Banned

    Messages:
    2,549
    Likes Received:
    105
    Best Answers:
    0
    Trophy Points:
    173
    #10
    And it dont works ?
     
    SEOdir.net, Jul 10, 2007 IP
  11. seanro

    seanro Banned

    Messages:
    83
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #11
    no it didnt worked
     
    seanro, Jul 18, 2007 IP
  12. SEOdir.net

    SEOdir.net Banned

    Messages:
    2,549
    Likes Received:
    105
    Best Answers:
    0
    Trophy Points:
    173
    #12
    So sorry but I cant help you :(

    Try search at official IPB supprt or invisionize.com
     
    SEOdir.net, Jul 18, 2007 IP
Thread Status:
Not open for further replies.