Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Checkbox value won't revert to a null value
jacko Offline
Junior Member
**
Posts: 1
Joined: Feb 2020
Post: #1
Checkbox value won't revert to a null value
I'm currently using a single checkbox to allow users to select if they wish to display a certain value on their post or not. Assuming checked = yes and unchecked = no, this should be fairly easy. However, it is causing some issues and I was wondering if anybody had a solution around it.

Upon creating a new post, if the checkbox has not been checked, the Blank Replacement Value kicks in and does not show the value. If the checkbox has been checked, the value is shown on the post. These are the desired effects.

This is where the issue comes in. If the checkbox has been checked, if the user wishes to no longer display that value and edits the post by unchecking the checkbox, it does not revert the value to blank. It will always assume the checkbox is checked and that the value should be displayed. If the user goes back to edit their post again after doing this, the checkbox is always checked even if the user unchecked it.

Is there any way to fix or get around this issue? It doesn't seem like it should be this difficult, but xthreads does not like having a null value for checkboxes once the checkbox has been filled.

Cheers in advance.
02-13-2020 01:17 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #2
RE: Checkbox value won't revert to a null value
I was recently checking the Github repository to find if another issue I was having has already been fixed.

Apparently your issue (which I also experienced) has already been fixed:
https://github.com/zingaburga/XThreads-M...https://github.com/zingaburga/XThreads-MyBB-Plugin/commit/731f22777ff86f598d177cc1929dc6

I won't know if simply uploading the updating files is enough or if any update process is required because I haven't got the time to do it myself, but you could try and see if that works for you.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
02-13-2020 05:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: