MyBB Community Forums

Full Version: Group Search results on New Posts Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm looking at the php code for the search.php page and I'm admitting that I'm pseudo literate when looking at code.

We moved from an old forum software that allowed us to make the search results divide out by the sub-forums. So for example If I have:

FORUM_A
  SubA1
  SubA2
  ...
  SubA9
FORUM_B
  SubB1
  ...
  SubB5

And I click on New Posts the results would come back with a sort that showed each main forums's new posts in chronological order separated. So all of FORUM_A and it's children would be grouped, then all of FORUM_B, etc.

I figured that I should be able to add a new input string to the search.php page like search.php?action=getnewbygroup but when I look at the case for getnew I don't see sorting options. Best that I can tell is that it get's redirected possible to a template that decides the sorting?

Can anyone help me understand where I should start my tinkering?