[nodebb-plugin-ns-embed] NS Embed

NodeBB Plugins
  • @DownPW yes, I'd like that also.

  • @DownPW Sorry, I am not entirely familiar with the plugin... does Twitter come predefined in ns-embed, and is the embed code incorrect?

  • @julian said in [nodebb-plugin-ns-embed] NS Embed:

    does Twitter come predefined in ns-embed, and is the embed code incorrect?

    No, it doesn't. Essentially, this plugin is a fork of nodebb-plugin embed with enhancements I think

  • @julian in theory, this should work




    <div class="embed-wrapper" lang="en"><div class='embed-container'><iframe src='https://twitter.com/$1/status/$2' frameborder='0' allowfullscreen></iframe></div></div>

    But sadly, it doesn't.

  • Yep correct...
    The twitter rule doesn't work...

  • As history tests, I am no reg-ex expert, but I've figured out a few monkey see monkey do style, but I'm a bit flummoxed with Odysee embeds.

    This is the regex I'm using and that seems to work 😧

    Odysee Embeds



    Therefore I believe it's the embed that's floundering. The below is not doing the do - anyone?


    <div class='embed-wrapper'><div class='embed-container'><iframe id="odysee-iframe" width="560" height="315" src="https://odysee.com/@$1$2:$3/$4$5:$6" allowfullscreen></iframe></div></div>

    ... help! 😲

  • for streamable link

    <div class='embed-wrapper'><div class='embed-container'><iframe src="https://streamable.com/e/$1" frameborder="0" allowfullscreen></iframe></div></div>
  • for twitter, we can use 3rd to wrap the link in iframe then use that 3rd link, for example https://twitframe.com/:



    <iframe border=0 frameborder=0 width="560" height="415"src="https://twitframe.com/show?url=https://twitter.com/$1/status/$2"></iframe>4
  • Is there a way to embedd uploaded e.g. Powerpoint or Word files?

  • Is there a way to fix errors after plugin activation and make it work ?
    My nodeBB V2.6.1, npm V8.19.2, OS Deb10 - plugin version 3.0.19

    2022-12-09T21:02:24.914Z [5217/6503] - warn: [plugins/nodebb-plugin-embed] The plugin.json field "library" is deprecated. Please use the package.json field "main" instead.
    2022-12-09T21:02:24.917Z [5217/6503] - warn: [plugins] Unable to load library for: nodebb-plugin-embed
    2022-12-09T21:02:24.918Z [5217/6503] - error: TypeError: winston.Logger is not a constructor
    at /root/nodebb/node_modules/nodebb-plugin-embed/plugin/logger.js:9:22
    at Object.<anonymous> (/root/nodebb/node_modules/nodebb-plugin-embed/plugin/logger.js:23:3)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/root/nodebb/node_modules/nodebb-plugin-embed/plugin/controller.js:4:18)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)

  • O omen referenced this topic on

Suggested Topics

  • 0 Votes
    1 Posts
  • 0 Votes
    3 Posts
  • 2 Votes
    2 Posts
  • 4 Votes
    9 Posts