vBulletin Mods

The Official vBulletin Modifications Site

[vBMods.rocks] Instagram BBCode
by noypiscripter
08 Sep 2017 20:45

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example: [ig]InstagramPostIdHere[/ig]
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://www.vbulletin.org/forum/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:


where XXXXXXXXX is the post ID


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 20:31.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.