Search 
Search Forums:


 




Change comments display format

Reply to Post
UserPost

12:36 am
May 2, 2008


Juni

Guest

hello,

Thank you for the great plugin. I am attempting to modify the way the comments are displayed.

They currently display as:

………
line 1: author posted the following on date at time
line 2: comments here
………

I would like everything to appear on one line such as:

author: comments - date/time

how would i do this?

Thank you.

8:53 pm
May 9, 2008


Aaron

Admin

posts 245

You will want to take a look at the text control plugin for WP, and after installing and activating it, edit the /modules/inlinecomments/templates/comment.php file to look like:

  1. <?php echo $awpall['comment_tag']; ?>
  2. <?php get_comment_author_link(); echo ':' ;?>
  3. <?php comment_text(); ?>
  4. <?php echo sprintf(' - %2$s/%3$s.',get_comment_author_link(), get_comment_date(),get_comment_time());?>
  5. <?php echo $awpall['comment_tag_end']; ?>
  6. Use the following to copy and paste the code.

1:26 pm
May 12, 2008


Juni

Guest

Thank you.

I copied it and edited the comment.php, however now, the author’s name is missing. Any suggestions?

1:41 pm
May 12, 2008


Juni

Guest

Actually, I fixed it. Thank you again for your help.

10:05 am
May 13, 2008


jm

Guest

hi. i am having a hard time with this. for some reason when i edit the file, it scrambles up my comments. hope you can help. thanks

10:44 am
May 13, 2008


Aaron

Admin

posts 245

What do you mean it scrambles your comments?

11:45 pm
May 14, 2008


jm

Guest

just to make sure..exactly which parts on the php file am i to edit? i think i attempted to replace the lines in the original file with those that you listed, and the comments had major spaces between each word.

12:45 am
May 15, 2008


Aaron

Admin

posts 245

Can you post a link to where this is happening? it sounds like the text is justified.

8:06 am
May 18, 2008


jm

Guest

thanks i figured it out. however, the author’s name is missing. also, how can i alternate comment color? i have it set in my themes default css, however it is not accepting the changes.

11:48 am
May 18, 2008


Aaron

Admin

posts 245

You are using a modified script that had most of the features removed.

Find (in the same file):
<?php echo $awpall['comment_tag']; ?>

Replace With the original function:
<?php echo "\n\n".str_replace(array('%ID','%alt','%auth'),array($comment->comment_ID,$alt,$auth),$awpall['comment_tag']); ?>

Reply to Post


Reply to Topic: Change comments display format

Name (Required):

EMail (Required):

Website):

Guest URL (required)

Math Required!
What is the sum of: 10 + 1        (Required)

Topic Reply:


 

About the Anthology of Ideas forum

Currently Online:

4 Guests

Maximum Online: 33

Forums:

Groups: 2

Forums: 6

Topics: 214

Posts: 673

Members:

There are 1 members

There are 201 guests

Aaron has made 245 posts

Top Posters:

Administrator: Aaron