MyBB Hacks

Full Version: Input value won't save
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I inserted the XThreads field manually. It works fine and appears in the post.

However the value you put in doesn't stay in the textbox. If there's an error, like your message isn't long enough, the XThreads field(s) gets erased. If I make a post and click edit, the XThreads value also isn't there.

Here's the code in newthread:
I've also tried value="{$Global[xthreads....blah]}"
[Image: 6qCZWsC.jpg]
The {$value} isn't set to the XThreads input.
If you want to make a custom input and want to put the input manually in your newthread template, you can change the Input Field HTML of the custom thread field setting (set the Use Custom Input HTML setting to Yes first).

For example (based on your code above):

Code:
<input type="text" class="textbox"{NAME_PROP}{MAXLEN_PROP}{WIDTH_PROP_SIZE}{TABINDEX_PROP}{REQUIRED_PROP} value="{VALUE}" placeholder="Tell us a little more about this link..." />


Then put {$tfinput['xtlddesc']} manually in your newthread template for displaying the textbox.

Thanks RateU. Worked great.
No problem.
BTW, I like how you treat the filter as category Smile
Reference URL's