Forums

inove theme comment numbering pages (21 posts)

  1. Tarmu
    Member
    Posted 3 years ago #

    Hello All.. I have just noticed that comments are numbered all over again from 1 if you have more pages with comments.

    Like a post with 60 comments and every 15 comments a new page will number like this.
    page 1 has comments 1 till 15
    page 2 has comments 1 till 15
    page 3 has comments 1 till 15
    page 4 has comments 1 till 15

    This is very confusing.

    Is this fixable?

  2. t31os
    Member
    Posted 3 years ago #

    Does wordpress split comments into pages then?

    I thought you need a plugin for that. If so you'd need to check the plugin files or perhaps ask for help at the authors website.

    Can't see any comment numbers on my default WP install.

  3. t31os
    Member
    Posted 3 years ago #

    I correct myself, as of 2.7 comments can be threaded and paged.

    Yet 10 minutes using search here and google and i cannot find any documentation on how to handle these new features....

    NOTE TO WP STAFF:: Could you make it easier to find said Docs... please :) I'll send you a cookie....

  4. Tarmu
    Member
    Posted 3 years ago #

    Correct! I'm using the split function from within WordPress itself. Not another plugin. I hope there will be a solution to this :)

  5. t31os
    Member
    Posted 3 years ago #

    Can you give me an example of the code you're using?....

    I'm pretty new to WP, but if i see the code i might get an idea... it's worth a shot..

  6. Tarmu
    Member
    Posted 3 years ago #

    I'm using the default inove theme comment template. Maybe you can find something in there. I didn't customize any code of the comment template.

    The comment splitting is also the default option in WP. I'm not a n00b with code & wordpress :) but this thing I didn't solve yet.

  7. t31os
    Member
    Posted 3 years ago #

    If you can post a link to download the theme i'll take a quick peak at it tomorrow for you.

    No guarantees, but like i said, i can take a shot... :-)

  8. t31os
    Member
    Posted 3 years ago #

    If you can post a link to download the theme i'll take a quick peak at it tomorrow for you.

    No guarantees, but like i said, i can take a shot... :-)

  9. t31os
    Member
    Posted 3 years ago #

    Download link for theme?

  10. t31os
    Member
    Posted 3 years ago #

    test post ... :-( having issues posting....

  11. Tarmu
    Member
    Posted 3 years ago #

    here it is t31os http://wordpress.org/extend/themes/inove

    thx for helpin :)

  12. Tarmu
    Member
    Posted 3 years ago #

    I have tried a fresh copy of the inove theme without modifications. But the problem still exists, comments are numbered over and over again on each comment page.

    If you look at the theme's website the problem doesn't appear. So what else could it be? It's not in the theme I guess?

  13. t31os
    Member
    Posted 3 years ago #

    Have a problem with my local WP install, in that i can't login, it's blocked me....

    I'm gonna have to test this live...

    I'll see what i can do...

    If the theme's website doesn't have the issue it could just be the author has some extra mods running or he's made some personal changes to the theme.

    EDIT: Actually i'll just do a fresh install (nothing important on the install) locally and give it a whirl...

  14. Tarmu
    Member
    Posted 3 years ago #

    t31os:

    I just did a fresh install of the english 2.7.1 (newest) wordpress with the last version of the inove theme. Same problem again :(

    Let me know if you have tried! thanks

  15. t31os
    Member
    Posted 3 years ago #

    Ok so what have you changed to make comments show on seperate pages?

    Default WP install...
    Default Inove Theme install...

    All comments show on one page...

    Please explain how you get the comments to split across pages and i'll work from there.

    In any case it's this line that handles the comment number...

    <a href="#comment-<?php comment_ID() ?>"><?php printf('#%1$s', ++$trackbackcount); ?></a>

  16. t31os
    Member
    Posted 3 years ago #

    Problem i see is the way it handles the counting is to literally count the results on the page.

    Which is pretty straight-forward to do with PHP...

    I'm not sure how you'd handle incrementing that across comment pages, since the way it's done now doesn't account for that, or at least that's outside my scope of knowledge...

    I think your best bet is to ask the theme author, if he's doing it on his site, then there's no reason he shouldn't be able to tell you... unless of course it's a SECRET.... lol...

    Sorry i can't help more.....

  17. Tarmu
    Member
    Posted 3 years ago #

    You can enable comment paging in wordpress by default. See the Settings -> Discussions.

    You can enable after 3 or more comments. Don't use default 50, or you have to post a lot test comments :)

  18. Tarmu
    Member
    Posted 3 years ago #

    haha :D I will ask the author :)

  19. mg12
    Member
    Posted 3 years ago #

    Do you mean the comment numbers? like #1, #2, #3, ...
    That is not a bug, but I can show you how to change.

    Search the following lines in functions.php:

    $commentcount = 0;

    And change the codes to:

    if (get_option('page_comments')) {
    // get current comment page ID
    $r = wp_parse_args( $args, $defaults );
    $page = $r['page'];
    if ( !$page ) {
    $page = 1;
    }
    $commentcount = get_option('comments_per_page') * ($page - 1);
    } else {
    $commentcount = 0;
    }

  20. Tarmu
    Member
    Posted 3 years ago #

    Thanks a lot mg12!!
    This should be default in the theme :D

    Fast support and superb theme! thanks!

  21. t31os
    Member
    Posted 3 years ago #

    Handy to know.... :-)

  22. jrbcalendar
    Member
    Posted 3 years ago #

    My question is how to get comments to WORK at all! Using 2.7.1 and iNove theme.
    http://www.johnnyrodgers.com/wordpress/ this is a new blog still working on the bugs... but was not expecting commenting to be so difficult.

    The link for comments "..../#response " can not find the URL (error http 404). This does not seem to be unique to iNove theme as the WP default theme also does not allow comments to work on my blog.

    Any ideas?

  23. t31os
    Member
    Posted 3 years ago #

    Sounds like a problem with the permalink settings if you're getting URL issues.

  24. jrbcalendar
    Member
    Posted 3 years ago #

    You are RIGHT! I finally got set on that track. The issue was one that the .htaccess file was not created when WordPress was installed.

    Under SETTINGS is the Permalinks area that is used to identify the URL for your blog posts. There are a variety of selections there. Since I am hosting WordPress on my own, apparently WP is unable to add or update this area automatically (like it does on adding Plugins). So one has to update the .htaccess file yourself. NOTE: It does say this cryptically at the bottom of the Permalinks page - but for a newbie like me - I just did not get it until I read the ALL ABOUT PERMALINKS section of the WP documentation.

    I created a 1.htaccess file copying the code suggested at the bottom of the Permalinks page. Then I ftp'd the file to into my WordPress directory, changed the name to .htaccess ... and suddenly I was able to post comments.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags