Search 
Search Forums:


 




Editing “Unnamed” theme to add inline comments

Reply to Post
UserPost

12:50 pm
May 8, 2008


Bernard Doddema, Jr

Guest

I know your instructions mentioned doing this:

To display Inline Comments on any page.

1. Open your theme’s index.php or archive.php file.
2. Find the WordPress loop. All edits will take place inside the loop.
3. Add < ?php do_action('awp_comments_link');?> where you want the show/hide comments link to appear.
4. Add < ?php do_action('awp_comments'); ?> where you want the comments to appear when they are loaded
5. Save and Upload
6. Optionally repeat this for single.php, page.php, archives.php etc.

The theme that I’m using…instead of having the loop in the index has its own file. Where the comments come in is here:

<?php comments_popup_link(' <span class="metacmt">'.__('Add a comment','unnamed').'</span>', '<span class="metacmt">1 '.__('Comment','unnamed').'</span>', '<span class="metacmt">% '.__('Comments','unnamed').'</span>', '', '<span class="metacmt">'.__('Closed','unnamed').'</span>'); ?>

Currently, it shows either “Add comment” or how many comments there are to a certain post. I’d like to somehow keep that functionality.

Where do I add the code you mentioned from your instructions in this mess? I’d like the form to show up underneath the “add comment” just as yours does.

I’d appreciate any help. Thanks. BTW, I remember when INAP was just starting. This is leaps and bounds beyond that! Congrats!

7:24 pm
May 9, 2008


Bernard Doddema, Jr

Guest

I didn’t want to appear to much of an idiot and not even try so this is what I came up with:

  1. <?php //comments_popup_link(' <span class="metacmt">'.__('Add a comment','unnamed').'</span>', '<span class="metacmt">1 '.__('Comment','unnamed').'</span>', '<span class="metacmt">% '.__('Comments','unnamed').'</span>', '', '<span class="metacmt">'.__('Closed','unnamed').'</span>'); ?>
  2. <?php do_action('awp_comments_link');?>
  3. <?php do_action('awp_commentform_link');?>
  4. <?php do_action('awp_comments'); ?>
  5. <?php do_action('awp_commentform'); ?>

I can’t even begin to know if I did this correctly. If you look at my webpage, it made the “show/add comment” appear twice. What should I do? Delete one sort of code?

8:38 pm
May 9, 2008


Aaron

Admin

posts 226

Uncheck simple threaded comments if you have the default AWP template selected.

That will clear up the double link texts.

8:59 pm
May 9, 2008


Bernard Doddema, Jr

Guest

Aaron said:

Uncheck simple threaded comments if you have the default AWP template selected.

That will clear up the double link texts.


1. should i be using the default awp template?
2. i didn’t know what you meant by simple threaded comments so i disabled simple comments and threaded comments. is that what you wanted me to do?

The one thing I didn’t think to do was change the no comment text to “No comment”.

How do I use the “|” to separate the show comment and add comment text?

9:05 pm
May 9, 2008


Aaron

Admin

posts 226

1) Yes.
2) Nope, there is a checkbox near the enable/disable threaded comments that says “Use Simple Threading to thread” uncheck it.

3) I don’t see any more double links anywhere. Screenshot maybe?

9:09 pm
May 9, 2008


Bernard Doddema, Jr

Guest

Aaron said:

1) Yes.
2) Nope, there is a checkbox near the enable/disable threaded comments that says “Use Simple Threading to thread” uncheck it.

3) I don’t see any more double links anywhere. Screenshot maybe?


2. weird, i don’t see that one. emable “simple comments” again?
3. i edited my post to reflect that i changed the no comments text to “no comments”. duh! what gave it away was using your site as my example. hahaha.

Reply to Post


Reply to Topic: Editing “Unnamed” theme to add inline comments

Name (Required):

EMail (Required):

Website):

Guest URL (required)

Math Required!
What is the sum of: 9 + 12        (Required)

Topic Reply:


 

About the Anthology of Ideas forum

Currently Online:

5 Guests

Maximum Online: 33

Forums:

Groups: 2

Forums: 6

Topics: 185

Posts: 596

Members:

There are 1 members

There are 174 guests

Aaron has made 226 posts

Top Posters:

Administrator: Aaron