_pre67vw
  •  _pre67vw
  • 53% (Neutral)
  • YAF Forumling Topic Starter
2019-02-22T16:53:08Z
Is it possible to have a BB code option for embedding an instagram post?

Thanks
Sponsor
tha_watcha
2019-02-23T20:43:51Z
Originally Posted by: _pre67vw 

Is it possible to have a BB code option for embedding an instagram post?

Thanks



import the   YafBBCodeExport.xml (1kb) downloaded 16 time(s). under Admin > BB Code Extensions then you can use


[INSTAGRAM]https://www.instagram.com/p/BS2kMaZl2XO/[/INSTAGRAM]


example:


UserPostedImage
_pre67vw
  •  _pre67vw
  • 53% (Neutral)
  • YAF Forumling Topic Starter
2019-02-24T12:24:50Z
Awesome, thanks!!
_pre67vw
  •  _pre67vw
  • 53% (Neutral)
  • YAF Forumling Topic Starter
2019-02-25T16:51:26Z
Had a slight problem where it doesn't work with more than one instagram in a post. I'm not sure what the second option does after the | so I removed it and added an optional newline character at the end - this seems to work.

\[instagram\](?<inner>(.*?)\.instagram.com\/p\/(?<id>.*?)?\/)\[\/instagram\]\n?

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved