Customization

Discussion in 'Co-op Advertising Network' started by nfzgrld, Dec 23, 2004.

  1. #1
    This works really well. I've only had it online for a few minutes and I must say I'm happy to have something worthwhile in that hole I had in my site. I do have one suggestions. It would be very helpful, and not too difficult to do, to have a place in the ad_network.php file to setup some color vars to pass to the text ads and text banners. In that way the add can be tweaked to have the same color scheme as the site.

    Nick
     
    nfzgrld, Dec 23, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    The background color of the banners can be set in the setup instructions (where it generates the PHP code for ad_network.php). For the rest, the best option would be to surround the ad(s) in your pages with <span> tags and do it with CSS.
     
    digitalpoint, Dec 23, 2004 IP
  3. nfzgrld

    nfzgrld Peon

    Messages:
    524
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok, I guess I missed something when I looked at the code that ended up in the text file. I order to do what I want to do I'd have to change the color and other attributes in the table tags. I'll spend some time on it tomorrow and see what I can come up with.

    Nick
     
    nfzgrld, Dec 23, 2004 IP
  4. larryweiss

    larryweiss Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #4
    The span solution is doing nothing for me.

    I am using the html version of the script, and when I set the class using <span class="somethinguseful"> nothing happens.


    I have also dried <div class="somethinguseful">. Also nothing.

    It sure would make the site look better if I could forrmat the ads.

    Any suggestions?
     
    larryweiss, Jan 14, 2005 IP
  5. rtheodorow

    rtheodorow Peon

    Messages:
    129
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can format the ad's. By default the ad's pick up the A refrence from any stylesheet. I ran into the issue of wanting the coop links different from the other links on the page. You can add this to your stylesheet -

    SPAN A:LINK { font-family: Arial; font-size: 10px; font-style: normal; text-decoration: none; color: #939090;}
    SPAN A:VISITED { font-family: Arial; font-size: 10px; font-style: normal; text-decoration: none; color: #939090;}
    SPAN A:HOVER { font-family: Arial; font-size: 10px; font-style: normal; text-decoration: none; color: #666666;}

    Make sure the COOP code is inside the SPAN tag (you don't need to add a class to it...I just did a align=center" on my page. You can see mine here www.stormfrontproductions.net (at the bottom) for a working example. Let me know if you have any problems.
     
    rtheodorow, Jan 14, 2005 IP
  6. larryweiss

    larryweiss Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #6
    Thank you for the help. It worked well for the link, but the description and the yucky grey background are unaffected.

    Cheers
     
    larryweiss, Jan 14, 2005 IP
  7. cgo85

    cgo85 Peon

    Messages:
    380
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    how do you seperate the ads with a "|" though if you're showing five text ads?
     
    cgo85, Jan 14, 2005 IP
  8. rtheodorow

    rtheodorow Peon

    Messages:
    129
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You would add code similiar to this for the "|".

    $ad_network[0]&nbsp&nbsp | $ad_network[1]

    However, I tried this myself and sometime it puts the "|" before and after the first and last ad's.....which looks bad in my opinion. So I just left 3 spaces between the ads and they look pretty good (www.stormfrontproductions.net). Hope this helps.
     
    rtheodorow, Jan 15, 2005 IP
  9. cgo85

    cgo85 Peon

    Messages:
    380
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    That isn't working for me... this is what my code looks like:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    include ('ad_network.php');
    include ('ad_network.php');
    include ('ad_network.php');
    include ('ad_network.php');
    echo $ad_network[0], $ad_network[1], $ad_network[2], $ad_network[3], $ad_network[4];
    ?>
     
    cgo85, Jan 15, 2005 IP
  10. rtheodorow

    rtheodorow Peon

    Messages:
    129
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Try putting it in quotes similiar to this:

    echo "$ad_network[0]&nbsp | &nbsp $ad_network[1]&nbsp | &nbsp $ad_network[2]&nbsp | &nbsp $ad_network[3]&nbsp | &nbsp $ad_network[4]";
     
    rtheodorow, Jan 15, 2005 IP
  11. cgo85

    cgo85 Peon

    Messages:
    380
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #11
    that worked thanks.
     
    cgo85, Jan 15, 2005 IP
  12. leonardlee

    leonardlee Peon

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Make sure the COOP code is inside the SPAN tag (you don't need to add a class to it...I just did a align=center" on my page. You can see mine here www.stormfrontproductions.net (at the bottom) for a working example. Let me know if you have any problems.[/QUOTE]

    Rookie question: So it should look like:
    <span align="center"> All the Co-op PHP code here </span>
    ????
     
    leonardlee, Jan 21, 2005 IP