View Full Version : Missing argument 4 for construct_page_nav()
Oreamnos
10-05-2005, 10:35 AM
I have a few custom pages in 3.0.x where i was utilizing vb's pager function. i am trying to port my old scripts/pages to 3.5 but now i am getting this error Warning: Missing argument 4 for construct_page_nav() in /includes/functions.php on line 1789 at this line:$pagenav = construct_page_nav($glossary_count['count'], "index.php?", "&sort=$sortfield&order=$sortorder&pp=$perpage");
What is the 4th argument for the construct_page_nav()?
Marco van Herwaarden
10-05-2005, 06:48 PM
// ################################################## ###########################
/**
* Returns the HTML for multi-page navigation - based on code from 3dfrontier.com
*
* @param integer Total number of items found
* @param string Base address for links eg: showthread.php?t=99{&page=4}
* @param string Ending portion of address for links
*
* @return string Page navigation HTML
*/
function construct_page_nav($pagenumber, $perpage, $results, $address, $address2 = '')
Paul M
10-05-2005, 07:16 PM
Not really a very helpful reply.
If you check it out properly (as I had to) you will find that two arguments have been added to the beginning of the parameters, the old function only expected $results, $address & $address2 to be passed (with $address2 being optional).
Marco van Herwaarden
10-05-2005, 07:32 PM
Yes and i think the 2 new parameternames are self explanatory.
Andreas
10-05-2005, 08:56 PM
Not really a very helpful reply.
Really?
In my opinion it was very helpful as it gave the exact answer for his problem.
Paul M
10-05-2005, 09:07 PM
Really?
In my opinion it was very helpful as it gave the exact answer for his problem.Whatever.
Oreamnos
10-06-2005, 12:23 AM
MarcoH64 & Paul M, thanks. both answers were helpful and needed to answer my question.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.