Associate o Matic and the Digitalpoint Co-op ?

Discussion in 'Co-op Advertising Network' started by mcfox, Jan 9, 2007.

  1. #1
    Does anyone know how to add the Co-op to an Associate-o-matic site?

    There's a little bit in the control panel that allows html in the footer, for example, a link, but nothing happens when the <?php > code is inserted.

    Unfortunately, it isn't quite as simple as editing a template -- the application (associate-o-matic) is encrypted so it's impossible to get into the guts of it.

    Any help appreciated.
     
    mcfox, Jan 9, 2007 IP
  2. xandr

    xandr Member

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    Inside Associate-O-Matic, PHP code can be executed only when it's found in external files that are included in the app.

    For example the Header/Footer settings on the control panel would allow you to include an external header and footer file. Inside these external files you can reference PHP and it will be executed inside AOM.

    What's not allowed is putting PHP code directly in the AOM settings themselves.

    I hope this helps.
     
    xandr, Jan 9, 2007 IP
  3. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #3
    I think I follow that, xandr, thank you.

    I'll give it a go and see if I can get it to work by calling and external html file with the php include wrapped inside it.
     
    mcfox, Jan 9, 2007 IP
  4. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #4
    Adding the DigitalPoint Co-op to an Associate-o-matic site.

    Adding the code is fairly straightforwards.

    Register your site for the coop

    Generate the necessary files for the co-op.

    As well as the two required files for the co-op, you will need to create a file called, footer.html.

    Here's the entire code, including the php, for footer.html
    <html>
    <head>
    <title>Untitled Document</title>
    </head>
    
    <body>
    <p align="center">
    Some ads: <?php
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network_132.php');
    	echo $ad_network;
    ?>
    </p>
    </body>
    </html>
    Code (markup):
    From within the Associate o Matic control panel, scroll down to Advanced Settings and add footer.html to the appropriate box (you may need to specify the full path to the file, depending on server configuration).

    [​IMG]

    Assuming you have followed the instructions for setting up the co-op, this should work no problem and you should be displaying ads.

    I'm not yet 100% sure it registers across the board for sitewide links but everything appears in order.
     
    mcfox, Jan 10, 2007 IP
  5. Entrep

    Entrep Well-Known Member

    Messages:
    588
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Exactly what I was after - thanks!
     
    Entrep, Jun 2, 2007 IP