Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to change File Upload default settings?
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #1
How to change File Upload default settings?
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
07-22-2012 12:50 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: How to change File Upload default settings?
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>


My Blog
07-22-2012 03:09 PM
Find all posts by this user Quote this message in a reply
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #3
RE: How to change File Upload default settings?
works perfect Yipi

big thx ZiNgA BuRgA Wink
07-23-2012 02:08 AM
Find all posts by this user Quote this message in a reply
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #4
RE: How to change File Upload default settings?
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.
07-28-2012 05:41 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #5
RE: How to change File Upload default settings?
No, you can't have something changed and not changed at the same time.

My Blog
07-28-2012 10:07 PM
Find all posts by this user Quote this message in a reply
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #6
RE: How to change File Upload default settings?
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?
07-28-2012 11:24 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #7
RE: How to change File Upload default settings?
You can change it in templates if you wish.
Not that it'll change the effect or anything.

My Blog
07-29-2012 12:18 AM
Find all posts by this user Quote this message in a reply
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #8
RE: How to change File Upload default settings?
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
07-30-2012 12:47 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: