Hello, PHP master, please help me….
This is my question.
1. I want to numbering to user in comments filed.
for example
————
1. name1 , 2004 06 04
brahbrahbrah.
————
2. name2 , 2004 06 05
brabrabrabrabra.
————-
like this, and I tried to wrote some php code.
but it does’n t work…. so ,how should I write for??
(I dont want to use <li> tag, because of design issue.)
2. And I have another question,
I want to replace anonymous user name for “Anonymous”,
Becouse when I was using MT, I allow user to comment anonymously,
(I mean I didn’t require Name, or E-mail, besides comment itself.)
Then, I imported old data from MT, name field turned just blank.
so I want to change blank to “Anonymous”.
This is my broken PHP code.
{exp:comment:entries}
<? php for($j = 0; $j++);
<span class=“posted”>
$j .
if(!$name) $name=“Anonymous”;
{url_or_email_as_author}
{comment_date format=’%y/%m/%d’} {comment_date format=’%H:%i’}
</span>
<p>{comment}</p>
?>
{/exp:comment:entries}
Please help me!!
