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: 37
Joined: Wed Jul 10, 2013 9:31 pm

Search results auto-scrolls to the bottom of the page

Post by mmcgrath » Mon Oct 08, 2018 6:01 pm

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: 14644
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 » Mon Oct 22, 2018 6:55 am

Hi,

which browser do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

mmcgrath
Posts: 37
Joined: Wed Jul 10, 2013 9:31 pm

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

Post by mmcgrath » Mon Oct 22, 2018 2:34 pm

It happens in all three major browsers (Edge, Chrome, Firefox). They are all up-to-date running the latest version.

Thorsten
Posts: 14644
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 » Tue Oct 23, 2018 7:04 pm

Hi,

do you have a public FAQ to reproduce it?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

mmcgrath
Posts: 37
Joined: Wed Jul 10, 2013 9:31 pm

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

Post by mmcgrath » Tue Oct 23, 2018 7:09 pm

Yes, it is at albert.carthage.edu.

Thorsten
Posts: 14644
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 » Tue Oct 23, 2018 7:29 pm

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: 37
Joined: Wed Jul 10, 2013 9:31 pm

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

Post by mmcgrath » Tue Oct 23, 2018 7:40 pm

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: 14644
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 » Tue Oct 23, 2018 7:42 pm

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: 37
Joined: Wed Jul 10, 2013 9:31 pm

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

Post by mmcgrath » Tue Oct 23, 2018 7:58 pm

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: 14644
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 » Wed Oct 24, 2018 6:41 pm

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: 37
Joined: Wed Jul 10, 2013 9:31 pm

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

Post by mmcgrath » Wed Oct 24, 2018 8:28 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest