dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on March 24, 2021, 01:34:16 PM

Title: Embed Instagram BBCode
Post by: Chip on March 24, 2021, 01:34:16 PM
source: https://custom.simplemachines.org/mods/index.php?mod=4059

Introduction:
This modification adds a BBCode to view Instagram videos and pictures.

The BBCode takes these forms:
Code: [Select]
[instagram]{instagram ID}[/instagram]
[instagram width=x height=y]{instagram ID}[/instagram]
where {instagram ID} is the 21wUvaPwwB part of the hxxps://instagram.com/p/21wUvaPwwB URL, and x and y are parameters supporting both pixel and percentages for width and height (respectively).

Admin Settings:
Under Admin => Modification Settings, there are some new options:
o Default width of embedded Instagram video
o Default height of embedded Instagram video
o Include Instagram link beneath?

Test:



SimplePortal 2.3.6 © 2008-2014, SimplePortal