Drac's Mega Smart Embed

Drac's Mega Smart Embed 2.0.0

No permission to download
Compatible XF 2.x versions
  1. 2.3
Additional requirements
Drac's Audio Player optional for music playback with graphics and controls
License
Free, unlimited doomains, optional donation if desired
Updates duration
Limited Support via Contact Page

Drac's MEGA Smart Embed
Share files from MEGA and let the post show what the file really is - a video player, the picture itself, a real audio player, or a card that says what is inside the zip.
100% FREE | Version 2.0.0 | for XenForo 2.3+ (PHP 7.2+) | no key, no sign-up, MIT license
​

Download: Drac's Shop | Support: ask about this add-on | Optional donation: say thanks​


At a glance​

  • Stand-alone: it needs no other MEGA add-on - paste a MEGA link and it does the rest
  • A video gets MEGA's player, a picture shows in the post, a sound plays in Drac's Audio Player (optional), a zip says what is inside
  • Every other file is a colored card with its real name, size and a download button
  • Cards that are "being prepared" turn into the finished one by themselves - no refresh

What it does​

A plain MEGA embed turns every MEGA link into MEGA's video player - so a zip, a picture or a song gets a player that cannot play it. This add-on finds out what the file really is and shows the right thing instead. MEGA keeps file names encrypted, but the key that is in the link opens them, so the forum asks MEGA once (a small request, many links at a time), reads the real name and kind, and remembers the answer for good.

Features​

  • A video - MEGA's own player in a 16:9 frame as wide as the post (you can cap its width).
  • A picture (jpg, png, gif, webp) - the picture itself, in the post, like an [IMG] image - click it and XenForo's picture viewer opens. A background job fetches one copy; JPEG and PNG are shrunk to 1600 px and turned upright, a GIF or WebP is kept as it is so an animation still moves. Until the copy is ready the card says "Preview is being prepared".
  • A sound (mp3, flac, ogg, oga, opus, wav) - Drac's Audio Player - cover, title, artist, album, quality and lyrics read from the file, queue, mini player, speed and visualizer. Drac's Audio Player is optional: without it a sound is simply a download card.
  • A zip - a colored card with a download button and what is inside: how many files, how big they are unpacked, how much smaller the zip is, the types of file (colored chips), the folders and a fold-out list of the first file names. The zip itself is never downloaded - only a few kilobytes from its end are read.
  • Anything else (rar, pdf, m4a ...) - the same colored card - the color follows the kind of file (archive amber, music green, picture pink, video red, PDF red-orange, document blue, spreadsheet deep green, code teal, program purple ...) - with the name, size and a download button.
  • A link MEGA says is gone - a gray, struck-through card: "No longer available on MEGA".
  • Turns by itself - a card that says "being prepared" swaps itself for the finished one a few seconds later - also in a reply that has just been posted by AJAX. No refresh.
  • Paste and go - paste mega.nz/file/..., mega.nz/embed/..., the old mega.nz/#!... style or a mega.co.nz link and it becomes the right tag. Folder links stay ordinary links.
  • Safe by design - only MEGA's own storage servers are contacted, through XenForo's own "untrusted URL" client (it refuses internal addresses and re-checks redirects); size limits (20 MB for a picture and 100 MB for a sound by default); a picture is checked by its bytes, not its name. Any doubt or error leaves the tag to the video player - the worst case is what a MEGA link always showed.

What's new​

  • 2.0.0 (Nov 2026) - stand-alone and free. Existing [MEDIA=megavideo] tags keep working with no change. New option: the widest the video player may be.
  • 1.2.3 (Nov 2026) - a sound that is still being prepared now loads the Audio Player's styles itself, so the finished player never appears unstyled.
  • 1.2.2 (Nov 2026) - cards in a reply posted by AJAX now turn into the finished card by themselves (XenForo throws script tags out of AJAX HTML; the card now asks for its script the way XenForo wants).
  • 1.2.1 (Nov 2026) - the background job now starts on a full page load too, and the default limit for a sound is 100 MB so FLAC files fit.
  • 1.2.0 (Nov 2026) - zips show what is inside, every file gets a colored card, and waiting cards turn by themselves.
  • 1.1.0 (Nov 2026) - pictures show in the post and sounds play in Drac's Audio Player.
  • 1.0.0 (Nov 2026) - first release: only a real video gets the video player.

