Thank you Mark, the changes look fantastic!!
Test of youtube embeds
-
Ok that test worked so ns can embed even the unusual shortened youtube links.
Ive forgotten how to instal plugins on the server, as its not whitelisted will need to do it that way.
@phenomlab could you remind me please? -
@Panda said in Test of youtube embeds:
could you remind me please?
You’ll need to get a CLI session to your server and from the directory where nodebb is installed, run
npm install nodebb-plugin-ns-embed
Then activate the plugin in the usual manner and rebuild
-
@phenomlab Do you need to be in the plugins folder to run that, or does it automatically install the plugin into the plugins folder?
-
@Madchatthew no, you just need to be in NodeBB root
-
-
This is a nice embed plugin but…the size of the embed is very small. I used one in the past that was bigger but cannot remember which one
-
@Sampo2910 nothing that CSS can’t fix
-
@phenomlab I have the exact same issue.
-
@phenomlab Can you enlighten me with some please
Not in my skill set.
-
@Sampo2910 @jac you just need to target the
iframe
itself (be aware that this will affect all other iframes, so you may want to be more specific if need be). Something like this will work - just play with theheight
andwidth
values to get the desired result.iframe { height: 400px; width: 400px; }
-
@phenomlab Perfect …Thank you.
-
@phenomlab said in Test of youtube embeds:
be aware that this will affect all other iframes, so you may want to be more specific
Is there a way that we can only be specific to this embed?
-
@Sampo2910 yes, you could try
iframe[src*="youtube"] { height: 400px; width: 400px; }
This is of course an example that looks for “youtube” in the
src
string. You’d need to adapt it as necessary. The only other way possible here would be to assign adiv
ID to the container but that would require a change to the underlying plugin code.If you need to apply this to mobile only views, it’ll be to be
@media (max-width: 767px) { iframe { height: 370px; width: 360px !important; } }
-
@phenomlab Perfect!!! Many thanks.
Did this solution help you?
Related Topics
-
-
-
-
Composer Zen icon?
Solved Configure -
Gettin Erors NodeBB
Solved Configure -
Post Style View
Solved Customisation -
-