![]() |
[SOLVED] More option comment numbering on Byline.
Good morning and congratulations for the great theme.
In wp-includes (comment-templates.php) I changed the original function comments_number in order to have a fifth option ($ zero = false, $ one = false, $ less = false, $ more = false, $ deprecated = ''). The code works fine on the pages of posts. What I ask is: how do I implement the same function to have the vision of the counts even in the setting of the byline?. I use Ata 3.7.10 and wp 3.5.1 Thanks |
you'll probably have to edit bfa_postinfo.php but first I'd suggest you upgrade to 3.7.12
|
Thanks kind Mr. Juggledad.
Honestly though, I can not proceed. Can you be so kind as to tell me exactly where and what to change?. Thanks |
not really, not without knowing what you did to comment-templates.php and then spending a lot of time looking at the interaction.
This is not a theme issue and beyond what I'm willing to do for free because of how much of my time would be involved. If you aren't capable of doing this, I suggest you advertise and see if you can hire someone to do it or rethink the need for this. |
2 Attachment(s)
What you wrote is correct and I can not pretend, of course.
I hope that seeing the changes that I have made, you can guess if the problem is solved or not. Thanks anyway gentle Mr. Juggledad. Code:
function comments_number( $zero = false, $one = false, $less = false, $more = false, $deprecated = '' ) { Two of the results are these: |
Good afternoon Mr. Juggledad,
really you can't help me, just only addressing me on the right way?. I'm sure that the others guys like the adding option. Please!. Best regards |
You are looking for a custom modification to the theme. This is beyond the scope of this forum.
I suggest you hire someone to do it for you. |
Right!.
Thank you Mr. Juggledad!. |
Good morning, kind Mr. Juggledad.
It was not really that hard. All it took was fiddling about thirty minutes and at the end I got what I wanted, without losing, in fact, long time. I think that a capable person like you, would solve the problem in two minutes and would not have engaged for hours, as you had written. Sometimes it would be advisable not stick exclusively for the purposes of the forum, because we are all "in the same boat." Have a wonderful day!. |
so why don't you share your solution for others?
|
Hello gentle Mr. Juggledad.
I didn't it, because you wrote that the question that I have submitted, is not part of the interest of this blog!. |
I said it wasn't a theme issue and I wasn't willing to dig into it.
Bbut since you have figured it out, why not share your solution with others on the forum. Write up a detailed explaination of what you did...after all isn't that what you wanted me to do? |
All right!.
My little need came from the desire to highlight the items with a substantial number of comments. As I described before, the function should give me back not 4 but 5 conditions: 0, 1, >1 and <?, >?. First I find the function 'comments_number' in wp-includes/comment-template.php, and I laid down the conditions as in the following pieces of code. Code:
function comments_number( $zero = false, $one = false, $less = false, $more = false, $deprecated = '' ) { Code:
function comments_popup_link( $zero = false, $one = false, $less = false, $more = false, $css_class = '', $none = false ) { Code:
.... Code:
.... Code:
.... That's all!. ------------------- I made also some variations in the comment.php, but for to show what I posted already and you can see on the above pictures. |
Hello gentle Mr. Juggledad,
What do you think of this?. Friendliness |
Good job! hopefully someone else may find this helpful.
btw don't forget that the next time you update WordPress or the theme you will have to redo part or all of this. |
Hello gentle Mr. Juggledad,
Thank you... I keep in my mind your suggestions!. A next. Bye |
All times are GMT -6. The time now is 07:48 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.