|
|
|
|
Joined: Feb 2002
Posts: 950
Hacker
|
|
Hacker
Joined: Feb 2002
Posts: 950 |
How hard would it be to have page numbers for search results to speed up finding ones with lots of responses?
|
|
|
|
|
Joined: Feb 2002
Posts: 950
Hacker
|
|
Hacker
Joined: Feb 2002
Posts: 950 |
Well, I added: // Pages<br />$numpages = (sizeof($results) / $Limit);<br />$morepages = "";<br /><br />if ( $numpages > 1 ) {<br /> for( $x=1; $x<($numpages+1); $x++ ) {<br /> if ($x == $Searchpage) $morepages .= " · <span class=\"standouttext\">$x</span>";<br /> else $morepages .= " · <a href=\"dosearch.php?Cat=$Cat&Searchpage=$x&topic=$topic\">$x</a>";<br /> }<br />}<br />if ( !empty($morepages) ) $morepages = "Result Pages $morepages";Under the $nexylinkstop code block in dosearch.php and then add $morepages to the bottom of the search results. It isn't pretty for 100+ pages of results, but it works and I can clean it up later.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 449
Joined: February 2008
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,825
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 3174
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 10
|
|
|
|
|
|