[nodebb-plugin-ns-embed] NS Embed
-
ok, well placing the javascript @ the end before </body> has bad effect because the post doesn't update after hitting [Submit] button. Basically updates after you push a page reload. So my conclusion is that the javascript code is fine added to the replace code , it seems to work perfectly.
There is still the same issue with it adding html as content around the embed, somehow it does this and I don't remember actually that it had this problem around nodebb version 0.6.0/0.7.0 ...
So I'll just leave you with this pic to show progress:
-
Version 2.0.0 Final
New version is available. Summary: important one, plugin doesn't create any restrictions anymore. Auto-linking restriction is removed. Even more interesting fact - you can use plugin with
Markdown
plugin or without. It means, plugin should work in most cases.- Important: compatibility with Markdown plugin
- Compatibility with content plugins
- Best practice for ACP scripts
- Update all dependencies
P.S.
"Final" means - my TODO list is empty for this plugin. I will do patches if needed, for now, I will concentrate on another plugins. -
Version 2.0.1
New version is available. Improved parsing of Youtube Urls, now it ignores links to Youtube profiles.
Don't forget to delete your current Youtube rule and install a new one (just click onInstall Default Rules
- It will install only missing rules, it will not override any rules which are currently in use) -
Hi.
I'm currently using your plugin and it really works like a charm in order to extend the Markdown syntax, thank you.
However, I have a little issue with my code section. Can your plugin ignore <pre> and <code> tags ?Thank you for getting your attention.
-
Core functionality of the plugin is Regular Expressions. If you need to ignore some particular tag, or something, you can handle it via your regular expression.
-
Version 2.1.0
A new version is available. Twitch rules are unlocked.
Changelog:
- Add Twitch Default rule for Live content
- Add Twitch Default rule for VoD
-
Here is an example how Live embed for Twitch with disabled auto-play:
-
Is there any examples of how of the 'watch' and "replace" for embedded videos? I am trying to get uploaded videos embedded but I can't seem to get the proper regex or new replacement code to get it to work.
Do you regex on the markdown code, or the url? What is the replacement code?
-
For anyone who was having the same issues as me, I found my answer here:
https://github.com/NicolasSiver/nodebb-plugin-ns-embed/issues/7 -
Hi code for dailymotion vidéo
(?:<a.*?)?(?:https?:\/\/)?(?:www\.)?dailymotion\.com\/video\/([a-zA-Z0-9_-]{4,7})(?:.*?\/a>)?
<div class='embed-wrapper'><div class='embed-container'><iframe src="//www.dailymotion.com/embed/video/$1" frameborder="0" allowfullscreen></iframe></div></div>
-
For framatube vidéo
(?:<a.*?)?(?:https?:\/\/)?(?:www\.)?framatube\.org\/videos\/watch\/([a-zA-Z0-9_-]{4,36})(?:.*?\/a>)?
<div class='embed-wrapper'><div class='embed-container'><iframe src="//framatube.org/videos/embed/$1" frameborder="0" allowfullscreen></iframe></div></div>
-
For Facebook vidéo
(?:<a.*?)?(?:https?:\/\/)?(?:www\.)?facebook\.com\/([a-zA-Z0-9_-]{4,88})\/videos\/([a-zA-Z0-9_-]{4,20})(?:.*?\/a>)?
<div class='embed-wrapper'><div class='embed-container'><iframe src="https://www.facebook.com/plugins/video.php?href=https://www.facebook.com/$1/videos/$2/" frameborder="0" allowFullScreen></iframe></div></div>
-
For Instagram vidéo
(?:<a.*?)?(?:https?:\/\/)?(?:www\.)?instagram\.com\/p\/([a-zA-Z0-9_-]{4,20})(?:.*?\/a>)?
<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="https://www.instagram.com/p/$1/?utm_source=ig_embed" data-instgrm-version="9"></blockquote> <script async defer src="//www.instagram.com/embed.js"></script>
-
Hello,
For my part it worked there is still a few but since today it no longer works for Facebook?
thank you in advance
MAJ : I finally realize that it still works but that with some video of Facebook not all
@The-Worms said in [nodebb-plugin-ns-embed] NS Embed:
<div class='embed-wrapper'><div class='embed-container'><iframe src="https://www.facebook.com/plugins/video.php?href=https://www.facebook.com/$1/videos/$2/" frameborder="0" allowFullScreen></iframe></div></div>
-
v3.0.0
New version is available.
- Changed compability with NodeBB v1.11.0
-
For SoundCloud
(?:<a.*?)?(?:https?:\/\/)?(?:www\.)?soundcloud\.com\/([a-zA-Z0-9_^/-]{4,250})(?:.*?\/a>)?
<div class='embed-wrapper'><div class='embed-container'> <iframe scrolling='no' frameborder='no' allow='autoplay' src='https://w.soundcloud.com/player/?url=https://soundcloud.com/$1&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true'></iframe> </div></div>
-
For MixCloud
(?:<a.*?)?(?:https?:\/\/)?(?:www\.)?mixcloud\.com\/([a-zA-Z0-9_-]{4,36})\/([a-zA-Z0-9_-]{4,136})(?:.*?\/a>)?
<div class='embed-wrapper'><div class='embed-container'> <iframe src='https://www.mixcloud.com/widget/iframe/?light=1&hide_artwork=1&feed=%2F$1%2F$2%2F' frameborder='0' ></iframe> </div></div>