Adding Coop to SMF forum

Discussion in 'Co-op Advertising Network' started by Deano, Apr 12, 2006.

  1. #1
    Hi, I am having trouble getting the coop to work on my SM forum.

    I have located the footer area in index.template.php
    If I add a text link to this area it works fine, however if I add the COOP code I get this message on my site
    This is the area where I am pasting the code
    The code that I chose to use was in the class 'other', I am not that sure if this was the right code to choose as I'm not that great on bulletin board sites and was not sure what SMF fall into.

    Thanks for any advice :)
     
    Deano, Apr 12, 2006 IP
  2. Deano

    Deano Sail away with me.

    Messages:
    890
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm still having problems with this, does anyone have experience in the use of the coop with SMF?
     
    Deano, May 4, 2006 IP
  3. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #3
    You're trying to insert PHP within a PHP echo section.

    Do it this way:


     
    minstrel, May 4, 2006 IP
    Deano likes this.
  4. jazzmark

    jazzmark Peon

    Messages:
    1
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I tried that suggestion on my SMF site and it did not work. So, I put the code AFTER the table ended:

    This works fine. Of course, I centered it. You don't have to.
     
    jazzmark, May 7, 2006 IP
    Deano likes this.
  5. Deano

    Deano Sail away with me.

    Messages:
    890
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks minstrel I meant to get back to you earlier, I gave it a go, but it did not work (I did it at about 1 in the morning, most of the things I do at that time don't work :).
    I'll give your suggestion a go jazzmark.
     
    Deano, May 7, 2006 IP
  6. Deano

    Deano Sail away with me.

    Messages:
    890
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Excellent, works a treat :)
     
    Deano, May 7, 2006 IP
  7. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #7
    Sorry, Deano. Jazzmark is of course correct - you don't need to surround it in <?php ?> tags because of course the whole file is PHP.

    My apologies for misleading you.
     
    minstrel, May 7, 2006 IP
  8. Deano

    Deano Sail away with me.

    Messages:
    890
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Not a problem at all. I've learnt a couple of new things from this experience; that's got to be a good thing :)
     
    Deano, May 7, 2006 IP
  9. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #9
    :)

    If you're used to other forum software, SMF does take a little getting used to because ALL of the code is in PHP using echo commands for the HTML - where before you could just slam in a table or a link, now you have to use

    echo '{insert HTML code here}';

    Once you understand that part, the rest is usually easy - except where you try to take PHP code and echo that too as i did above :eek:
     
    minstrel, May 7, 2006 IP
  10. cru

    cru Peon

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    hi, i would like to display 5 link ads on my smf footer too. and i don't know what to paste, since there's no guide in installing the coop ad for smf.

    my questions are:
    1. can i just copy the code posted by jazzmark above, or do i have to edit it?
    2. do i have to create php/txt files, like in the installation guide for phpbb?

    TIA
     
    cru, Oct 12, 2007 IP