My issue is that the site comments page next is not working. It is not even displayed so the first {if $info.total_pages > 1} kills it immediately. The other two work as expected however they are blogs and this is a comment page. I removed the conditional statement so that I at least get the page back/forward displayed.
Any ideas?
{* ROW TEMPLATE *}
{capture name="row_template" assign="site_comments_template"}
{literal}
{if isset($_items)}
{foreach from=$_items item="item"}
<div class="block">
<div style="display:table">
<div style="display:table-row;">
<div style="display:table-cell;width:1%;text-align:center;vertical-align:top;">
<a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="small" crop="auto" alt=$item.user_name class="action_item_user_img iloutline"}</a>
</div>
<div style="display:table-cell;text-align:left;vertical-align:top;padding-left:5px;">
<div class="normal">
<div style="padding:10px;">
<div class="br-info" style="margin-bottom:20px;">
<div class="blog-div">
<span class="blog-user capital"> Re: <a href="{$item.comment_url}"> {$item.comment_item_title}</a></span>
</div>
<div class="blog-div">
<span class="blog-replies"> By: {$item.user_name} <a href="{$jamroom_url}/{$item.profile_url}">@{$item.profile_name}</a></span>
</div>
<br><br>
{$item.comment_text|jrCore_format_string:$item.profile_quota_id}
<br><br>
</div></div></div></div></div></div></div>
{/foreach}
{if $info.total_pages > 1}
<div class="block">
<table style="width:100%;">
<tr>
<td class="body_5 page" style="width:25%;text-align:center;">
{if isset($info.prev_page) && $info.prev_page > 0}
<a onclick="jrLoad('#site_comments_div','{$jamroom_url}/site_comments/p={$info.prev_page}');"><span class="button-arrow-previous"> </span></a>
{else}
<span class="button-arrow-previous-off"> </span>
{/if}
</td>
<td class="body_5" style="width:50%;text-align:center;">
{if $info.total_pages <= 5 || $info.total_pages > 500}
{$info.page} / {$info.total_pages}
{else}
<form name="form" method="post" action="_self">
<select name="pagenum" class="form_select" style="width:60px;" onchange="var sel=this.form.pagenum.options[this.form.pagenum.selectedIndex].value;jrLoad('#site_comments_div','{$jamroom_url}/site_comments/p=' +sel);">
{for $pages=1 to $info.total_pages}
{if $info.page == $pages}
<option value="{$info.this_page}" selected="selected"> {$info.this_page}</option>
{else}
<option value="{$pages}"> {$pages}</option>
{/if}
{/for}
</select> / {$info.total_pages}
</form>
{/if}
</td>
<td class="body_5 page" style="width:25%;text-align:center;">
{if isset($info.next_page) && $info.next_page > 1}
<a onclick="jrLoad('#site_comments_div','{$jamroom_url}/site_comments/p={$info.next_page}');"><span class="button-arrow-next"> </span></a>
{else}
<span class="button-arrow-next-off"> </span>
{/if}
</td>
</tr>
</table>
</div>
{/if}
{/if}
{/literal}
{/capture}
{* COMMENT LIST FUNCTION *}
{jrCore_list module="jrComment" order_by="_item_id NUMERICAL_DESC" template=$site_comments_template pagebreak="10" page=$_post.p}
updated by @dazed: 04/24/17 02:18:05PM