The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
showing pagenumbers when searching
I would like to show the pagenumbers of topics too, when you do a search (active topics f.i.)
Does this take a lot of queries? Can this be done easily? thx, www.crapforum.nl |
#2
|
|||
|
|||
guess not
|
#3
|
||||
|
||||
I know this is old but I had this thread in my bookmarks and I'm just cleaning up.
Anyhow, in search.php add this: Code:
if (($bbuserinfo['maxposts'] != -1) and ($bbuserinfo['maxposts'] != 0)) { $maxposts = $bbuserinfo['maxposts']; } if (($searchresult['replycount']+1) > $maxposts and $linktopages) { $thread = $searchresult; // for templates $totalpages = ($searchresult['replycount']+1)/$maxposts; if ($totalpages != intval($totalpages)) { $totalpages = intval($totalpages)+1; } $acurpage = 0; $pagenumbers = ''; while ($acurpage++ < $totalpages) { if ($acurpage == $maxmultipage) { eval("\$pagenumbers .= \"".gettemplate('forumdisplay_multipagenav_more')."\";"); break; } else { eval("\$pagenumbers .= \"".gettemplate('forumdisplay_multipagenav_pagenumber')."\";"); } } eval("\$searchresult[pagenav] = \"".gettemplate('forumdisplay_multipagenav')."\";"); } else { $searchresult['pagenav']=''; } Code:
} else { unset($paperclip); } And now in your searchresultbit_threadonly template add: Code:
<smallfont>$searchresult[pagenav]</smallfont> Code:
$searchresult[threadtitle]</a></normalfont> |
#4
|
|||
|
|||
wow, thx...
i will give it a try. |
#5
|
|||
|
|||
My users had this exact request, since they use the "Todays Active Threads" link alot, I just followed FireFly directions and it worked great! Thanks FireFly!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|