Installing Co-op on Mambo?

Discussion in 'Co-op Advertising Network' started by LeeD, Sep 22, 2005.

  1. #1
    Anyone familiar with how to do this? I downloaded and installed the module, but can't find instructions anywhere of what to do next. Anyone dealt with this before. I want them in my footer, which is listed as a module called bottom.

    Thanks!
     
    LeeD, Sep 22, 2005 IP
  2. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #2
    anyone have an idea how to do this?
     
    LeeD, Sep 27, 2005 IP
  3. vtrader

    vtrader Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Perhaps you've already tried this, but here it is anyway:

    - open module 'bottom' in your editor
    - insert the code provided in the setup instructions for .php
    i.e. something like this:
    Fire it up...

    Otherwise, post the code from 'bottom' and somebody will be able to tell you exactly where to insert the ad network code
     
    vtrader, Sep 27, 2005 IP
  4. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Here is the code from my bottom template. I inserted it as you said and it didn't show up. I also used the mambo mod at mamboforge and it just showed "Array". Any ideas?

     
    LeeD, Sep 27, 2005 IP
  5. vtrader

    vtrader Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try adding the co-op php code inside the last </div>:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_392.php');
    echo $ad_network;
    ?>
     
    vtrader, Sep 27, 2005 IP
  6. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #6
    I did that and it shows as if nothing was changed. Nothing moves and nothing is added.
     
    LeeD, Sep 27, 2005 IP
  7. vtrader

    vtrader Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ad_network_392.php is in the correct directory?
    ad_network_ads_392.txt has had file permissions changed to 666?
     
    vtrader, Sep 27, 2005 IP
  8. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Yep - thanks for your help by the way. :)
     
    LeeD, Sep 27, 2005 IP
  9. vtrader

    vtrader Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    No problem -- have some time

    Add this: echo "test";
    below
    echo $ad_network;

    If it displays 'test' in your footer, then you at least know that PHP is being interpreted.
     
    vtrader, Sep 27, 2005 IP
  10. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #10
    Nothing showed up for me at all...
     
    LeeD, Sep 27, 2005 IP
  11. vtrader

    vtrader Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    What's the code you have so far for the bottom template?
     
    vtrader, Sep 27, 2005 IP
  12. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #12
    At the last test, I had this:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_392.php');
    echo $ad_network;
    echo "test";
    ?>
     
    LeeD, Sep 27, 2005 IP
  13. vtrader

    vtrader Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Try putting that outside the last </div> on the outside chance that css is obscuring the links.

    i.e., the code will be the last lines in the bottom template
     
    vtrader, Sep 27, 2005 IP
  14. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #14
    Okay, I did that and there is no change.
     
    LeeD, Sep 28, 2005 IP
  15. vtrader

    vtrader Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    It's clear that Mambo is parsing code and not letting it execute...

    Found this after a google of: "insert php code into mambo"

    From a post elsewhere:
    "<<I realise this is a security thing, but I simply want to run various PHP scripts, and wrap the Mambo template around them.>>

    I use mosADDPHP and it works like a charm. I run forms, mostly, but so far it seems to work just like wrapper except for a very important difference: the php runs within a content item. I only wish it worked with html files as well."

    Also, if you have MosPHP installed, you can wrap PHP in squigglies as so:
    {mosphp}
    echo "test";
    {/mosphp}

    This seems like an easy way to insert PHP into templates.
     
    vtrader, Sep 28, 2005 IP
  16. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #16
    I added:

    {mosphp}
    echo "test";
    {/mosphp}

    and nothing showed up...is this what you wanted me to add?
     
    LeeD, Sep 28, 2005 IP
  17. vtrader

    vtrader Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    vtrader, Sep 28, 2005 IP
  18. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Put the code in includes/footer.php

    Works fine..
     
    gford, Sep 28, 2005 IP
  19. LeeD

    LeeD Well-Known Member

    Messages:
    686
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #19
    I looked at that file and I don't believe we use it on our site.
     
    LeeD, Sep 28, 2005 IP
  20. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #20
    So add it to your template, easy enough..
     
    gford, Sep 28, 2005 IP