![]() |
[vBMods.rocks] Instagram BBCode
1 Attachment(s)
One way to integrate social media with forums is to embed posts from Instagram into forum posts.
Go to AdminCP > Custom BB Codes > Add New BB Code and enter the following information: Title: Instagram BB Code Tag Name: ig Replacement: Code:
<div data-ig-param="{param}"></div> Other Options: Select Yes to all starting from "Remove Tag If Empty" option Button Image (optional): /path/to/instagram/icon.png You could download this Instagram icon: https://vborg.vbsupport.ru/external/2017/09/1.jpg Right click and choose "Save image as..." and then upload to your server. Then specify the image path in the Button Image option. If specified, a new button for this BB Code will appear in the editor. How to Get Instagram Post ID: While in an Instagram post in an overlay, click the "..." in a post and then click "Go to post". The post will be opened in a new tab/window. The ID is in the URL. If you are already in a post in a new tab/window and not in overlay, then just look for the ID in the URL. The URL has this format: https://www.instagram.com/p/XXXXXXXXX/ where XXXXXXXXX is the post ID Demo: See demo here Other sites may implement this same Instagram BBCode but the embedded Instagram post may not appear when reply is posted or when editing and saving or when previewing which is all done via AJAX in vB5. This version of mine works in those scenarios. This mod uses the latest way to embed Instagram posts via the oEmbed endpoint. See more info at https://www.instagram.com/developer/embedding/ |
All times are GMT. The time now is 01:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|