Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Trying to Highlight Author comments

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26509

    Using this code in the comments.php

    Code:
  • user_id)
    $oddcomment = “authcomment”;
    echo $oddcomment;
    ?>”

with CSS

Code:
.authcomment {
background-color: #B3FFCC !important;
}

Can’t get it to work. Any Ideas?

You can find an author comment(Barbara) at the bottom of this post.
http://respectyourpet.com/?p=73

#65766
davesgonebananas
Member

You have curly quotes, or "smart quotes" – the kind generated by Microsoft Word – in your code. PHP won’t recognise them so make sure you use a programmers text editor to edit PHP files, and only use " and ‘ for quotation marks.

Code:
  • PS. You can use Notepad++ on the PC and TextWrangler on Mac.

    #65770
    Historical Forums User
    Participant

    Yea, I was wondering about those question marks. But I am using Coda. Those lines are generated by PHP right?

    #65796
    Historical Forums User
    Participant

    Ok, I got that changed, but I’m still seeing the question marks. Any other ideas?

    #65797
    davesgonebananas
    Member

    You have 4 funny quotes to fix – one on the line starting <li class=", 2 on the line starting $authcomment = and 1 on the ?>" line.

    I think if you get them all it will solve your problem.

    Cheers
    Dave

    #65799
    Historical Forums User
    Participant

    Thanks a million. :ugeek:

    Viewing 6 posts - 1 through 6 (of 6 total)