
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.
Requirements
- PHP 8.0 or higher
- MyBB 1.8.x
- cURL PHP extension
- ImgLink API key (free)
Fan communities, hobby boards, retro gaming forums
What's included
Installation Guide
Follow these steps to integrate ImgLink with MyBB.
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
Activate in Admin CP
Go to Admin CP → Configuration → Plugins and activate the ImgLink plugin.
Configure credentials
Edit config.json and set your apiBase and apiKey.
{
"apiBase": "https://imglink.cc",
"apiKey": "YOUR_KEY_HERE"
}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.



