NewProfiles are here!View user profiles guide
MyBB
PHP

ImgLink for MyBB

The ImgLink MyBB plugin follows MyBB's standard plugin structure for version 1.8.x. It exposes imglink_upload_mybb() as the primary entry point, which delegates to an internal retry core with exponential backoff. Images are sent to /api/v1/upload via cURL with the X-API-Key header, and the CDN URL is returned as part of a structured response array including dimensions and MIME type. Zero Composer dependencies, BOM-free, PHP 8.3 tested.

Platform
MyBB 1.8.x
Runtime
PHP 8.0+
Dependencies
Zero
CI Status
Passing

Requirements

  • PHP 8.0 or higher
  • MyBB 1.8.x
  • cURL PHP extension
  • ImgLink API key (free)
Used by

Fan communities, hobby boards, retro gaming forums

Download ZIP

What's included

Standard MyBB plugin_info(), install(), uninstall()
imglink_upload_mybb() main entry point
imglink_upload_core() internal retry wrapper
Returns url, width, height, mime in response array
X-API-Key authentication
BOM-free for MyBB bootstrap compatibility
Zero Composer dependencies
PHP 8.3 CI tested

Installation Guide

Follow these steps to integrate ImgLink with MyBB.

01

Copy plugin.php to inc/plugins/

Extract and copy plugin.php into MyBB's inc/plugins/ directory.

cp src/plugin.php /path/to/mybb/inc/plugins/imglink.php
02

Activate in Admin CP

Go to Admin CP → Configuration → Plugins and activate the ImgLink plugin.

03

Configure credentials

Edit config.json and set your apiBase and apiKey.

{
  "apiBase": "https://imglink.cc",
  "apiKey": "YOUR_KEY_HERE"
}
04

Hook into attachment uploads

Call imglink_upload_mybb() from your attachment hook.

$result = imglink_upload_mybb($filePath, $config);
// $result['url'] => CDN URL

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 MyBB?

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