adding code to coppermine forum?

Discussion in 'Co-op Advertising Network' started by Matt S, Apr 4, 2005.

  1. #1
    Hi everyone

    I'm having trouble getting the links to display on my coppermine photo gallery setup! I am currently trying to add the
    <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');  	include ('ad_network_216.php'); 	echo $ad_network; ?>
    PHP:
    to one of the theme templates (named theme.php - also tried full path to the php file - still no good!)

    there is another called template.html in which i've added the following to the .htaccess file
    then added
    and tried using the full path to ad_network_216.php as well.

    But I'm still getting error msg saying ads aren't displaying! Any chance of some help setting the ads up to display properly?

    Thanks

    Matt
     
    Matt S, Apr 4, 2005 IP
  2. SERPalert

    SERPalert Guest

    Messages:
    1,003
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    0
    #2

    Did anyone get a solution to this, I'm having the exact same issues.
     
    SERPalert, Jan 16, 2006 IP
  3. GadgetMadness.com

    GadgetMadness.com Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am also looking for a solution to this, same results, no go. My DP validation fails from time to time because I can't get the ads in Coppermine. Can anyone help shed some light on how this can be accomplished?

    Solution: Upgrade to Coppermine 1.4.3 (stable), and go into your config. Under the Theme section, find "Path to custom footer include" and enter "../ad_network_148.php" or just "ad_network_148.php" in the value box. Save your configuration, and magically the DP ads will appear in your footer. I am using the Mac OS X theme, and the ads are currently left justified. As soon as I find how to center the ads I will post an update.

    To edit formatting for your DP ads, open the template.html file for the theme you are using (located in the "themes" directory in your CM installation.) Search for the following text:

    Format to taste. In my case all I did for now was add the center tag:

     
    GadgetMadness.com, Jan 27, 2006 IP