snotek
11-11-2011, 02:06 PM
I'm trying to figure out a way to FORCE the little checkbox that tells vBulletin to download a linked image and reference it locally.
After an extensive amount of research I figured out that it used to be in a template and was easily editable, but now it's been moved to a js file. Well, I found that js file, but I cannot figure out the proper code to force that box to be checked AND disabled.
The file is /forum_root/clientscript/ckeplugins/vbimage/dialogs/image.js
The code is:
},{
type: 'checkbox',
id: 'remote_file',
label: me.editor.lang.vbulletin.retrieve_remote_file_and_ ref_local,
labelLayout: 'horizontal',
setup: function() {
if (me.editor.config.vbulletin.attachinfo)
{
this.setValue(true);
}
}
}]
I have tried adding some code here but nothing seems to take. I would like that box checked and disabled by default.
Can someone that knows a little more about js give a hand? :erm:
After an extensive amount of research I figured out that it used to be in a template and was easily editable, but now it's been moved to a js file. Well, I found that js file, but I cannot figure out the proper code to force that box to be checked AND disabled.
The file is /forum_root/clientscript/ckeplugins/vbimage/dialogs/image.js
The code is:
},{
type: 'checkbox',
id: 'remote_file',
label: me.editor.lang.vbulletin.retrieve_remote_file_and_ ref_local,
labelLayout: 'horizontal',
setup: function() {
if (me.editor.config.vbulletin.attachinfo)
{
this.setValue(true);
}
}
}]
I have tried adding some code here but nothing seems to take. I would like that box checked and disabled by default.
Can someone that knows a little more about js give a hand? :erm: