coop on an Invision forum

Discussion in 'Co-op Advertising Network' started by g00gl3r, Dec 15, 2004.

  1. #1
    I'm running an invision forum @ www.keepcruizin.net and am really finding it hard to get the ads to show..!

    Has anybody had any experience in this before I start to blurt out what i have tried so far?
     
    g00gl3r, Dec 15, 2004 IP
  2. g00gl3r

    g00gl3r Well-Known Member

    Messages:
    167
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #2
    g00gl3r, Dec 15, 2004 IP
  3. zamolxes

    zamolxes Peon

    Messages:
    176
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I've just set it up on one.
    I had some trouble doing it but it now works ok.

    You should edit functions.php in the sources folder.
    I added the following code to it, just above the copyright code:
    (I'm showing 4 ads with a dash between them)

    A little further down in the

    //---------------------------------------
    // Get the template
    //---------------------------------------

    section, add
    just under the existing

    Then save the file and upload it to your server.


    The last thing you need to do is login to the Admin CP, go to Skins & Templates => Board Wrappers and edit the invision board standard to end with something like that:

    (if you want your ads displayed at the bottom of each page, just above the copyright notice)

    That should do it.
     
    zamolxes, Dec 15, 2004 IP
  4. g00gl3r

    g00gl3r Well-Known Member

    Messages:
    167
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Thanks,

    My functions.php hasn't got the line

    $ibforums->skin['template'] = str_replace( "<% NAVIGATION %>" , $nav , $ibforums->skin['template']);
    Code (markup):
    in it.


    I've got the <% FOOTER %> there (look), and i've added the network code to the functions file, as you can see (not too sure if its in the right place, i just stuck it in there, i was going to fiddle with it but I thought it's best to find out where the other code goes firstly).

    elp?
     
    g00gl3r, Dec 15, 2004 IP
  5. g00gl3r

    g00gl3r Well-Known Member

    Messages:
    167
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #5
    OK,

    My functions.php is viewable @ http://www.keepcruizin.net/page.html

    Can anybody tell me where to stick the code

    $ibforums->skin['template'] = str_replace( "<% FOOTER %>" , $foo , $ibforums->skin['template']);
    Code (markup):
    Please?

    Teh ads should appear in the footer on the main site/forum
     
    g00gl3r, Dec 15, 2004 IP
  6. zamolxes

    zamolxes Peon

    Messages:
    176
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You have a different version.

    What does your "Skins & Templates => Board Wrappers" look like? (you can see it via Admin CP)?
     
    zamolxes, Dec 15, 2004 IP
  7. zamolxes

    zamolxes Peon

    Messages:
    176
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    zamolxes, Dec 15, 2004 IP
  8. g00gl3r

    g00gl3r Well-Known Member

    Messages:
    167
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #8
    Ok, my skin originaly was just a few lines of code but I have stuck those few lines of code into the template of the main site, the .com. SO, it looks like HTML? Just like when you View>Source infact.

    The trouble normaly is parsing the php in the page, i have fiddled with the .htaccess and got it running on any .php page other than the bloody forum...!

    Does that help?
     
    g00gl3r, Dec 15, 2004 IP
  9. g00gl3r

    g00gl3r Well-Known Member

    Messages:
    167
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #9
    OK, i've upgraded to version 2.0.3 and the finctions file is still not having any. Please help!

    EDIT:

    My fuctions file can be found @ http://www.keepcruizin.net/page.html and my wrappers look standard to me, it hasn't really changed on the upgrade from 1.3 all the way to 2.0.3....

    I could do with finding where this code goes in this functions file, and need confirming which code i add and how to call it from the wrapper..

    Thanks
     
    g00gl3r, Dec 16, 2004 IP
  10. Spacen

    Spacen Peon

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    If you tried doing the edits I layed out in the other thread, then they may very well not work because I'm running a different version of ipb. You have a much newer version. I have no experience with that version so I can't tell you for sure how to modify your files.
     
    Spacen, Dec 16, 2004 IP