Welcome to vbmods.rocks! Get FREE and paid vBulletin mods, plugins, addons, API extensions, custom modules, custom BB Codes, vBCloud mods, CORE hacks, JS hacks, custom coding by Glenn, an ex-vBulletin Developer. You must register before you can post, download the files or copy the code from the free plugins.
Auto Check Retrieve remote file and reference locally
Is there a way to auto-check the "Retrieve remote file and reference locally" check box? I run a SSL site and it is really annoying when someone attaches a non SSL image and does not check the box. The SSL then breaks because of mixed content. It would be a great customization to be able to auto check this option:
The ID for this checkbox is "cke_89_uiElement"
In order to change the box to checked by default, checked> has to be added to the end of the <input
I know of 2 ways to do this.
1. Hack the code and set it. The issue I have is that I don't have the same version of vB and can not find that new code.
It is most likely not in the vB core folder and more likely in the root/JS/CKEditor folder.
2. Use jquery code to toggle the box as checked.
The ID for this checkbox is "cke_89_uiElement"
In order to change the box to checked by default, checked> has to be added to the end of the <input
I know of 2 ways to do this.
1. Hack the code and set it. The issue I have is that I don't have the same version of vB and can not find that new code.
It is most likely not in the vB core folder and more likely in the root/JS/CKEditor folder.
2. Use jquery code to toggle the box as checked.
Nowhere however in the code, CKE or vB, can I find cke_89_uiElement
This leads me to believe it is theme specific.
If I am correct, then you would have to search your own theme code for
Option 2,
AdminCP, Styles, select your theme, edit templates, edit the FOOTER template.
Scroll down to the end of the code and look for {vb:hook footer_before_body_end}
Somewhere after that line add this code
The first option had no results searching the templates. So I tried option two, cleared cache and it made no difference. Unfortunately, the option was not checked.
Comment