Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
I had a user complain today about losing their message during an attemped post. He had forgotten to enter in a subject and when the error checking catches this, it automatically forwards them back to new topic page. The problem is that you do not pass the body of the message back, so anything they typed is lost.

Thanks,
Jeff

Anonymous
Unregistered
Anonymous
Unregistered
This is not a bug, though the behavior is rather annoying.

We have plans to add Javascript form validation to most forms, so forgotten fields won't cause such problems. However, we can not fix the clearing of the form. This is something the user will need to take up with his or her browser vendor.

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
I don't know Perl that well, but is it not possible to do server side validation and pass the body as a variable? I come from an ASP background and I know it is possible to do this there. Just thinking aloud.

Cheers,
Jeff

Anonymous
Unregistered
Anonymous
Unregistered
Yes, but we can't very well do that if the user hits his or her back button. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

The ultimate solution would be simply presenting the form again, but doing this and making the error obvious presents an issue. The code is currently not designed to think that way.

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
I think it can be done with a some modifications to public_polls, new_topic_form, pm_form, edit_post and new_reply_form.pl, ubb_new_topic.cgi, ubb_new_reply.cgi, ubb_pm.cgi, ubb_polls.cgi: just use:
<pre><font color="red">Errors: etc etc</font></pre>
and then show the form again. The difference should be the line that presents that error, and all form objects have to have value="$updatevaluemessage" or whatever instead of value=""... then if there is an error, it will fill in the value auomatically.

--------------------
UBBDev.com - Where UBB developers come for answers!

Anonymous
Unregistered
Anonymous
Unregistered
That doesn't change the fact that things just won't work that way in the code.

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
Maybe the FYI window will show the original post in <pre>, then the user can copy & paste?

--------------------
UBBDev.com - Where UBB developers come for answers!

Anonymous
Unregistered
Anonymous
Unregistered
That's a sloppy workaround at best...

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
3 members (Nightcrawler, Stovebolt, 1 invisible), 907 guests, and 160 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)