On my current phpBB forum I use custom BBCode to post YouTube, SoundCloud, Facebook and Twitter links ‘inline’, similar to Onebox on Discourse.
I’m using a slightly customized version of the phpbb3.rb phpBB import script where I strip the custom BBCode tags to keep the bare URLs.
After the import the URLs are shown as clickable links in the converted posts (without any Markdown or BBCode) but they are not converted into Onebox format as I had hoped.
I tried the Rebuild HTML option on some posts and even did a complete rebake of the whole database but that does not show the URLs as Onebox.
Only if I manually edit the posts (without making any changes) the links will be converted to Onebox.
At what point should the Onebox conversion take place? Only on post creation or post edit in the user edit window?
(all the required domain names like youtube.com etc where enabled in Discourse before running the import script)
I’m running my test installation following this guide:
Apparently this does not include automatically starting Sidekiq.
Is there a config file that I can edit to include Sidekiq in the startup procedure of Discourse (I now start with bundle exec rails server)
Okay, the Sidekiq queue has now processed and ‘bare’ YouTube URLs do now show as Onebox. Twitter, Facebook and YouTube in the ‘youtu.be’ form are not shown as Onebox.
SoundCloud shows an empty SoundCloud window, a manual ‘Rebuld HTML’ on the post fixes that.
Well, good enough for me for now. Thank you DeanMarkTaylor for pointing me in the right direction