Test Forum
Site Stuff => Code Snippets => Topic started by: xTreme on September 13, 2026, 10:29:57 am
-
What this does
Adds a button/link that lets your members upload images directly to postimage.org and have them automatically inserted into their post - no separate upload-then-paste-link step required.
How to set it up
Go to your Style Manager and add this snippet to the headers section of your theme:
<script type='text/javascript' src='//mod.postimage.org/smf.js' charset='utf-8'></script>
Save, and members should see an upload option appear in the posting screen.
Known quirks
Based on user reports:
- It works well on most themes and has been confirmed working across multiple CAF forums.
- A few users reported the image uploads fine and inserts into the post, but doesn't actually display in the final result - this seems to be theme-related in some cases, though not consistently reproducible.
- One user's issue turned out to be a browser/security block on their end (their browser flagged postimage.org's page as insecure), not a forum-side problem.
- You can upload multiple images at once, and they'll all be embedded automatically.
Bottom line: Try it - it works for most people. If images don't display after uploading, first rule out a browser-side security block before assuming it's your theme.
Based on a tip from the official CreateAForum support forum.