Only Txt ads

Discussion in 'Co-op Advertising Network' started by rushy, Mar 24, 2005.

  1. #1
    hi Guys,

    I just signed up for the co-op network yesterday, managed to get it all validated and online today. Im having a couple of problems though and would appreciate any help.

    1) Im a complete .php noob and am wondering how to assign css classes to my co-op ad links. If you see on my page http://www.rcs.org.uk the text links look out of place. I just want to assign the same class to the co op ad links as the rest of my page - sorry for the noob question!

    2) I have selected to display text ads only but for some reason I some times get the text and banner display... I just want the anchor text links and for some reason the text only ad setting isnt working. Any help would be appreciated.

    Thanks fellas....this is a great resource by the way.

    cheers,
    rushy
     
    rushy, Mar 24, 2005 IP
  2. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to clear out your ad_network_ads_xxx.txt file then resave it on the server. This will clear out all the banners that are being displayed.
     
    yfs1, Mar 24, 2005 IP
    dct likes this.
  3. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #3
    When you create the ad_network_205.php (in setup instructions) make sure that the type to use combo is ‘Only Text Link’ you will also need to delete the contents of your ad_network_ads_205.txt to get rid of cached banner ads.

    With regards to CSS just put a <div> tag around the PHP code that generates the ads.

    HTH

    Edit: yfs1 beat me to it, this community is just too helpful :)
     
    dct, Mar 24, 2005 IP
  4. rushy

    rushy Peon

    Messages:
    251
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks!!

    I got point 2 sorted, great help, thanks chaps.

    As for my CSS, I still cant get it to apply the same class to my links as on the rest of the page. Im new to CSS too :D Actually Im new to all of this stuff!!

    If you could give me an example of how you applied your css style to your own ads that'd be a great help.

    Thanks again.
     
    rushy, Mar 24, 2005 IP
  5. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #5
    In your css file do something like
    
    .Ads a{
    color:black;
    }
    
    Code (markup):
    then put a <div class = "Ads"> around the ad generating code.
     
    dct, Mar 24, 2005 IP
  6. rushy

    rushy Peon

    Messages:
    251
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks, mate!! Its working fine now!

    Except for one thing :D :
    How do I get the text ads to appear on different lines?

    Great help guys...

    rushy
     
    rushy, Mar 24, 2005 IP
  7. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #7
    You'll be wanting me to write your site next :)
    Here goes:
    
    <?php
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network_205.php');
    	echo $ad_network[0] . "<br>";
    	echo $ad_network[1] . "<br>";
    	echo $ad_network[2] . "<br>";
            // Spot the pattern
    ?>
    
    PHP:
    I'd recommend learning CSS and doing it that way but that's another thread.

    Rushy you owe me a beer :D
     
    dct, Mar 24, 2005 IP
  8. rushy

    rushy Peon

    Messages:
    251
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    :D

    Thanks, Mate!!!

    I'll buy you a beer for sure...

    You've got an IOU on me, anything I can do.

    Cheers, bud.
     
    rushy, Mar 24, 2005 IP