Gregs Plugins: Because One Size Does Not Fit All

Plugins for WordPress

Greg Mulhauser

Comments on “Introducing Greg’s Threaded Comment Numbering Plugin for WordPress”, Page 5

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

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 (31 Discussion Threads) to “Introducing Greg’s Threaded Comment Numbering Plugin for WordPress”

  1. avatar image
    Dardin Kay
    41

    Is there any way that I could change where the number is being displayed? I have looked and found nothing. If it isn’t possible, could you add it in a future release?

    • 41.1

      If you have a peek at the instructions, you’ll find your question answered there.

      All the best,
      Greg

  2. 42

    Dear Greg, Your Plugin is absolutely wonderful. It works beautifully on my blog.

    But I have one problem which prohibits me from using your plugin right now. But it works – I’ve tried it and everything is beautiful

    The problem is that I already have one call back function on wp_list_comments to show the Twitter ID of visitors. This is the current call back:

    ( function_exists(‘twitter_comment’) ? ‘twitter_comment’ : null ), ‘avatar_size’ => 75 ) ); ?>comment_ID, $args); ?>

    I’ve tried to insert your call back function on comments.php and it doens’t work. From what I understand, I can only have one call back function on wp_list_comments?

    I’ve read your instructions on modifying functions.php but didn’t get through it.

    Do you have any suggestions on how I could use these 2 call back functions in comments.php and/or functions.php?

    Thanks. But if I have to choose, I’m gonna choose Twitter ID…

    Diane

    • 42.1

      Hi Diane,

      If you already have a custom callback function, just insert gtcn_comment_numbering($comment->comment_ID, $args) within the callback function wherever you would like the comment number to appear. While you’re at it, you can make any other changes you want to change how your comments appear — inserting the comment number is just one of many things you can add to your comments, and the callback function is where it all happens.

      I’m not able to offer tutorials on how to edit your theme files or modify your callback function, but the ‘Instructions’ tab of the plugin’s configuration pages includes a link to the WordPress documentation that explains all about callback functions and some of the things you can do with them.

      All the best,
      Greg

    • 42.2

      Dear Greg,

      Thanks for your suggestion but I’ve inserted the code just about everywhere and it ain’t working!

      Here again is my code:
      [?php wp_list_comments( array('callback' => ( function_exists('twitter_comment') ? 'twitter_comment' : null ), 'avatar_size' => 75 ) ); ?]

      Would you be king enough to tell me where I should insert the code that you suggested:
      gtcn_comment_numbering($comment->comment_ID, $args)

      Thanks again.

      Diane
      I’d really like

    • 42.4

      Hi Diane,

      It sounds like you’ve found another way around the problem without having to dive to deeply into the callback function business. I’m glad to hear it’s working for you!

      All the best,
      Greg

  3. avatar image
    Zalman
    43

    Hi! I tried to update your new version of plagging – but WP noted ”
    Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/potoktrk/public_html/…./wp-content/plugins/gregs-threaded-comment-numbering/gtcn.php on line 139″ Whats problem and how can I repair it? My version of WP – 2.8.6

    • 43.1

      Hi Zalman,

      Whoops, I accidentally slipped into object method chaining and broke support for PHP4; version 1.3.1 should be available from the plugin repository shortly and will restore backward compatibility with PHP4.

      By the way, PHP4 was discontinued over a year ago, in the third quarter of 2008. There are lots of performance reasons to move to PHP5, so unless you have a compelling need for PHP4, I’d encourage you to look into it.

      All the best,
      Greg

Page 5 of 5«12345

The comment form is currently closed.