View Full Version : How to default not checked "Retrieve remote file and reference locally" VB 4.1.10
Scottr126
01-18-2012, 02:56 AM
When uploading images into a post there is an option for "Retrieve remote file and reference locally" and by default it is checked. This option is terrible and I have alot of users complaining about and causing problems.
Is there any way I can disable this option all together or atleast have the option not checked by default?
Scottr126
01-19-2012, 02:29 PM
Help... anyone?
LifesGreatestGift
01-19-2012, 04:04 PM
open file
./clientscript/ckeplugins/vbimage/dialogs/image.js
around line 257 you will see
},{
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);
}
}
}]
change
this.setValue(true);
to
this.setValue(false);
UPLOAD the changed file. Clear cache. Done.
Scottr126
01-19-2012, 10:14 PM
Once again thank you so much for the help! It worked perfectly.
Deuces73
04-10-2012, 06:13 PM
Tried it , but nothing has changed ...
Any ideas on what could be wrong ?
( clear cache = Clear CMS cache in ACP , right ? )
i think he means browser cache
Thanks very much LGG.. When I clear my browser cache this works a treat!
I've had a look through the script and I'm not very comfortable making changes I'm not sure about.. Is it also possible to have it default to URL rather than From Computer?
salvador21
06-07-2012, 05:41 PM
Thanks very much LGG.. When I clear my browser cache this works a treat!
I've had a look through the script and I'm not very comfortable making changes I'm not sure about..
Me too, and don't forget, you will need to do this for every upgrade.
I wish this could be easily disabled, it's just begging for people to steal images from other sites.
shershen08
08-06-2012, 02:50 PM
works great, thanks!
could there be any additional parameter to hide (display:none or smth) this checkbox?
zascok
08-07-2012, 07:30 PM
works great, thanks!
could there be any additional parameter to hide (display:none or smth) this checkbox?
put this into additional.css ;)
.cke_dialog_ui_checkbox_input {
display:none;
}
djbaxter
10-01-2012, 11:32 AM
Any way to do this with a plugin to avoid editing and re-editing vBulletin files with every upgrade?
minimotorman
02-21-2013, 12:58 AM
put this into additional.css ;)
.cke_dialog_ui_checkbox_input {
display:none;
}
I can't get this to work?
Any other pointers?
I have disabled the tick from being on by default but want to remove it all together.
obglobal.net
03-03-2013, 11:44 AM
So I've located ./clientscript/ckeplugins/vbimage/dialogs/image.js, and I get this:
Status: Starting download of /clientscript/ckeplugins/vbimage/dialogs/image.js
Error: Failed to open "/image.js" for writing
Error: File transfer failed
I'm certainly no whiz at this type of thing, but I get the feeling it's not working.........:rolleyes:
I'm supposed to download it, edit it, re-upload it and clear the cahe, right?
It's a no-go.:confused:
obglobal.net
03-06-2013, 01:16 AM
<font color="DarkOrange">BUMP! </font>...............
caltek
08-13-2013, 05:43 PM
I just commented out label: me.editor.lang.vbulletin.retrieve_remote_file_and_ ref_local, and set it to label: '', then added the .cke_dialog_ui_checkbox_input{display:none;} to additional.css and that got rid of it completely.
Thanks for the help.
tommythejoat
08-14-2013, 07:44 PM
The purpose of the feature is to prevent Trojans being embedded in your site which can later be changed to something malicious.
If your users are referencing other people's material via an image URL they do not have the right to use, they are already in violation of copyright.
We strictly enforce copyright ownership and we upload all external images using the Import External Images mod.
tbworld
08-14-2013, 10:22 PM
The purpose of the feature is to prevent Trojans being embedded in your site which can later be changed to something malicious.
If your users are referencing other people's material via an image URL they do not have the right to use, they are already in violation of copyright.
We strictly enforce copyright ownership and we upload all external images using the Import External Images mod.
@tommythejoat - Could you refer to the mod you are talking about. I am sure that would help those that do not really understand this issue or know what to use. :)
Videx
08-17-2013, 02:20 AM
I don't think linking to a publicly available image is necessarily a copyright violation. If so, everything at imgur would be illegal.
But rather than long legal arguments, what vb really needs is an option for this to be on or off by default. Don't hold your breath.
cellarius
08-17-2013, 07:42 PM
Linking is not. But inserting the image into another page is - there's a difference. However, for copyright it does not matter if you serve the image from your server or another one.
tommythejoat
08-18-2013, 03:12 AM
@tommythejoat - Could you refer to the mod you are talking about. I am sure that would help those that do not really understand this issue or know what to use. :)
I was talking about the subject of this thread, which I think is the IMG tool's behavior of defaulting to uploading the url image rather than just putting it between IMG tags.
The default behavior is really just quick insertion of an uploaded attachment.
If you have threads available on your site that are years old and only used as a research base, you are vulnerable to someone modifying the target of your image reference to something else you would not want to see on your site.
Since you make a reference to the foreign site whenever the image is displayed, it is possible that the reference could be corrupted in such a way as to damage your site.
The default behavior is, in my opinion, the correct behavior. If you always make local references, you are always in control of what is displayed.
As Cellarius says, if the actual image is displayed on your site you need to have a chain of authority to use it. If the image does not appear, but is only linked then you do not need any usage authorization. In some cases the rule now seems to be that you can also use a thumbnail in the link if it is not sufficient quality to infringe on the copyright of the original.
The fact that there are tons of flagrant violations does not change the law, which is international in scope.
The mod we are using for the purpose of importing ALL external image references is this one that runs in the background as a cron job and stores them locally with a local reference. https://vborg.vbsupport.ru/showthread.php?t=253309&highlight=import+external
Skaut
12-01-2014, 04:14 PM
Thank you on solution, but for 4.2.2 this does not work!
Lynne
12-01-2014, 04:28 PM
Thank you on solution, but for 4.2.2 this does not work!
As the thread title states, this is regarding version 4.1.10. If you have your own questions about something in 4.2.2, I suggest you start your own thread and be specific about your problem.
erdiyilmaz
07-17-2017, 08:27 AM
It is working on v.4.2.5
And also for hide this i added this code:
this.getElement().hide();
Raptor
09-29-2018, 04:58 AM
Tested 100% in 4.2.5. Completely removes and disables the checkbox and text leaving only the URL entry.
https://vborg.vbsupport.ru/external/2018/09/6.png
./clientscript/ckeplugins/vbimage/dialogs/image.js
Go to Line 257
Replace
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);
}
With this
type: 'checkbox',
id: 'remote_file',
//label: me.editor.lang.vbulletin.retrieve_remote_file_and_ ref_local,
label: '',
labelLayout: 'horizontal',
setup: function() {
if (me.editor.config.vbulletin.attachinfo)
{
this.getElement().hide();
this.setValue(false);
}
and then in additional.css add this
.cke_dialog_ui_checkbox_input {
display:none;
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.