MyBB Hacks

Full Version: How to change File Upload default settings?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

XThread-field "File Upload". default setting is:

[Image: mwsnap07-22--2012-04_38_33-3685e2f.jpg]

but i need as default setting:

[Image: mwsnap07-22--2012-04_41_08-3685e3e.jpg]

where can i change this? i search and search, but XThreads is to big Biggrin
For one field, enable custom input HTML, and in the HTML that's there:

replace

Code:
{CHECKED_UPLOAD}

with

Code:
<if $mybb->input['xtasel_'.{KEY}] == 'file' then> checked="checked"</if>


and replace

Code:
{CHECKED_URL}

with

Code:
<if $mybb->input['xtasel_'.{KEY}] != 'file' then> checked="checked"</if>

works perfect Yipi

big thx ZiNgA BuRgA Wink
Hi,

little problem. this weekend we start the new forum and if a normal user will use this field, all is fine. but we have script-poster too. they are using "IntelligeN 2009". this is an automatic program to publish entries. this program cannot read the changed code in html and it needs the default setting as standard like a text-input field. is it possible to change the default setting at another place and not in "custom input HTML"? i hope you understand what i mean.
No, you can't have something changed and not changed at the same time.
can be, that you understand me wrong. your solution in post#2 was to change the code in custom input HTML field. is this the only possible way? or can i change this in another html or php file?
You can change it in templates if you wish.
Not that it'll change the effect or anything.
Thx for your answer.
We find now another solution. the coder from the program has modified his tool. now all is working well.

i love xthreads, so many options to realize many things Biggrin
Reference URL's