NewProfiles are here!View user profiles guide
XenForo
PHPPopular

ImgLink for XenForo

The ImgLink XenForo plugin is a production-ready PHP 8 add-on for XenForo 2.2+. It injects a toolbar button into the rich text editor, uploads images to ImgLink's global CDN over HTTPS with the X-API-Key auth scheme, and inserts the resulting direct URL into the post — all in under a second. Exponential-backoff retry logic, strict config validation, and BOM-free PHP ensure reliable operation at any forum scale without touching XenForo's core files.

Platform
XenForo 2.2+
Runtime
PHP 8.0+
Dependencies
Zero
CI Status
Passing

Requirements

  • PHP 8.0 or higher
  • XenForo 2.2+
  • cURL PHP extension enabled
  • ImgLink API key (free)
Used by

Gaming communities, support boards, brand forums

Download ZIP

What's included

Editor toolbar button for one-click image uploads
Automatic CDN URL injection into post content
Exponential backoff retry (configurable attempts)
Scoped X-API-Key authentication
Config schema validation on first call
Structured JSON error responses with HTTP status codes
No Composer or external dependencies
BOM-free PHP 8.3 — fully tested in CI

Installation Guide

Follow these steps to integrate ImgLink with XenForo.

01

Download & extract

Download the ZIP and copy src/ImgLinkPlugin.php into your XenForo add-on directory.

02

Generate an API key

In your ImgLink account go to Settings → API Keys and create a key scoped to your forum domain.

03

Configure credentials

Copy config.example.json to config.json and fill in apiBase and apiKey.

{
  "apiBase": "https://imglink.cc",
  "apiKey": "YOUR_KEY_HERE",
  "timeoutSeconds": 30,
  "retries": 3
}
04

Install via XenForo ACP

In ACP → Add-ons → Install/Upgrade, select the add-on. The ImgLink toolbar button appears in the editor immediately.

Why host images on ImgLink?

Global CDN

Images served from a global edge network. Sub-100ms load times. No bandwidth cost to your forum server.

Scoped API Keys

One API key per forum. Revoke or rotate instantly. Keys never leave your config file — never hardcoded.

Retry Safety

Exponential backoff on every upload. Images never fail silently — retries handle transient network issues.

Ready to deploy ImgLink on XenForo?

Download the plugin, add your API key, and go live in under 10 minutes. Free to use — no credit card required.