Keep search query when search returns no results

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
dhruv.goel92
Registered User
Posts: 22
Joined: Sun Mar 18, 2012 9:30 pm

Re: Keep search query when search returns no results

Post by dhruv.goel92 »

So a notice saying "You requested page X but there are only Y pages in this result set, page Y is shown" or redirection to the last valid page?

Senky
Extension Customisations
Extension Customisations
Posts: 314
Joined: Thu Jul 16, 2009 4:41 pm

Re: Keep search query when search returns no results

Post by Senky »

Notice is much better! It is never bad to show more info, than to show it less and confuse users...

dhruv.goel92
Registered User
Posts: 22
Joined: Sun Mar 18, 2012 9:30 pm

Re: Keep search query when search returns no results

Post by dhruv.goel92 »

This is how i have done as of now - https://github.com/phpbb/phpbb3/pull/864 It can be modified to do redirection as well

Post Reply