[size=4][b]BasePic Image Upload for SMF[/b][/size]

Adds an [b]Upload image[/b] button next to Preview and Post in the editor (new topic, reply, edit, personal messages) and in the quick reply box. A member clicks it, picks or drops photos in a small BasePic window, and one more click inserts the BBCode at the cursor:

[code][url=https://basepic.com/AbCd1234][img]https://basepic.com/AbCd1234.jpg[/img][/url][/code]

Images are hosted free on [url=https://basepic.com]BasePic[/url] — no sign-up, no key, no watermark. Each image keeps its own short link.

Home page: [url=https://basepic.com/smf]https://basepic.com/smf[/url]

[b]Requirements[/b]
SMF 2.1 (tested on 2.1.8 with the default theme). No source or template edits: hooks only.

[b]Settings[/b]
Admin → Configuration → Modification Settings → Miscellaneous → [i]BasePic image upload[/i]:
[i]Insert thumbnails[/i] — on: a thumbnail up to 1280 pixels, linked to the full-size image; off (default): the full-size image, linked to its BasePic page.
[i]Upload button in quick reply[/i] — on (default) / off.
The button appears only when BBCode is on and the [img] tag is not disabled.

[b]Privacy[/b]
The modification loads nothing from BasePic until a member clicks the button. The upload happens in the BasePic window, under the BasePic [url=https://basepic.com/privacy]Privacy Policy[/url] and [url=https://basepic.com/terms]Terms[/url]. The window sends the code back to your forum with postMessage, addressed only to your forum's origin.

[b]Uninstall[/b]
Admin → Package Manager → Browse Packages → Uninstall. Check "Remove all data associated with this modification" to delete the settings too. Images already posted keep working.

[b]License[/b]
GNU General Public License v2 (license.txt).
