How do you add COOP to PHPlinkdirectory?

Discussion in 'Co-op Advertising Network' started by SportsOutlaw, Jan 20, 2006.

  1. #1
    I am at a loss. I tried it when I first installed the directory, couldnt figure it out.

    Trying it again, still cant figure it out

    Somebody please give me some advice on where to put the code. :confused:
     
    SportsOutlaw, Jan 20, 2006 IP
  2. SportsOutlaw

    SportsOutlaw Active Member

    Messages:
    952
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Anybody done this?
     
    SportsOutlaw, Jan 22, 2006 IP
  3. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #3
    Hey, I have it on one of my sites. I'll take a look and let you know shortly.
     
    dvduval, Jan 22, 2006 IP
  4. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #4
    Ok, in footer.tpl I have:
    {php}
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network_###.php');
    	echo ;
    {/php}
    PHP:

    Let me know if that is not enough info.
     
    dvduval, Jan 22, 2006 IP
  5. SportsOutlaw

    SportsOutlaw Active Member

    Messages:
    952
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    70
    #5
    not working for me

    I have the code you provided placed just below the phplinkdirectory link. (with the appropriate version in place of ###)

    I have also placed the adnetwork .php and .txt files in the directory root.

    I have not placed any other files anywhere else.
     
    SportsOutlaw, Jan 22, 2006 IP
  6. fcmisc

    fcmisc Active Member

    Messages:
    701
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    93
    #6
    If anyone else has stumbled upon this thread, you might want to try explicitly setting the path. E.G.

    include '/home/domain/folder1/folder2/include/ad_network_xxx.php';

    I also had to modify my ad_network_218.php file to explicity set the path for the ad_network_xxx.txt file.
     
    fcmisc, Apr 6, 2006 IP