PDA

View Full Version : image reference locally edit


DreadsUK
06-27-2014, 02:33 PM
how do we uncheck the reference locally box for default?

https://vborg.vbsupport.ru/external/2014/06/13.png

tbworld
06-27-2014, 03:05 PM
Edit file:
"/clientscript/ckeplugins/vbimage/dialogs/image.js"

Search for:

setup: function() {
if (me.editor.config.vbulletin.attachinfo)


After this code look for:

this.setValue(true);


Replace with:

this.setValue(false);
Should do the trick. Let me know if it doesn't work. :)

Thanks for the picture, it quickly identified what you were looking for.

DreadsUK
06-28-2014, 08:25 AM
Yep, that worked great. You have to empty your internet cache to see the change :)

tbworld
06-28-2014, 08:33 AM
Yep, that worked great. You have to empty your internet cache to see the change :)

Good to know. Glad it worked.
I am away from my development setup so I cannot easily test anything. :)

Just curious, what was the reasoning for wanting that unchecked?

DreadsUK
06-28-2014, 09:05 AM
2 reasons.

1, if its checked, the image shows up small and has to be clicked to view.

2. If its referenced locally i'm assuming it would use up space on the server.

Overall speed, again assumption, i have a feeling it will encourage people to host the images elsewhere, save of server space and increate load times and less clicks.