“WordPress Threaded Comment Numbering Plugin Updated” Comments, Page 1
You are currently browsing page 1 of comments on the article WordPress Threaded Comment Numbering Plugin Updated.
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 Plugin for WordPress Updated to Version 1.2”.
27 Responses (Including 11 Discussion Threads) to “WordPress Threaded Comment Numbering Plugin Updated”
-
1
First, thank you for the plugin!
Second, I have found a bug in version 1.2: you put closing bracket in incorrect place. See file gtcn-options-functions.php, function do_options(…), lines 223-224:
$header = wptexturize(__($settings['header'][$stepper]), $domain);
$preface = wptexturize(__($settings['preface'][$stepper]), $domain);
The __(text, domain) function has to have two parameters! But in your code, it has only one parameter. It looks, you place a first closing bracket in incorrect place. The code above has to look like this:
$header = wptexturize(__($settings['header'][$stepper], $domain));
$preface = wptexturize(__($settings['preface'][$stepper], $domain));
Hope, it will help making the pluging better! :)
-
2
Thanks for a great plugin. I love it!
I am new at this so I followed your instructions very carefully. You state on the instructions page
Replace wp_list_comments() in your theme’s comments.php file with wp_list_comments(‘callback=gtcn_basic_callback’)
My file had this:
wp_list_comments(array(
‘avatar_size’=>$bfa_ata['avatar_size'],
‘reply_text’=>__(‘ · Reply’,'atahualpa’),
‘login_text’=>__(‘Log in to Reply’,'atahualpa’),
‘walker’ => new Walker_Comment2,
‘max_depth’ => ”,
’style’ => ‘ul’,
‘callback’ => null,
‘end-callback’ => null,
‘type’ => ‘comment’,
‘page’ => ”,
‘per_page’ => ”,
‘reverse_top_level’ => null,
‘reverse_children’ => ”
))
and now I have _list_comments(‘callback=gtcn_basic_callback’) where all the above was. Is this OK?In my comments.php file, there were 3 instances of the above and I replaced them all only to find that my comment numbers were starting from 0 :)
So I only replaced the first one. Now my numbers start at 1. Is this OK? Do I have to do the other 2? This won’t cause problems later?
Thanks again for a great plugin.
-
3
Sorry, forgot to click on the notify me button.
-
4
Thanks for the great plugin. I wasn’t sure how to handle numbering threaded comments and I really like how you do it. One thing I noticed however is that the div for the reply button is printed no matter if a reply is allowed or not. For a lot of themes this probably isn’t a problem but in my theme the reply button is styled using the parent div. I allow a depth of just 4 due to the narrow width of my content pane and while the reply buttons looked great for depths 1 through 3, beneath 4 where there should be no button at all, was a button with no text or link. This looked quite bizarre.
To resolve this I added a check around the div where it only shows the button if depth is less than max depth. It’s now fixed for my setup but I’m sure others will have this same issue.
One other thing, could you please add a class to the comment div on line 208? I need to add a bit of spacing to this div but the id has comment info appended to it so I wasn’t sure how to hit it with css. My workaround was to simply throw a style tag on it and call it good.
I’d like to be able to upgrade when you release an update without having to go in and modify the code again and I think both of these things affect more than just myself.
Thanks again!
Blimey
-
draguscn5
Thanks for good plugin ..
I just migrated from Intense debate .. my question are
1. how do style stuff like you do here?
2. some of my old comments is not right placed as answers of another comments.. such as the number for that comments must be 23, 24, 25 and on .. instead the number are 22.1, 22.2, 22.3 and on ..
-
6
Greg,
I’ve turned on IntenseDebate for my blog. So far so good, but I can’t get your comment numbering to show.
Are the two incompatible?
-
7
Thanks, Greg. I’ll contact ID support to see what they say.
-
8
Hello Greg,
thanks for your great plugin. I’ve one problem, I changed the order of my comments with ‘reverse_top_level’=>DESC. For example, if I have 23 comments orderd DESC, the plugin counts from 23 to 45. Is there a possibility to count from 23 to 1?
With best regards, Whoppy.
-
9
Not really, because I need both variants on my blog, ASC and DESC order. But thanks for your quick reply.
-
10
Hi Greg,
you are the best. With reserve_top_level set to 1 it works perfect. The funny thing is that the comment order also had changened with reserve_top_level set to true, but not the numbering.
Anyway, thanks for your help, have a nice day.
Best regards, Whoppy.

Newer Comments »