Requirements​

XenForo 2.3 or newer, PHP 7.2 or newer. Drac's Audio Player is optional (for sounds). No other add-on is needed.

Install or upgrade​

  1. Download the zip from Drac's Shop - free, no key, no sign-up.
  2. Admin CP -> Add-ons -> Install/upgrade from archive and upload the zip (do not unzip it).
  3. Find it under Setup -> Options -> MEGA Files.
Upgrading from 1.x (it needed [ITD] MEGA Video Embed): upgrade MEGA Smart first. XenForo hands the MEGA media site over from the ITD add-on to MEGA Smart, every post keeps working, and the ITD add-on's "frame width" (if you changed it) becomes the new width option. Check a thread with a MEGA video, then uninstall the ITD add-on - it is no longer needed. Do not uninstall it before the upgrade: until then the MEGA site still belongs to ITD.
If MEGA videos ever disappear afterwards: Admin CP -> Add-ons -> Drac's MEGA Smart Embed -> Rebuild.
Upgrading from an earlier version works the same way: upload the new zip over the old one. Back up your forum before installing or upgrading any add-on.

Free - and what that means​

  • No license key, no sign-up, nothing to buy - download it and install it. There is nothing to enter anywhere.
  • Nothing phones home - the add-on talks to MEGA, and only about files that are linked in your own posts.
  • Its own add-on - it works alone. Install any of Drac's add-ons without the others.
  • MIT license - use it, change it, share it.
  • Support is free but limited - the form is open to everyone (this add-on's name is filled in for you); messages are answered as time allows, with no promised reply time.
  • Optional donation - if it is useful to you, a donation at Drac's Shop is always appreciated, and never required.

  • Widest the video player may be (default 100% - the width of the post)
  • File types that count as video
  • Show pictures shared from MEGA, and the largest picture to fetch (20 MB)
  • Play sounds shared from MEGA, and the largest sound to fetch (100 MB)
  • Show what is inside zip files
  • When MEGA cannot be asked: a plain "MEGA file" link (recommended) or the video player
  • Forget unused picture and sound copies after N days (180; 0 = never)
  • Folder links (mega.nz/folder/...) stay ordinary links.
  • A link without a key shows MEGA's own player, which asks the viewer for the key.
  • MEGA's integrity check (the file MAC) is not verified: a damaged picture or sound simply fails to be recognized.
  • RAR, 7z and other archives are not opened - only zips have a list this add-on reads; m4a, aac and wma stay download cards.

Support​

Questions, bug reports or ideas: Drac's Support - a secure form, open to everyone, with Drac's MEGA Smart Embed already chosen. It is free, so it is limited: every message is read and answered as time allows. Questions in this thread are welcome too.


More free add-ons by Drac​

  • Drac's Stylized AJAX Forum Category Tabs (1.12.0) - Turn a long forum index into a row of fast, animated category tabs.
  • Drac's Modal (1.9.0) - Show your Terms and Rules and Privacy Policy in an animated pop-up instead of sending people to another page.
  • Drac's Thread Cleaner (1.4.0) - Wipe out a spam-flooded or unwanted forum in one pass - safely, with a counted preview first.
  • Drac's PDF Viewer (1.6.0) - Real thumbnails for attached PDFs, and a viewer that opens right on the page - no new tab.
  • Drac's Audio Player (1.4.0) - A much better player for the music and audio your members upload - with cover art, FLAC and lyrics.
  • Drac's Video Thumbnails (1.3.0) - Let members pick their video's thumbnail from a few frames - with no extra clicks.
  • Drac's Quote Thumbnails (1.0.1) - When a post with pictures is quoted, the quote shows small thumbnails - and a click opens the usual picture viewer.
AJAX Forum Tabs, Modal, Thread Cleaner, PDF Viewer, Audio Player and Video Thumbnails live together under one Drac's Addons menu in the Admin CP (the first one you install creates it, the last one you uninstall removes it); MEGA Smart and Quote Thumbnails keep their options under Setup -> Options. Every one of them is its own free add-on at Drac's Shop.​
Related resources
Drac's Audio Player
Author
Drac Morbis
Downloads
1
Views
10
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Drac Morbis

Back
Top Bottom