Skip to:
Content
Pages
Categories
Search
Top
Bottom

Don’t scroll to the top when a error is encountered doing a reply


  • Chuckie
    Participant

    @ajtruckle

    To test:

    Just click Submit to try and submit an empty reply to a topic that is quite long (perhaps several replies already).

    When you hit submit it scrolls to the top of the page. This is misleading. If I scroll back down to the forum I tried submitting I now see some errors:

    • ERROR: Your reply cannot be empty.
    • ERROR: Please solve Captcha correctly.

    The user should have been taken to the location of this error div, not the top of the page.

Viewing 1 replies (of 1 total)

  • Chuckie
    Participant

    @ajtruckle

    I added some CSS styling to make the error notices stand out on my site:

    #bbpress-forums div.bbp-template-notice.error {
    	background: #fff !important;
    	padding: 2px !important;
    	border: solid 4px #000 !important;
    	outline:#ff0 solid 4px !important;
    	border-radius: 0px;
    }
    
    #bbpress-forums div.bbp-template-notice.error li {
    	color: #000 !important;
    }

    I am very happy with that. It is just this issue of bbPress jumping to the top of the topic rather than the actual error notice it has created in the reply forum.

    Is there a workaround for that or must it be fixed by bbPress authors?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar