Cannot get adbrite script to work

Discussion in 'Scripts' started by nicedeals, Aug 6, 2007.

  1. #1
    Can someone help me please.
    trying to replace commission junction script with adbrite but page gives a string error when I do so.

    The code as it is now is;

    {
    $imageflipStr = '<p align="center"><b><font face="Verdana" style="font-size: 9pt"><a href="salvaged.php?brand='.$ebrand.'&model='.$emodel.'&refnum='.$refnum.'">' . tep_image(DIR_WS_IMAGES .'/theme/thb_img.jpg') .'</a></font></b></p>';
    $imgadstr = '<SCRIPT type="text/javascript" LANGUAGE="javascript" src="http://www.qksz.net/1e-dbas"> </SCRIPT> <BR> <SCRIPT type="text/javascript" LANGUAGE="javascript" src="http://www.qksz.net/1e-dbax"> </SCRIPT>';
    }

    -------------------------------
    when I insert the adbrite code on the page like this;

    {
    $imageflipStr = '<p align="center"><b><font face="Verdana" style="font-size: 9pt"><a href="salvaged.php?brand='.$ebrand.'&model='.$emodel.'&refnum='.$refnum.'">' . tep_image(DIR_WS_IMAGES .'/theme/thb_img.jpg') .'</a></font></b></p>';
    $imgadstr = '<SCRIPT type="text/javascript" LANGUAGE="javascript" src="http://www.qksz.net/1e-dbas"> </SCRIPT> <BR> <!-- Begin: AdBrite -->
    <script type="text/javascript">
    var AdBrite_Title_Color = 'ff0000';
    var AdBrite_Text_Color = '000000';
    var AdBrite_Background_Color = 'f7f7f7';
    var AdBrite_Border_Color = '000000';
    </script>
    <script src="http://ads.adbrite.com/mb/text_group.php?sid=397492&zs=3330305f323530" type="text/javascript"></script>
    <div><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=397492&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>
    <!-- End: AdBrite -->';
    }

    the page gives an error

    Parse error: syntax error, unexpected T_STRING in /home/nicedeal/public_html/includes/languages/english/salvaged.php on line 57

    Someone help please!
     
    nicedeals, Aug 6, 2007 IP
  2. nicedeals

    nicedeals Active Member

    Messages:
    679
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #2
    c'mon guys, someone must know??
     
    nicedeals, Aug 12, 2007 IP
  3. nicedeals

    nicedeals Active Member

    Messages:
    679
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #3
    got it working..thought I'll post it here in case there's any other members stuck with same problem.

    you need to replace the ( ' ) with ( " ) in the adbrite code, so the adbrite code should be like;

    !-- Begin: AdBrite -->
    <script type="text/javascript">
    var AdBrite_Title_Color = "ff0000";
    var AdBrite_Text_Color = "000000";
    var AdBrite_Background_Color = "f7f7f7";
    var AdBrite_Border_Color = "000000";
    </script>
    <script src="http://ads.adbrite.com/mb/text_group.php?sid=xxxxxxxxxxxxxxxx" type="text/javascript"></script>
    <div><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=xxxxxx
    &afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>

    <!-- End: AdBrite -->
     
    nicedeals, Aug 18, 2007 IP
  4. AlTeC

    AlTeC Banned

    Messages:
    289
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    oh.. didn't checked your thread before, otherwise I could help you with it. Anyhow, its good to see that you solved it yourself.
     
    AlTeC, Aug 18, 2007 IP