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
This is a easy fix, when you load the edit page, just have the select value.
<?php (isset({JSONTOARRAY}['forum']) ? {JSONTOARRAY}['forum'] : ''); ?>
Last modified by SurveyBuilder-Admin on Sunday 23rd July 2023, 13:50:00
Software engineer, creates plugins for Flatboard, checks source codes, and answers any software errors questions and contributes on the GitHub page as well
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 SurveyBuilder-Admin on Monday 24th July 2023, 12:30:00
Software engineer, creates plugins for Flatboard, checks source codes, and answers any software errors questions and contributes on the GitHub page as well
No problem, I have been working on my own project and well, the model for bootstrap doesn't work.
Software engineer, creates plugins for Flatboard, checks source codes, and answers any software errors questions and contributes on the GitHub page as well
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
nounours
started solved Mettre les deux éditeurs de texte dans ma langue
Bug reports
northivanastan
started solved Skip unpacking?
General Questions
Katryne
started CSS without bootstrap
General Questions