Testing out new Comments Module for EE 1.2b.

I convinced Rick Ellis to modify ExpressionEngine’s comment module to allow it to be used outside of individual entry pages for things such as the Recent Comments list on the sidebar. This is a significant change for a number of reasons not the least of which is the fact that I no longer need to use a plugin to do the recent comments list, but also because it allows for the list to be paginated as you can see at the bottom of the listing. Right now the pagination links aren’t working quite right on the index, but on individual entries they work just fine and will allow you to parse through previous comments 10 at a time in the sidebar. I probably won’t use pagination in the sidebar, though, because the real place for it is on a separate template I’ve made that will list all of the comments 50 at a time starting with the most recent and paginating the rest.

I call this new template the All Comments Page!

Original, eh? Now you can read through every single comment ever put into SEB starting with the most recent and working backwards with links to both the entry itself and the comment available for you to click on. If it’s been a couple of days since you were last here you don’t have to worry that something interesting has slid off the 10 comments list on the sidebar. This is a big change and I’m interested in hearing back from folks on any problems they run into as well as how much they like/dislike it so beat the hell out of it and let me know if anything breaks. Right now I know that something breaks on the Monthly Archive pages, but I’m not sure it’s anything to do with the changes in the comments module or not so I’m looking into that. I also know that clicking on the pagination on the sidebar when on an individual entry page will work fine, but causes the entry to disappear so those two bugs you don’t need to report. Let me know about anything else you find.

3 thoughts on “Testing out new Comments Module for EE 1.2b.

  1. I’d be happy to share them. Here’s the sidebar:

    {exp:comment:entries limit=“10” orderby=“date” dynamic=“off” sort=“desc” weblog=”{master_weblog_name}”}

    <p>{url_or_email_as_author} wrote:
    {exp:html_strip}{exp:word_limit total=“30”}{comment}{/exp:word_limit}{/exp:html_strip}
    [<a href=”{url_title_path =“seb/comments”}#c{comment_id}”>go</a>]</p>

    {paginate}
    <div class=“paginate”>
    <span class=“pagecount”>Page {current_page} of {total_pages} pages</span>  {pagination_links}
    </div>
    {/paginate}

    {/exp:comment:entries}

    And all I did for the All Comments template was take my index template and yank all the bits in the middle out and replaced them with:

    {exp:comment:entries limit=“50” orderby=“date” dynamic=“off” sort=“desc” weblog=”{master_weblog_name}” paginate=“both”}

    <p><span class=“commenttitle”>On {comment_date format=”%m/%d/%y”} {url_or_email_as_author} said the following in <a href=”{url_title_path =“seb/comments”}”>{title}</a></span>

    <div class=“contentcell”> {comment}</div>
    [<a href=”{url_title_path =“seb/comments”}#c{comment_id}”>go</a>]</p>

    {paginate}
    <div class=“paginate”>
    <span class=“pagecount”><a href=“https://stupidevilbastard.com/”>&laquo; Back to Main</a> Page {current_page} of {total_pages} pages</span>  {pagination_links}
    </div>
    {/paginate}

    {/exp:comment:entries}

    </div>

    That’s it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.