almost got the seemless ajax pagination right but help me spot the bug in my code
Design and Skin Customization
okkkkkk
may see a problem but nbeed your help in making it work in seemless
heres how its done in the gallery
the list calls made from the widget not a template
(cant see hoew that matters)
in the template the list callsto is
<a name="ratgal" id="ratgal"></a>
<div class="item photosearch">
{jrSearch_module_form fields="gallery_title,gallery_image_title,gallery_caption,gallery_description,gallery_image_name"}
</div>
<div class="item center" style="margin: 10px;padding-bottom: 10px;">
<div id="ratedgalleries">
{jrCore_include template="highest_rated_galleries.tpl"}
</div>
</div>
the main works done in hoighesat_rated_galleries
{capture name="highest_rated_gallery_row" assign="highest_rated_gallery"}
{literal}
{jrCore_module_url module="jrGallery" assign="murl"}
{if isset($_items)}
<div class="container">
{foreach from=$_items item="item"}
{if $item@iteration == 1 || $item@iteration == 5}
<div class="row">
{/if}
<div class="col3{if $item@iteration is div by 4} last{/if}">
<div class="img-profile"{if jrCore_is_mobile_device()} style="margin-bottom:50px;"{/if}>
<a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.gallery_image_name|urlencode}" title="{$item.gallery_caption|default:$item.gallery_image_name|jrCore_entity_string}">{jrCore_module_function function="jrImage_display" module="jrGallery" type="gallery_image" item_id=$item._item_id size="xlarge" crop="auto" class="iloutline img_scale" alt=$item.gallery_image_name title=$item.gallery_image_name style="max-width:292px;max-height:292px;"}</a><br>{if isset($item.gallery_image_title)}
{$item.gallery_image_title|truncate:30:"...":false}
{else}
{$item.gallery_image_name|truncate:30:"...":true}
{/if}<br>
<a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.gallery_title_url}" title="{$item.gallery_title}">{$item.gallery_title|truncate:25:"...":false}</a><br>
<a href="{$jamroom_url}/{$item.profile_url}" style="margin-bottom: 10px;">@{$item.profile_url}</a><br>
<div class="gallery_rating">
{jrCore_module_function function="jrRating_form" type="star" module="jrGallery" index="1" item_id=$item._item_id current=$item.gallery_rating_1_average_count|default:0 votes=$item.gallery_rating_1_count|default:0}
</div>
</div>
</div>
{if $item@iteration == 4 || $item@iteration == 8}
</div>
{/if}
{/foreach}
{if $info.total_pages > 1}
<div class="row">
<div class="col12 last">
<div class="block">
<table style="width:100%;">
<tr>
<td style="width:25%;">
{if isset($info.prev_page) && $info.prev_page > 0}
<input type="button" value="{jrCore_lang module="jrCore" id=26 default="<"}" class="form_button" onclick="jrLoad('#ratedgalleries','{$jamroom_url}/highest_rated_galleries/p={$info.prev_page}');$('html, body').animate({ scrollTop: $('#ratgal').offset().top -100 }, 'slow');return false;">
{/if}
</td>
<td style="width:50%;text-align:center;">
{if $info.total_pages <= 5}
{$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('#ratedgalleries','{$jamroom_url}/highest_rated_galleries/p=' +sel);$('html, body').animate({ scrollTop: $('#ratgal').offset().top -100 }, 'slow');">
{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 style="width:25%;text-align:right;">
{if isset($info.next_page) && $info.next_page > 1}
<input type="button" value="{jrCore_lang module="jrCore" id=27 default=">"}" class="form_button" onclick="jrLoad('#ratedgalleries','{$jamroom_url}/highest_rated_galleries/p={$info.next_page}');$('html, body').animate({ scrollTop: $('#ratgal').offset().top -100 }, 'slow');return false;">
{/if}
</td>
</tr>
</table>
</div>
</div>
</div>
{/if}
</div>
{/if}
{/literal}
{/capture}
{jrCore_list module="jrGallery" order_by="gallery_rating_overall_average_count numerical_desc" template=$highest_rated_gallery pagebreak="8" page=$_post.p}
that capture lireral could that be the cause
i know u had this on the eventual todo list i just nbeed it now so i figfured if i started to work it out might help u fill in the gaps and get it done
its real close and i think this is it jjst need to know how to peice it together so it works