Plugins & Hacks

Why does my page keep scrolling down to the login form after I login?

Scenario:
"Whenever I login to my Nucleus website, it scrolls to http://www.mywebsite.com/index.php#nucleus_lf. How can I stop this from happening?"

Solution:
This anchor is set in two files in the /nucleus/forms/ directory called loginform-loggedin.template and loginform-notloggedin.template.

To stop the page from scrolling, simply delete the following bit of code:

 id="nucleus_lf"

in each file. You can also delete this bit:

 action="#nucleus_lf"

in the loginform-notloggedin.template file.

NOTE: These are modifications of Nucleus CMS core files. When you install or upgrade to a new version, you may need to make these changes again. As always, before changing any core files, ensure you first make a back up!

Original forum thread (thanks, ftruscot!):
http://forum.nucleuscms.org/viewtopic.php?t=13660

section: Plugins & Hacks | submitted by Leng on 2007.Jan.26 | 1542 views

item rate
This answer was not rated yet.

Please tell us how useful this answer was to you (0 = useless, 10 = very very helpful):

10