[nodebb-plugin-ns-embed] NS Embed


  • GNU/Linux

    @Hawthorn

    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>



  • The plugin doesn't seem to work with nodebb 1.10.2


  • Plugin & Theme Dev

    v3.0.0

    New version is available.

    • Changed compability with NodeBB v1.11.0

  • GNU/Linux

    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>
    

  • GNU/Linux

    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>
    

  • GNU/Linux

    For Spotify album

    (?:<a.*?)?(?:https?:\/\/)?(?:www\.)?open\.spotify\.com\/album\/([a-zA-Z0-9_-]{4,36})(?:.*?\/a>)?
    
    <div class='embed-wrapper'><div class='embed-container'>
    <iframe src='https://open.spotify.com/embed/album/$1' frameborder='0' allowtransparency='true' allow='encrypted-media'></iframe>
    </div></div>
    


  • This post is deleted!


  • For .WAV direct upload (for those who allow audio hosting)

    <a href="/assets/uploads/files/(.*).wav">[^<]*</a>
    
    <audio id="$1" src="/uploads/files/$1.wav" controls style="lenght:200px"></audio>
    


  • For .MP4 direct upload (for those who allow video hosting)

    <a href="/assets/uploads/files/(.*).mp4">[^<]*</a>
    
    <video id="$1" src="/uploads/files/$1.mp4" controls style="width:800px">
    </video>
    <div><small><a href="/uploads/files/$1.mp4" target="_blank">Download video</a></small></div>
    

    Credit to @I0co



Suggested Topics

| |