Keep posts in the same forum when editing

Keep posts in the same forum when editing
Ben@84171e7c Saturday 22nd July 2023, 18:28:54I was not sure if this is a bug or something that should be added as a feature. But whenever I edit a post in a particular forum, it automatically moves and places the post in a completely different forum. This is the forum that was chosen to show up under the blog.
It would be best if posts would stay in the forum they were originally assigned to unless a mod or admin wants to move them to another forum.
It would be best if posts would stay in the forum they were originally assigned to unless a mod or admin wants to move them to another forum.
Last modified by Ben@84171e7c on Saturday 19th August 2023, 03:32:00
Replies 7



I should be a little more clearer about this,
Path: flatboard/edit.php
Line: 107
This isn't going to work, because $_GET['forum']; is not being received, so there will be no recognition to see if that is the forum it needs.
Path: flatboard/edit.php
Line: 107
This isn't going to work, because $_GET['forum']; is not being received, so there will be no recognition to see if that is the forum it needs.
Last modified by Gavin on Monday 24th July 2023, 12:30:00
A Web developer and web security programmer



I have a simple solution to fix this:
To make the forum posts default to the same forums they are in and not choose by default the first forum on the Forum drop-down list which is in alphabetical order and then move that post to this possibly unrelated forum by default unless you select the original forum you edit a post. This is only visible for admins.
You can simply edit one line. Here is the original line 187 from the edit.php file found inside the Flatboard folder on your webserver.
And this gets replaced by this line which keeps the post you are editing in the same folder by default when you click submit.
You have no idea how many times I've had to go back and reedit a post again because I forgot to choose the original forum. It's nice to get this working.
To make the forum posts default to the same forums they are in and not choose by default the first forum on the Forum drop-down list which is in alphabetical order and then move that post to this possibly unrelated forum by default unless you select the original forum you edit a post. This is only visible for admins.
You can simply edit one line. Here is the original line 187 from the edit.php file found inside the Flatboard folder on your webserver.
' .HTMLForm::select('forum', $forumOptions, $forumEntry['name']) : ''). '['name']
And this gets replaced by this line which keeps the post you are editing in the same folder by default when you click submit.
' .HTMLForm::select('forum', $forumOptions, isset($topicEntry['forum']) ? $topicEntry['forum'] : '') : ''). '
You have no idea how many times I've had to go back and reedit a post again because I forgot to choose the original forum. It's nice to get this working.
Suggested Topics

Fred
started plugin RSS (external site)
Resources

2582cb8e
started solved Image Upload Testing
Open Bar

AlexanderLiebrecht@5e3cf8af
started plugin Fred, how did you realize the Download Page here?
General Questions

42.7K
19