I really like this plugin and have already used it in a number of pages, but now I've got to revamp a few of them using AJAX. So I'd like to remain using this add-on, but it would have to be changed.

I don't know if something like this has already been proposed, but could the add-on be extended to not only produce links with href and get variables, but alternatively links with href="#" and onclick="ajaxproc(pagenumber); return false;" ?

Not sure if I am the only one who is experiencing this, but here is a fix who are. I had some issues where we would be using pagination on one link ( page1.php ), people would then follow another link to another part of our site ( page2.php ), upon going back to page1.php the last page they were on, they are brought to the last page of the pagination they were on.. IE page 6 say, instead of being refreshed back to page 1. If anyone else comes across this, here is what we did

in SmartyPaginate.class.php ( starting ~ 223 ), You can obviously adjust ['next'] to whatever you use , or there may even be a class object you can use to make it universal

More or less just replace the 2 functions ( getCurrentItem & getCurrentIndex )

Code:

function getCurrentItem($id = 'default') {
/**
* fix by RCS
* initial page landing would show page 3 if that is where they were last
*/
if(!isset($_GET['next'])){
return "1";
}else{
return $_SESSION['SmartyPaginate'][$id]['current_item'];
}