[quote=“hansioux”]So under discourse, by pasting an youtube link on its own in one line would automatically embed the video to the post.
I wonder if it’d be possible to parse through old posts and remove all youTubeBB3 tags, or modify youTubeBB3 tags to do nothing but spit the youtube link back out. Maybe that way all the videos show up nicely?[/quote]
Posted as a reply in the test discourse forum. Thought it might be useful to keep a record here as well.
I don’t know how to do it in phpBB’s (SQL?) Database.
If the data is stored in plain text, then we could just do a sed operation:
I tested it, it works. Although I doubt the data is in plain text, so we might need some SQL WHERE table=xxx contains “[youtubebb3]” voodoo magic.