Help with PHP spacing & why only 3 ads?

Discussion in 'Co-op Advertising Network' started by fisher318, Dec 16, 2004.

  1. #1
    Hello,

    I am just about to wrap things up with my second account for the website Website Placement . I put in this php code:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0],$ad_network[1],$ad_network[2],$ad_network[3],$ad_network[4];
    ?>

    I only show 3 ads on my site though, and want to know how to get the ads to be spaced apart a little more. Thanks for the help!
     
    fisher318, Dec 16, 2004 IP
  2. Patient

    Patient Raider

    Messages:
    336
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #2
    I am surprised that works. Try:


    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0].' '.$ad_network[1].' '.$ad_network[2].' '.$ad_network[3].' '.$ad_network[4];
    ?>

    If you need more space add a few &nbsp; between the ' ' (&nbsp; is the symbol for a no-breaking-space).
     
    Patient, Dec 16, 2004 IP
  3. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you! That worked great!
     
    fisher318, Dec 16, 2004 IP
  4. dustin

    dustin Peon

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    As another example here is what I am using:
    	echo '<a href="http://www.digitalpoint.com/tools/ad-network/?s=2822">free co-op ad network</a>: '.$ad_network[0].' | '.$ad_network[1].' | '.$ad_network[2].' | '.$ad_network[3].' | '.$ad_network[4];
    Code (markup):
    This way if anyone sees it and signs up I will get some referrer bonus. :)
     
    dustin, Dec 16, 2004 IP
  5. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Does anyone know how I can change the font type and size? I don't know how to do it within the php code.
     
    fisher318, Dec 16, 2004 IP
  6. mattmdesign

    mattmdesign Well-Known Member

    Messages:
    1,201
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    118
    #6
    I would think you could do it with css
     
    mattmdesign, Dec 16, 2004 IP
  7. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I mean I want to change the font and size of the co-op ads. How would you do this?
     
    fisher318, Dec 16, 2004 IP
  8. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #8
    assign a css classes (dont forget these are hyperlinks)

    echo '<div class=\"coop\"><a href="http://www.digitalpoint.com/tools/ad-network/?s=2822">free co-op ad network</a>: '.$ad_network[0].' | '.$ad_network[1].' | '.$ad_network[2].' | '.$ad_network[3].' | '.$ad_network[4]</div>;

    should work
    M
     
    expat, Dec 16, 2004 IP