“Greg’s Threaded Comment Numbering Plugin for WordPress” Comments, Page 3

avatar image

You are currently browsing page 3 of comments on the article Greg’s Threaded Comment Numbering Plugin for WordPress.

104 Comments (Including 31 Discussion Threads) (Commenting Closed Automatically After 270 Days)

More on WordPress plugins

Greg’s WordPress plugins available at CounsellingResource.com can help you to:

Would you like to reach the community of bloggers using particular plugins? Check out the Sustainable Plugins Sponsorship Network.

You are currently browsing comments. If you would like to return to the full story, you can read the full entry here: “Greg’s Threaded Comment Numbering: Number Your WordPress 2.7 Comments the Easy Way”.

104 Responses (Including 31 Discussion Threads) to “Greg’s Threaded Comment Numbering Plugin for WordPress”

  1. avatar image
    Michael
    21

    Hi Greg,

    How did you limited your nesting to 2 threads? Your second nesting of comments have no reply to comment readers link. How did you do that? Also at the top where it says 50 Comments (Including 14 Discussion Threads) how did you separate comments from threads?

    Regards,
    Michael


    • 21.1

      Hi Michael,

      For the first, just visit your WordPress discussion settings (click on settings, then on discussion): it’s right there with the option labelled “Enable threaded (nested) comments X levels deep”.

      For the second, you’ll need another of my plugins:

      Greg’s Show Total Conversations

      All the best,
      Greg


  2. avatar image
    koolvn
    22

    Hi Greg,
    With your plugin, is it displaying both comment numbers and avatar just like your blog? If yes, is it possible to enable each separately or not? If not, what should I do to get it?
    Thanks


    • 22.1

      Hi koolvn,

      The comment numbering is provided by the plugin, while avatars are available to theme developers via the built-in WordPress function get_avatar. Many themes come with built-in avatar support; those which don’t can often be retro-fitted for them by providing a comment callback function that includes a call to get_avatar.

      This particular site uses a custom avatar function, rather than the built-in one, but the principle is exactly the same.

      All the best,
      Greg


  3. 23

    [...] *Greg’s Threaded Comment Numbering If you host giveaways, I’m sure you know how much of a ain it can be to get the number when you don’t have numbered comments. This plugin will number the comments so once you pull that winner, you can go straight to that post. [...]


  4. avatar image
    det
    24

    Great plugin, really. Not very friendly at first, but once you read it throughfully, it really do the trick, and the css is really beautiful

    thank you!


  5. avatar image
    Nicole
    25

    Hi Greg,

    Thank you for this great plugin. I have one question…when I activate it, it causes the CSS on my comment styling to change. I see that in the plugin file, it wraps everything in a tag which makes the author, date, and comment very small. However, I dont know how to change that back to my regular CSS? Where is the extra CSS file go that is described in the settings options (add extra CSS file?). Thanks so much in advance!


    • 25.1

      Hi Nicole,
      Reading between the lines, I’m guessing that you are using the very basic callback function bundled with the plugin, rather than modifying your theme’s existing callback function. Except for folks using the default WordPress theme, this is virtually guaranteed to cause styling changes.
      The preferred alternative is to modify your existing callback function just to insert the number where you would like it to appear — that guarantees that everything except the comment number remains exactly the same, with or without the plugin active.
      All the best,
      Greg


  6. avatar image
    Miral
    26

    I would like to have comments threaded but numbered as if they were viewed unthreaded (ie. the reply to comment 2, shown immediately below, might be comment 14; comment 3 would appear after all the replies to comment 2). Doable with this plugin, or a pointer to a different one, perhaps?


    • 26.1

      Hi Miral,
      The plugin provides a ‘jumble count’ mode which will number comments in the order received (equivalent to the order in which they are displayed if not threaded). However, you should use jumble count mode with some caution, because it requires a database query to compute the number of each and every comment on the page — unlike the normal method, which hits your database just once per page. If you permit large numbers of comments to appear on a single page, jumble count mode may affect the responsiveness of your site.
      All the best,
      Greg


  7. Orchids Galore – POV
    27

    [...] included nested [...]


  8. avatar image
    David Walker
    28

    how can i modify my existing callback function just to insert the number where you would like it to appear with existing styling???

    Where am i going wrong!! i have read all the posts but still confuded!!


    • 28.1

      Hi David,

      As described in the instructions, you can use echo gtcn_comment_numbering($comment->comment_ID, $args); (preferably wrapped in a conditional) to display the number where you’d like it to appear.

      It’s unfortunate that the new WordPress comment features actually require blog admins to undertake theme editing and PHP code editing in order to take full advantage of them — but that’s where we are as of versions 2.7 and 2.8. If you have a peek at the example callback function included with the plugin, you’ll find a link to the following WordPress documentation, which explains callback functions in more detail and which is probably the best place to start if you’d like additional pointers on how to modify your own callback function:

      http://codex.wordpress.org/Template_Tags/wp_list_comments

      All the best,
      Greg


  9. avatar image
    Gabriel
    29

    Thank you so much for this plugin, it just made theming a wordpress installation so much easier without sacrificing any of the manual control I like. I don’t want to rely on too many plugins, but this one is a must.


  10. avatar image
    Gabriel
    30

    OK, so I actually had a question as well:

    When using wp_list_comments(‘reverse_top_level=1&callback=mycustomfunction’), everything is great except for one issue regarding pagination. The pages are assembled by populating from page 1 until it runs out of comments. But since I’m reversing comment order, that means the page that is displayed FIRST (the last page, the most recent comments) can have any number of comments in it, from 1 to my max number per page (20). This is kind of funky; ideally, it would populate the pages backwards, so the page displayed always has the max number of comments per page, and it is only when you go back to the oldest comments (page 1) that you trail off with a couple comments.

    Otherwise, it can look at first glance as if few people have commented.

    Any suggestions? Hints? I don’t need a tutorial, so please don’t feel obligated to answer in detail, but I just literally have no clue how to change this.

    Thanks,
    -Gabriel


    • 30.1

      Hi Gabriel,

      This is actually a WordPress ‘feature’, rather than anything to do with the plugin. The theory is that it is best to preserve the URL at which a given comment can be found — if you were always to keep the first displayed page full as you’ve described, then URLs would change each time a new comment got bumped off that page and onto the next.

      By the way, I personally would recommend using the admin option to reverse the order, rather than hard-coding that into your theme… (Some people do hard code it when their theme requires different ordering depending on context, but unless you have a specific need to do so, I think it’s much more flexible to stick with the option in the admin panel.)

      All the best,
      Greg


    • avatar image
      Gabriel
      30.2

      Thanks again Greg. Actually I do need to hard-code it because I want normal ordering for comments, but reverse order for a “guestbook” page. I’ve looked at some of the guestbook plugins out there and I prefer to use the theme to generate the guestbook for the moment.

      I see what you mean about the links. I guess that will do then. Thank you so much for your time!


Page 3 of 5«12345»

The comment form is currently closed; commenting now closes automatically after 270 days.