[nodebb-plugin-ns-embed] NS Embed
-
@omega said in [nodebb-plugin-ns-embed] NS Embed:
@The-Worms said in [nodebb-plugin-ns-embed] NS Embed:
commands like git and ./nodebb should not be used with root access (sudo or elevated privileges). It will cause problems with different ownership of files NodeBB needs access to
Ok thank you - I'll create a sudo user and then re-run the installation from scratch.
I've forked and replied to this here - https://community.nodebb.org/topic/13685/trouble-shooting-new-plugins-installed-not-working-what-gives
I didn't want to derail this topic further with my issues.
-
@omega said in [nodebb-plugin-ns-embed] NS Embed:
<div class='embed-wrapper'>
<blockquote class="twitter-tweet"><a href="https://twitter.com/$1/status/$2?ref_src=twsrc^tfw"></a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>Due to all the fantastic help available from this great nodeBB community - the above original solution as posted by @The-Worms to my problem, I can now confirm works beautifully!
-
We've installed this plugin and it works fine (thank you !!!). However, we've noticed that users can't post a youtube/instagram/etc. link without it being automatically embedded, even if they use the "link" option on the composer. (This option is useful when you want to post a list of youtube links but don't want embedded videos taking up the whole page.) Is there any way to prevent that from happening ?
-
@Nicolas having this issue with a clean install. any ideas?
Tue, 07 May 2019 18:45:38 GMT hsts deprecated The "setIf" parameter is deprecated. Refer to the documentation to see how to set the header conditionally. at node_modules/helmet/index.js:33:28 2019-05-07T18:45:38.638Z [4567/10957] - [33mwarn[39m: [deprecated] requiring core modules with `module.parent.require('./src/emitter')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead. at /var/www/nodebb/node_modules/nodebb-plugin-ns-embed/plugin/nodebb.js:8:31 2019-05-07T18:45:38.639Z [4567/10957] - [31merror[39m: Error: Cannot find module './src/emitter' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Module.require.main.require (/var/www/nodebb/require-main.js:8:10) at /var/www/nodebb/node_modules/nodebb-plugin-ns-embed/plugin/nodebb.js:8:31 at Object.<anonymous> (/var/www/nodebb/node_modules/nodebb-plugin-ns-embed/plugin/nodebb.js:44:3) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) 2019-05-07T18:45:38.639Z [4567/10957] - [33mwarn[39m: [plugins] Unable to parse library for: nodebb-plugin-ns-embed 2019-05-07T18:45:38.671Z [4567/10957] - [32minfo[39m: Routes added
-
@shinyidol I think you install the older version of the plugin.
-
@shinyidol I'm getting the identical output as your posted log.
I upgraded a clean 1.12.1 nodeBB to 1.12.2 and tried to install this plugin, and it's not appearing. Used plugin manager too.
Got this error
2019-05-20T14:40:46.012Z [4567/11196] - warn: [plugins] Unable to parse library for: nodebb-plugin-ns-embed
-
@omega said in [nodebb-plugin-ns-embed] NS Embed:
@shinyidol I'm getting the identical output as your posted log.
I upgraded a clean 1.12.1 nodeBB to 1.12.2 and tried to install this plugin, and it's not appearing. Used plugin manager too.
Got this error
2019-05-20T14:40:46.012Z [4567/11196] - warn: [plugins] Unable to parse library for: nodebb-plugin-ns-embed
@Nicolas can you provide any help?
-
I had to install it from command line. It was not working from the GUI.
-
@JaredBusch said in [nodebb-plugin-ns-embed] NS Embed:
I had to install it from command line. It was not working from the GUI.
I haven't installed plugin via cmd line yet, is this the exact method you used?
-
I tried plugin install via cmd line as per doc.nodebb guide linked above does not seem to have worked.
Terminal spit this out (removed code)
UPDATE: Tried it again, using historical advice from @The-Worms (back up the thread - click here) this time using
sudo npm remove nodebb-plugin-ns-embed npm install nodebb-plugin-ns-embed
Now I can see the plugin with nBB v1.12.2 and it works too + to have everything in one place next time I forget what I did or anyone else, here is the Twitter code that works for custom embed.
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^tfw"></a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> </div>
-
@cfrancois said in [nodebb-plugin-ns-embed] NS Embed:
@omega
Hello I copied this code, but no message appeared for a tweet.
I managed to make work youtube, peertube, vimeo etc... without a problem, even slideshare. But for twitter, I'm wondering if I'm not missing something.As suggested to me. Did you restart and rebuild or run via cod line - ./nodebb build
After you installed the plugin?
-
@omega I tried and tried... the problem wasn't the plugin at all, but just my browser security that blocked the twitter's widget tracker.
I'm ashamed to fall in this trap during days. So I reduce my security level and everything is fine now.
Thanks.
-
I've installed and activated nodebb-plugin-ns-embed in a clean 1.12.2 installation but doesn't seem to work.
Also I can't find the plugin configuration to change the options...
The plugin appears to be active correctly.--
Can you help me? Thanks.
PS: I have another nodebb 1.10 forum with nodebb-plugin-youtube-embed and nodebb-plugin-embed-combo and works well. But I've tried to upgrade to 1.12 and nodebb-plugin-embed-combo doesn't works with this version.
-
Somebody know how to do this for Bandcamp?
-
@The-Worms said in [nodebb-plugin-ns-embed] NS Embed:
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>
This one is not working for me