Hack Forums
Add a maximum on the user away field input textbox - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hack Forums Official Information (https://hackforums.net/forumdisplay.php?fid=1)
+--- Forum: Site News (https://hackforums.net/forumdisplay.php?fid=2)
+---- Forum: Suggestions and Ideas (https://hackforums.net/forumdisplay.php?fid=134)
+---- Thread: Add a maximum on the user away field input textbox (/showthread.php?tid=5054125)



Add a maximum on the user away field input textbox - Optimized - Nov 11, 2015

http://pastebin.com/bQP6WHnF
(had to be added to pastebin, cloudflare doesnt like it)
When you set your away message to longer then the maximum char. length, you get the mybb error above.

My suggestion is you add a maxlength (like the usertitle)

Usertitle:
[Image: c8e7c7b489.png]

A maxlength should be added (like the usertitle one) in the html of the Away reason box.

More:

[Image: 88fd53d8e2.png]

In the image above, the HTML of the Away box should have a maxlength="(whatever it is)"


* - Exodi - Nov 11, 2015

Wow! This is actually very nice seen!


* - Lrrr - Nov 11, 2015

(Nov 11, 2015 10:06 AM)Anonymous Wrote:  http://pastebin.com/bQP6WHnF
(had to be added to pastebin, cloudflare doesnt like it)
When you set your away message to longer then the maximum char. length, you get the mybb error above.

My suggestion is you add a maxlength (like the usertitle)

Usertitle:
Spoiler (Click to View)

A maxlength should be added (like the usertitle one) in the html of the Away reason box.

Nice catch, and confirmed. This should be fixed.

Also, I wonder if there is a way to turn off the failed sql disclosure. That seems like an un-needed amount of information for the public.


* - Optimized - Nov 11, 2015

(Nov 11, 2015 10:11 AM)Lrrr Wrote:  Nice catch, and confirmed. This should be fixed.

Also, I wonder if there is a way to turn off the failed sql disclosure. That seems like an un-needed amount of information for the public.

Agree. If an error is displayed it should be like

Hack Forums has returned a MySQL error, not a mybb error page.