PJ Dark - Page Jumper on Site_News.tpl

Dazed
Dazed
@dazed
12 years ago
1,022 posts
For some reason on my index page, the page jumper displays 2 and it should show 1 since it is on the first page. Below is the code but I am not seeing what would cause this.

Anyone?


[code]
{if $info.total_pages > 1}





{if isset($info.prev_page) && $info.prev_page > 0}
 
{else}
 
{/if}



{if $info.total_pages 500}
{$info.page}  / {$info.total_pages}
{else}


updated by @dazed: 12/25/13 04:48:01PM
douglas
@douglas
12 years ago
2,797 posts
Hey Dazed,

There is an error in the code for the form jumper... in your index.tpl file find this:

<select name="pagenum" class="form_select" style="width:60px;" onchange="var sel=this.form.pagenum.options[this.form.pagenum.selectedIndex].value;jrLoad('#site_news_div','{$jamroom_url}/site_news/p=' +sel);>

and change it to this:

<select name="pagenum" class="form_select" style="width:60px;" onchange="var sel=this.form.pagenum.options[this.form.pagenum.selectedIndex].value;jrLoad('#site_news_div','{$jamroom_url}/site_news/p=' +sel);">

You'll need to do the same in the site_news.tpl file.

I'm not sure why the jumper is starting at 2 though...


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
12 years ago
2,797 posts
I fixed this for you Dazed...


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
12 years ago
1,022 posts
Thanks Douglas.