Search results auto-scrolls to the bottom of the page

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
mmcgrath
Posts: 38
Joined: Wed Jul 10, 2013 9:31 pm

Search results auto-scrolls to the bottom of the page

Post by mmcgrath »

We are currently running phpMyFAQ 2.9.11. When you type text in the search box and hit the 'Search' button, it takes you to the next page with appropriate content, but the page is automatically scrolled down to the very bottom of the page (so you are seeing the last of the search results...).

Has anybody seen this before? Is there a fix?

Thanks!
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search results auto-scrolls to the bottom of the page

Post by Thorsten »

Hi,

which browser do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mmcgrath
Posts: 38
Joined: Wed Jul 10, 2013 9:31 pm

Re: Search results auto-scrolls to the bottom of the page

Post by mmcgrath »

It happens in all three major browsers (Edge, Chrome, Firefox). They are all up-to-date running the latest version.
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search results auto-scrolls to the bottom of the page

Post by Thorsten »

Hi,

do you have a public FAQ to reproduce it?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mmcgrath
Posts: 38
Joined: Wed Jul 10, 2013 9:31 pm

Re: Search results auto-scrolls to the bottom of the page

Post by mmcgrath »

Yes, it is at albert.carthage.edu.
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search results auto-scrolls to the bottom of the page

Post by Thorsten »

Hi,

that's because you use an unchanged 2.8 layout with 2.8 JavaScript code with phpMyFAQ 2.9

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mmcgrath
Posts: 38
Joined: Wed Jul 10, 2013 9:31 pm

Re: Search results auto-scrolls to the bottom of the page

Post by mmcgrath »

Thanks Thorsten.

I'm not doing that on purpose, since I'm not sure what that even means! :)

Could you help me get to a better spot? Is it an easy change/fix?
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search results auto-scrolls to the bottom of the page

Post by Thorsten »

Hi,

as you're using the unchanged 2.8 layout you could switch to the 2.9 default layout.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mmcgrath
Posts: 38
Joined: Wed Jul 10, 2013 9:31 pm

Re: Search results auto-scrolls to the bottom of the page

Post by mmcgrath »

Sorry...how do you do this?

I see in Administration --> Edit Configuration --> Template set to be used is set to 'default' (the only option is default).

Is that what you're talking about? Or should I be looking elsewhere?
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search results auto-scrolls to the bottom of the page

Post by Thorsten »

Hi,

just download the ZIP package from phpmyfaq.de, remove the default folder inside the template folder and copy the 2.9 default layout stuff into it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mmcgrath
Posts: 38
Joined: Wed Jul 10, 2013 9:31 pm

Re: Search results auto-scrolls to the bottom of the page

Post by mmcgrath »

Thank you! That seemed to do the trick. Things are looking better! :)
Post Reply