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

Thanks
Topic Starter
  • _pre67vw
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    53%
  • Joined: 22/02/2019
  • Posts: 5
  •  United Kingdom
  • Thanks: 1 times
#2
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 3 time(s). under Admin > BB Code Extensions then you can use


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


example:


UserPostedImage
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,003
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1203 time(s) in 1029 post(s)
#3
Awesome, thanks!!
Topic Starter
  • _pre67vw
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    53%
  • Joined: 22/02/2019
  • Posts: 5
  •  United Kingdom
  • Thanks: 1 times
#4
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?
Topic Starter
  • _pre67vw
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    53%
  • Joined: 22/02/2019
  • Posts: 5
  •  United Kingdom
  • Thanks: 1 times
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