Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Iframe Inserter Plugin for MyBB
#1
Introduction:

The Iframe Inserter plugin for MyBB automatically embeds iframes into posts when specific BBCode-like tags are used. This allows users to easily embed external content such as videos or other media from allowed domains directly into their forum posts.
Features:
  • Automatic Embedding: Converts

    [iframe]...[/iframe]

    None
    Select All
    tags in posts to actual iframes for allowed domains.

  • Domain Whitelisting: Specify which domains are allowed for embedding in the plugin settings.
  • Default Dimensions: Set default width and height for iframes.
  • Customization: Various settings to control iframe attributes and behavior.
Installation:
  1. Upload Plugin:
    • Upload the plugin files to your MyBB installation under

      inc/plugins/

      None
      Select All
      .

  2. Install Plugin:
    • Log in to your MyBB Admin Control Panel (ACP).
    • Go to Configuration > Plugins > Install & Activate.
    • Find Iframe Inserter in the plugin list and click Install.
  3. Configure Settings:
    • After installation, navigate to Configuration > Settings > Iframe Inserter Settings.
    • Configure settings such as allowed domains, default iframe dimensions, and other options as per your requirements.
    • Save the settings.
Usage:

To embed an iframe in a post, use the following BBCode-like format:
bash
Copy code
[iframe]https://example.com/embed/video[/iframe]

None
Select All
Replace
https://example.com/embed/video

None
Select All
with the actual iframe URL from an allowed domain.
Settings:
  • Allowed Domains: Comma-separated list of domains from which iframes can be embedded.
  • Default Width & Height: Dimensions applied to iframes if not specified in the BBCode.
  • Custom Parameters: Additional attributes to add to all iframes (e.g.,

    frameborder=0

    None
    Select All
    ).

  • Responsive Iframes: Enable responsive behavior for iframes to adapt to different screen sizes.
  • Error Handling: Customize error messages for non-allowed domains or other issues.
Troubleshooting:
  • Iframes not appearing: Ensure the domain is listed in the allowed domains setting.
  • White screen or errors: Check for syntax errors in plugin files or server compatibility issues.
Notes:
  • Always test new configurations in a development environment before applying changes to a live forum.
  • Regularly update the plugin for compatibility with newer MyBB versions and security patches.
This guide provides a straightforward approach to installing, configuring, and using the Iframe Inserter plugin for MyBB, enhancing your forum's multimedia capabilities.

Download hare and let me know if you want any additional features;  Extend MyBB - Iframe Inserter Plugin for MyBB

Need you Opinions and suggestions on the plugin to improve further....
Reply
#2
Thank you for your contribution !

Consider using the parse_message or parse_message_end hooks instead.

Regards.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#3
(2024-07-03, 07:06 AM)Omar G. Wrote: Thank you for your contribution !

Consider using the parse_message or parse_message_end hooks instead.

Regards.

Implemented As Advised. Thanks for Noticing and giving improvement advice.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)