Welcome Guest, Not a member yet? Register   Sign In
Custom Pagination Number
#1

[eluser]web_developer[/eluser]
I am using pagination library, it's working fantastic. But the thing is only that I want to change the page parameter..

hmmm For example.

Recently here is the pagination Prev. 1 2 3 4 5 Next

If I click of "2" (2nd number page) then in URL parameter it's showing "page10" and on 3rd page it's showing "page20". So instead of that I want to show page number according to link

like this

1 -> page1
2 -> page2
3 -> page3
4 -> page4
5 -> page5

So how can I change the pagination parameter? for that What I have to do?
#2

[eluser]farinspace[/eluser]
Here is an extended version of the Pagination.php file, put it in your "/applications/libraries" folder ...

I use this on my Blogging Topics site ... you can see an example here: http://www.bloggingtoc.com/topic/what-is-a-blog

let me know if that works for you ...
#3

[eluser]web_developer[/eluser]
Pagination links coming perfectly, Even in URL parameter is coming proper.. But now display result is changed. I have member gallery. When I click on "2nd page link" then same member again repeating in next page. So I have to do any settings for that? because in earlier query it was like this..

LIMIT 0,10
LIMIT 10,10

And Now it is coming like this

LIMIT 0,10
LIMIT 2,10
LIMIT 3,10
#4

[eluser]farinspace[/eluser]
sorry, i myself was wondering if i had forgotten anything ...

Code:
$page = $page > 1 ? $page - 1 : 0 ;
$limit = 10;
$start = $page * $limit;

// SQL
LIMIT $start, $limit
#5

[eluser]web_developer[/eluser]
Yes, Now it's working perfectly.. Thanks for the help.




Theme © iAndrew 2016 - Forum software by © MyBB