Posts tagged comments
How to highlight author comments in WordPress
202008-10-13
by shamas
| 2,154 views
试过很多方法,今天终天搞定,google了很多种方法结合起来,其实改起来倒是蛮简单的,不知为何我试了N次才成功。 :m:
According to the default theme,comments.php。 1 Editing my comments.php file to add a little code Default comments.php file had a line that looked like this:
$oddcomment = 'class="alt" ';and I changed it to more or less look like this:
$oddcomment = 'alt';looked like this:
echo $oddcomment; ?id="comment- ?php comment_ID()and I changed it to more or less look like this: class=” ?php /* Only use the authcomment class from style.css if the user_id is 1 (admin) */ if (1 == $comment-user_id) $oddcomment = “authorcomment”; echo More >
Online Comments Maybe Not Total Waste of Time
2By Marissa Cevallos, Science News
There’s a science behind the comments on websites.
It’s actually quite predictable how much chatter a post on Slashdot or Wikipedia will attract, according to a new study of several websites with large user bases. And the thread of an online conversation—whether it sticks to the original topic or users comment on each other’s comments—can be modeled as a tree with discussions veering off on branches, researchers report online November 2 at arXiv.org. Click here to find out more!
The findings give hope to social scientists trying to understand broader More >