|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
When making a new post (not a reply) if subject field is left blank it is impossible to make a post, you need to hit back button and fill the subject in. The annoying bit is that whatever you've written in the Post field gets lost. So you're there writing and writing then hit continue but forgot to enter the subject - it's all gone as soon as you hit back on your browser (tested on firefox).
This is probably something that needs to be looked into. Temporary solution: edit 'newpost' template and put value="No Subject" in the Subject <input> element. When you will be making new post next time, the subject field will not be empty if you forget.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I'm looking at a few different header options to fix this. There are a few that can be specified so forms aren't blanked out. Just need to make sure that they don't interfere with normal behaviour.
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
To have a proper solution would be really nice since when the form reset itself all the optional tick boxes return to the default settings as well.
|
|
|
|
Joined: Jun 2006
Posts: 182
member
|
member
Joined: Jun 2006
Posts: 182 |
On our board ( www.shroomery.org/forums/ ) we made it so that you are returned to the composing page again, with all the text you filled in, and an error message explaining the problem(no text, no subject, too long text, too many quotes ...)
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
[]I'm looking at a few different header options to fix this. There are a few that can be specified so forms aren't blanked out. Just need to make sure that they don't interfere with normal behaviour. [/]
Any progress?
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
I like what Anno has sugguested; instead of giving a raw error and having to hit back and do your thing, just reload the newpost script with the already filled variables (the post) and have an error listed at the top "You must enter a subject" to where a user can just fill in the sub and hit enter wihtout having to do any part of hitting back oand praying things function properly <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
which method do you use to pass variables back to newpost?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
You can try adding a one-liner to ubbt.inc.php. It's what I'm testing now to see if it causes any issues, but so far it seems to be ok. In ubbt.inc.php on line #130 you'll see this:
$check = @session_start();
Right after that, add this:
header("Cache-control: private");
|
|
|
|
Joined: Apr 2006
Posts: 116
member
|
member
Joined: Apr 2006
Posts: 116 |
So far so good, thanks Rick.
|
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
2 members (Geoff, 1 invisible),
692
guests, and
171
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|