• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

[nodebb-plugin-ns-embed] NS Embed

Scheduled Pinned Locked Moved NodeBB Plugins
ns-pluginembedyoutubevimeo
136 Posts 36 Posters 33.6k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NicolasN Offline
    NicolasN Offline
    Nicolas Plugin & Theme Dev
    wrote on last edited by
    #30

    v3.0.0

    New version is available.

    • Changed compability with NodeBB v1.11.0
    1 Reply Last reply
    4
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by The Worms
    #31

    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>
    
    1 Reply Last reply
    2
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by The Worms
    #32

    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>
    
    MJM 1 Reply Last reply
    3
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by
    #33

    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>
    
    Per0xP 1 Reply Last reply
    3
  • Per0xP Offline
    Per0xP Offline
    Per0x GNU/Linux
    replied to The Worms on last edited by Per0x
    #34
    This post is deleted!
    1 Reply Last reply
    0
  • Per0xP Offline
    Per0xP Offline
    Per0x GNU/Linux
    wrote on last edited by Per0x
    #35

    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>
    
    1 Reply Last reply
    0
  • Per0xP Offline
    Per0xP Offline
    Per0x GNU/Linux
    wrote on last edited by Per0x
    #36

    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

    1 Reply Last reply
    0
  • omegaO Offline
    omegaO Offline
    omega Community Rep
    wrote on last edited by omega
    #37

    @nicolas - I have tried setting up a custom embed for Twitter per GitHub resource ref: community rules.

    https://github.com/NicolasSiver/nodebb-plugin-ns-embed/blob/master/docs/community-rules.md#twitter

    Yet it does not seem to work.

    The Plugin itself works, for example YouTube embeds work perfectly and even the custom instagram rule also!

    Any ideas or suggestions appreciated in advance. Thanks.

    • running nBB 1.11.2
    • npm 6.4.1
    1 Reply Last reply
    0
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by The Worms
    #38

    @omega

    For twitter :

    watch :

    (?:<a.*?)?(?:https?:\/\/)?(?:twitter\.com)\/([^\/\"\s]*)\/status\/([^\/\"\s]*)(\/photo\/\d|)(?:.*?\/a>)?
    

    replace :

    <div class='embed-wrapper'>
    <blockquote class="twitter-tweet"><a href="https://twitter.com/$1/status/$2?ref_src=twsrc%5Etfw"></a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 	
    </div>
    
    omegaO FrankMF 2 Replies Last reply
    1
  • omegaO Offline
    omegaO Offline
    omega Community Rep
    replied to The Worms on last edited by omega
    #39

    @The-Worms said in [nodebb-plugin-ns-embed] NS Embed:

    @omega

    For twitter :

    watch :

    (?:<a.*?)?(?:https?:\/\/)?(?:twitter\.com)\/([^\/\"\s]*)\/status\/([^\/\"\s]*)(\/photo\/\d|)(?:.*?\/a>)?
    

    replace :

    <div class='embed-wrapper'>
    <blockquote class="twitter-tweet"><a href="https://twitter.com/$1/status/$2?ref_src=twsrc%5Etfw"></a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 	
    </div>
    

    @The-Worms Ok thanks for that but strangely I went to try this with the plugin and now its not working anymore. I had fresh nodeBB install and now it's hanging when selected in admin. I tried another nodeBB installation and same problem. Hmmm...😑

    omegaO 1 Reply Last reply
    0
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by
    #40

    Your log ?

    ./nodebb log
    
    omegaO 1 Reply Last reply
    0
  • omegaO Offline
    omegaO Offline
    omega Community Rep
    replied to The Worms on last edited by
    #41

    @The-Worms said in [nodebb-plugin-ns-embed] NS Embed:

    Your log ?

    ./nodebb log
    
    node_redis: Warning: Redis server does not require a password, but a password was supplied.
    2019-02-19T12:34:50.446Z [4567/11596] - info: Routes added
    2019-02-19T12:34:50.448Z [4567/11596] - info: NodeBB Ready
    2019-02-19T12:34:50.451Z [4567/11596] - info: Enabling 'trust proxy'
    2019-02-19T12:34:50.454Z [4567/11596] - info: NodeBB is now listening on: 0.0.0.0:4567
    Missing key in translation token "text"
    
    1 Reply Last reply
    0
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by
    #42

    your log in mod development ?

    ./nodebb dev
    
    omegaO 1 Reply Last reply
    1
  • omegaO Offline
    omegaO Offline
    omega Community Rep
    replied to The Worms on last edited by omega
    #43

    @The-Worms said in [nodebb-plugin-ns-embed] NS Embed:

    your log in mod development ?

    ./nodebb dev
    

    I've since reinstalled and the log error - Missing key in translation token "text is gone.

    The dev log spit a large recurring error out, but in summary:

    error: uncaughtException: listen EADDRINUSE: address already in use 0.0.0.0:4567
    
    1 Reply Last reply
    0
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by
    #44
    ./nodebb stop
    ./nodebb dev
    

    for error missing translation is not disturbing for nodebb

    1 Reply Last reply
    1
  • omegaO Offline
    omegaO Offline
    omega Community Rep
    wrote on last edited by
    #45

    Might this be a permission issue with npm or plugin folder?

    While poking around in sftp - I noted that all plugins and themes are located in the /node_modules directory but also the public/build/plugins - this contains only three of the primary plugins.

    1 Reply Last reply
    0
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by The Worms
    #46

    you don't start nodebb in root?

    chown -R omega:omega ~/nodebb_path
    
    omegaO 1 Reply Last reply
    0
  • omegaO Offline
    omegaO Offline
    omega Community Rep
    replied to The Worms on last edited by
    #47

    @The-Worms said in [nodebb-plugin-ns-embed] NS Embed:

    chown -R omega:omega ~/nodebb_path

    Setup was done under root user afaik.

    1 Reply Last reply
    0
  • omegaO Offline
    omegaO Offline
    omega Community Rep
    wrote on last edited by omega
    #48

    Hmmm after running chown I saw this internal error.

    Screenshot 2019-02-21 at 13.46.59.png

    /templates? 😕

    1 Reply Last reply
    0
  • The WormsT Offline
    The WormsT Offline
    The Worms GNU/Linux
    wrote on last edited by
    #49
    npm remove nodebb-plugin-ns-embed
    

    And

    npm install nodebb-plugin-ns-embed
    
    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development