Add-on Convert hot-linked images to attachments in XFRM

Daveo16

Member
Licensed customer
I'm looking for an addon that converts any hot-linked images in XFRM to attachments.

I did contact AndyB, who wrote a similar addon for xF 1.5, but he is not interested in updating the addon for xF 2.3.

Therefore, I'm looking for someone to make such an addon for xF 2.3.
 
Check out this addon I built, might help you: Hotlink Converter

It scans all XFRM resource descriptions for [IMG]https://...[/IMG] BB code, downloads the external images, creates proper XF attachments, and replaces the tags with [ATTACH=full]id[/ATTACH]. Runs as a background job so it won't time out on large sites.

How it works:
  • Go to AdminCP > Tools > Hotlink Converter
  • Click "Dry Run" first to preview what will be converted (no downloads, just a scan)
  • Review the conversion log to see all detected URLs
  • Click "Convert All" when ready - it downloads images, creates attachments, and updates the BB code

What it handles:
  • All [IMG] tag variants (including [IMG width="400" height="300"] and [IMG alt="..."])
  • Same URL appearing multiple times - downloads once, shares one attachment
  • URLs pointing to your own board are automatically skipped
  • Failed downloads (404s, timeouts) are logged with error details - the job keeps going
  • Safe to re-run - already-converted URLs are skipped on subsequent runs

Supports JPG, PNG, GIF, WebP, and BMP. Uses XF's built-in SSRF-safe downloader with 15s timeout and 10MB size limit per image.

Requires XF 2.3+ and XFRM 2.3+. Free, open source, no class extensions.
 
Back
Top Bottom