• Community Rep

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

    (?:www.)?bitchute.com/video/([a-zA-Z0-9_-]{4,11})(?:.*?/a>)?

    Both of those worked for me.

    Are you replacing with the embed link?

    <div class='embed-wrapper'><div class='embed-container'><iframe src='https://www.bitchute.com/embed/$1' frameborder='0' allowfullscreen></iframe></div></div>

    2021-02-22_21-12.png

  • Community Rep

    Thanks @yariplus I had not way to test that regex, I saw the iframebtu empty and though that code was ok, but since the regex worked it was the code as you suspected.

    I had a spurious level in there: /embed/video/$1

    As per your embed link it only required - /embed/$1

  • Community Rep

    @yariplus If i could be so bold and throw up another embed puzzle.

    This time rumble, and with mixed success, if you paste an embed link form rumble for e.g.

    https://rumble.com/ve2ez5
    

    This works, but currently displaying a random rumble video.

    Here is the long URL for the same video for reference:

    https://rumble.com/ve2ez5-airplane-returns-to-denver-after-engine-malfunction.html
    

    This is what I have so far that works to embed and display a rumble video but misses the target video! ๐Ÿค”

    replace:

    (?:<a.*?)?(?:https?:\/\/)?(?:www\.)?rumble\.com\/([a-zA-Z0-9_-]{4,6})(?:.*?\/a>)?
    

    embed:

    <div class='embed-wrapper'><div class='embed-container'><iframe src='https://www.rumble.com/embed/rumble_$1/?pub=4' frameborder='0' allowfullscreen></iframe></div></div>
    
  • Community Rep

    @omega

    RUMBLE

    Ok this combo works for me using the the Rumble Embed link that is available on a rumble videos page, e.g. below:

    https://rumble.com/embed/vbenc7/?pub=4
    

    Watch

    (?:<a.*?)?(?:https?:\/\/)?(?:www\.)?rumble\.com\/embed\/([a-zA-Z0-9_-]{4,6})(?:.*?\/a>)?
    

    Embed:

    <div class='embed-wrapper'><div class='embed-container'><iframe iframe class="rumble" width="640" height="360" src='https://www.rumble.com/embed/$1/?pub=4' frameborder='0' allowfullscreen></iframe></div></div>
    

    Not sure how to get the regex to deal with someone who pastes in a full URL for e.g.:

    https://rumble.com/ve0tib-newborn-calf-takes-first-clumsy-steps-to-get-milk-from-his-mother.html
    
  • Community Rep

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

    I don't think it's possible. There doesn't appear to be any direct conversion, or even metadata to grab. Would have to scrape the whole page.

    Or apparently, use iframely ๐Ÿ˜

  • Community Rep

    @yariplus thanks for that insight. I shall not waste further time doing the impossible.

    Itโ€™s good enough for me, users can adapt to a few clicks to make it work

    I have another Iโ€™ll post later. I canโ€™t figure it out.

  • Community Rep

    Here we go, I see this one getting used from time to time to host files. Including .mov files.

    https://catbox.moe

    Usually (not real link)

    https://files.catbox.moe/123Abc.mov

    I almost have it but I don't. I'm getting a 404 in the embed window.

    Replace:

    (?:<a.*?)?(?:https?:\/\/)?(?:www\.)?catbox\.moe\/([a-zA-Z0-9_-]{1,24})\.mov?(?:.*?\/a>)?
    

    Embed:

    <div class='embed-wrapper'><div class='embed-container'><iframe src='https://files.catbox.moe/$1' frameborder='0' allowfullscreen></iframe></div></div>
    

    I didn't spend to long messing with it to get it to work yet.

    I should probably sit down and learn regex at this point. ๐Ÿ™„


  • Is there any way to enable YouTube videos to show full length?

    Mines currently showing like this...

    IMG_20210511_133423.jpg

  • Plugin & Theme Dev

    @anodetobb technically it's possible, but Plugin does not carry such functionality. It's developed with a fixed size of 640px.

    If you would change to the responsive layout and take the whole width, it will also proportionally take way more space vertically.

  • Plugin & Theme Dev

    Version 5.0.0

    The new version is available. Summary: complete rewrite of the ACP (functionality, UI, and UX - has not been changed).

    • Added new notifications in ACP for manipulations around rules
    • Changed project dependencies to rely on fewer libraries
    • Changed integration with NodeBB to preserve the ability to enter Fullscreen (kudos to Revir Yang)
    • Changed compatibility with NodeBB v1.17.x
    • Changed ACP to rely on the latest UI library
    • Removed Babel for unit tests around the rules
    • Removed Gulp as an orchestration tool for SASS styles
  • Community Rep

    So Gab.com is a thing and it's a big platform. it would be nice to be able to embed the gabs.

    Here is an example gab

    https://gab.com/PHOTODAVE58/posts/106525438559342244

    Here is my Regex, might not be perfect but seems to work in the regex checker.

    (?:<a.*?)?(?:https?:\/\/)?(?:gab\.com)/([a-zA-Z0-9]){1,64}/?posts/?([a-zA-Z0-9]){1,64}
    

    Code for the REPLACE, iframe might work but I am not sure about, can't get it to work either way.

    Anyone got any ideas or what I really mean a REPLACE code solution?


  • @nicolas links (www etc) don't seem to be embedding as they used to.

    It just shows a link such as google.com instead of showing google.com in a box.

Suggested Topics

| |