Help wanted: Geo targetting

Discussion in 'PHP' started by bellweather, Jan 5, 2007.

  1. #1
    Hi,

    I am having a few issues adding geo targetting onto a few sites.

    I need someone to change it to allow it to work properly.

    Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/domain/public_html/includes/mainad1.php on line 13

    What I am using is here:

    http://www.fadinsite.com/showthread.php?t=24

    Please PM me offers on putting geo on a few sites.
     
    bellweather, Jan 5, 2007 IP
  2. smatts9

    smatts9 Active Member

    Messages:
    1,089
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    88
    #2
    Your going to have to show us what you have on line 13 and probably a few lines before and after?
     
    smatts9, Jan 5, 2007 IP
  3. bellweather

    bellweather Peon

    Messages:
    214
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    Its the ypn code on the lines..

    <script language="JavaScript">
    <!--
    (this line) ctxt_ad_partner =
     
    bellweather, Jan 5, 2007 IP
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Show us the entire code.

    Peace,
     
    Barti1987, Jan 5, 2007 IP
  5. quaffapint

    quaffapint Active Member

    Messages:
    299
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Odds are your ad code has a single quote in it - which ends the statement in your case. Try replacing the single quotes in your ad code with double-quotes.
     
    quaffapint, Jan 6, 2007 IP
  6. bellweather

    bellweather Peon

    Messages:
    214
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi,

    Yes, they do under ypn.. but are you allowed to modify the YPN codes? I thought they were the same as adsense where you had to post them unmodified?

    <script language="JavaScript">
    <!--
    ctxt_ad_partner = 'YPNNUMBER';
    ctxt_ad_section = '';
    ctxt_ad_bg = '';
    ctxt_ad_width = 336;
    ctxt_ad_height = 280;
    ctxt_ad_bc = '000000';
    ctxt_ad_cc = '000000';
    ctxt_ad_lc = 'FFFFFF';
    ctxt_ad_tc = 'FFFFFF';
    ctxt_ad_uc = 'FFFFFF';
    // -->
     
    bellweather, Jan 6, 2007 IP