_pre67vw
  • Posts: 5
  • Joined: 22/02/2019
Is it possible to have a BB code option for embedding an instagram post?

Thanks
Sponsor
tha_watcha
  • Posts: 4130
  • Joined: 06/03/2010
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 8 time(s). under Admin > BB Code Extensions then you can use


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


example:


UserPostedImage
_pre67vw
  • Posts: 5
  • Joined: 22/02/2019
Awesome, thanks!!
_pre67vw
  • Posts: 5
  • Joined: 22/02/2019
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?
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    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