|
|
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: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|