Text Link Ads - Font Formatting

Discussion in 'Link Development' started by travoholic, Nov 8, 2007.

  1. #1
    I'm not totally sure this is the right place but I couldn't find anywhere else so here goes...

    I have the TLA text colour set to white and I'll be moving it over to a new version of the site where the background is light grey so white isn't gonna cut it anymore. Problem is I can't find the place on the TLA site to change my font colour.

    Any ideas?
     
    travoholic, Nov 8, 2007 IP
  2. webmasterlagoon

    webmasterlagoon Peon

    Messages:
    112
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I edit the code directly.
    this is a sample php code I use:

    <?php
    $inventory_key="your own site's key";
    $mytla='<div style="float: right; margin: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;">';

    // replace [xml_key] with the xml_key from your my sites page.
    // each site has it's own inventory_key/xml_key
    //
    // Please make sure there are no spaces in the url below.
    // We had to add a space between & and the r in referer
    // so that the code could fit one page.
    $xml = file_get_contents( "http://www.text-link-ads.com/xml.php?inventory_key=$inventory_key&referer=$_SERVER[REQUEST_URI]&user_agent=$_SERVER[HTTP_USER_AGENT]" );

    $xml_obj = simplexml_load_string($xml);

    foreach ($xml_obj->Link as $link_data) {

    $mytla.= "{$link_data->BeforeText} <a href='{$link_data->URL}'>{$link_data->Text}</a> {$link_data->AfterText}<br>";

    }
    $mytla.='</div>';


    //my code
    if($_SERVER["REQUEST_URI"]=="/")
    {
    echo $mytla;
    }
    ?>

    ======================================================

    You can set css style in here:
    $mytla='<div style="float: right; margin: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;">';

    Or you can directly edit your links look in here:
    <a href='{$link_data->URL}'>{$link_data->Text}</a>

    for example you can set the color to Black like this:
    <a style='color: Black;' href='{$link_data->URL}'>{$link_data->Text}</a>
     
    webmasterlagoon, Nov 9, 2007 IP