Adding COOP to a BBLOG weblog

Discussion in 'Co-op Advertising Network' started by mnemtsas, Dec 1, 2004.

  1. #1
    mnemtsas, Dec 1, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    It looks like your blog is PHP based, so it shouldn't be terribly difficult. Are you having any specific problems or errors?
     
    digitalpoint, Dec 1, 2004 IP
  3. mnemtsas

    mnemtsas Super Dud

    Messages:
    497
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well I tried putting the php in the footer.html file (bblog uses 'smarty templates' whatever that is) and the ad_network.php file in the root of the bblog tree. This results in exactly nothing happening. From what little I know about PHP I suspect this means it can't find a file or something. Does this sound right?

    hmmm it looks like the smarty template thing doesn't process php in the template files. If I put <?php echo 'hello world'; ?> I can see the code in the html for the page.
     
    mnemtsas, Dec 1, 2004 IP
  4. flawebworks

    flawebworks Tech Services

    Messages:
    991
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    78
    #4
    Try using echo 'hello world'; instead of <?php echo 'hello world'; ?>. If you are already in a php file; you don't need the additional open and close php tags.
     
    flawebworks, Dec 1, 2004 IP
  5. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #5
    Put the ad_network.php file in the root folder of your blog (along with ad_network_ads.txt).

    Add this to your footer.html file:
    {include_php file="ad_network.php"}
    Code (markup):
    Add this to the end of your ad_network.php file (before the closing PHP tag):
    echo $ad_network[0];
    PHP:
     
    digitalpoint, Dec 1, 2004 IP
  6. mnemtsas

    mnemtsas Super Dud

    Messages:
    497
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks for help. Figured out a way of doing it myself. I created a new plugin that allows me to place the adnetwork ads anywhere on any of my templates. I know know 10x more about php than I did 30 minutes ago.

    I tried getting your way working Shawn, no go, wouldn't work for me.
     
    mnemtsas, Dec 1, 2004 IP
  7. Hank

    Hank Guest

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hey Shawn:

    I've got a new blog I'm putting up on one of my sites (I'm sure you could care less).

    I'm using Plog. These instructions for the smarty template are exactly what I needed.

    Just wanted to say thanks!

    Hank
     
    Hank, Dec 15, 2004 IP