MyBB Community Forums

Full Version: prefill the picture URL with a web address
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way I can prefill the picture URL with a web address so it comes up every time I want to add a picture to a new post (I tend to load a lot of pictures from the same location and it would save me copy and pasting each time)?

Thanks

[Image: pictureURL.PNG]
If you do that, then everyone by default would have that there. It is possible though, I can't tell you how it would be done.
please note that Support for MyBB 1.6.x was ended about 8 months ago

anyway, open ~/jscripts/editor.js file in a editor like notepad++ and find code like below around line 1099
image = prompt(this.options.lang.enter_image, "http://");

you can change "http://" with the required URL base & save the file and use it

you may also use the editor at web host control panel to modify editor.js file
(2016-05-30, 05:17 AM)izakgewdrick Wrote: [ -> ]If you do that, then everyone by default  would have that there. It is possible though, I can't  tell you how it would be done.

I forgot that it would affect all my users but it's obvious when you think about it; thanks for that

(2016-05-30, 07:41 AM).m. Wrote: [ -> ]please note that Support for MyBB 1.6.x was ended about 8 months ago

anyway, open ~/jscripts/editor.js file in a editor like notepad++ and find code like below around line 1099
image = prompt(this.options.lang.enter_image, "http://");

you can change "http://" with the required URL base & save the file and use it

you may also use the editor at web host control panel to modify editor.js file

Thanks for the detailed instructions. Unfortunately, before I had seen the first reply, I hadn't thought that this would affect ALL the users on the forum so will have to continue copying and pasting.

Thanks you both for your help.
Not a problem, Although M deserves the most praise as he is a well rounded, level headed Mod ^.^ (and he knows more code then I do haha)

Have you tried a hotkey macro or something? Im sure theres a prog online that allows you to paste it with a single key (Or could you apply it to your signature?)