Quote:
Originally Posted by cellarius
You need to add your sort value to the pagination url parameters, then retrieve it (using get, not post in the input cleaner).
Don't forget to set your dropdown to the chosen value.
|
Thank you very much for you help.
I used the guide on here to setup the pagination,
This code is used in the pagination, to be honest, I did not take much notice of it just that it worked... But is this where I need to append the GET of the orderby value?
PHP Code:
$pagenav = construct_page_nav(
$vbulletin->GPC['pagenumber'],
$perpage,
$file_pages['files_count'],
'web.php?' . $vbulletin->session->vars['sessionurl'], // the pagenav-link
'', // to pass a second portion or the pagenav-link, gets directly appended to above
'', // to pass an anchor
'', // SEO-Link for thread, forum, member... pages - make the pagenav-links seo'ed if you use the paginator on one of those
'', // Array to pass linkinfo for SEO-Link-Method
'' // Array to pass additional Info for SEO-Link-Method
);
Thank you again, much appreciated
Mick
--------------- Added [DATE]1434095288[/DATE] at [TIME]1434095288[/TIME] ---------------
Cellerus you are a Legend, it was so easy when you think about it!!!
For anyone looking for the same issue I did as said above changed everything to GET (not POST). then just added in the orderby into the pagination construct
PHP Code:
$pagenav = construct_page_nav(
$vbulletin->GPC['pagenumber'],
$perpage,
$file_pages['files_count'],
'webspace.php?' . $vbulletin->session->vars['sessionurl'],
'&orderby='.$orderby // THIS IS WHERE I ADDED THE FORM CALL
);