Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    [nodebb-plugin-link-preview] Rich Embeds and Link Previews

    Pianificato Fissato Bloccato Spostato Uncategorized
    68 Post 14 Autori 425 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • mschwartz@community.nodebb.orgM Questo utente è esterno a questo forum
      mschwartz@community.nodebb.org @julian@community.nodebb.org
      ultima modifica di

      image.png

      Link Preview Image
      1 Risposta Ultima Risposta Rispondi Cita 0
      • mschwartz@community.nodebb.orgM Questo utente è esterno a questo forum
        mschwartz@community.nodebb.org @julian@community.nodebb.org
        ultima modifica di

        I finally found and installed it and it works mostly.

        It doesn’t recognize https://m.youtube style URLs, so I have to manually edit the m. part out.

        That’s the only embed I tried.

        1 Risposta Ultima Risposta Rispondi Cita 0
        • mschwartz@community.nodebb.orgM Questo utente è esterno a questo forum
          mschwartz@community.nodebb.org @julian@community.nodebb.org
          ultima modifica di

          https://m.youtube.com/watch?v=sOW8ONwzL7Y&pp=ygUgc29mdGJhbGwgc2xvdyBwaXRjaCBoaXR0aW5nIHRpcHM%3D

          (No embed!)

          1 Risposta Ultima Risposta Rispondi Cita 0
          • crazycells@community.nodebb.orgC Questo utente è esterno a questo forum
            crazycells@community.nodebb.org @julian@community.nodebb.org
            ultima modifica di

            hi julian , iframely was showing pdfs as preview, so you did not have to click the page to read on another tab, you could just read the pdfs in the forum... Can this plugin be expanded to include pdf previews?

            1 Risposta Ultima Risposta Rispondi Cita 0
            • crazycells@community.nodebb.orgC Questo utente è esterno a questo forum
              crazycells@community.nodebb.org @julian@community.nodebb.org
              ultima modifica di

              I do not know if it is possible, but I still think it would be very cool to have a pdf previews in the forum, so users do not have to leave the forum to check the pdf documents...

              Screenshot 2024-04-02 at 21.48.59.png

              Link Preview Image
              1 Risposta Ultima Risposta Rispondi Cita 0
              • D Questo utente è esterno a questo forum
                darkpollo@community.nodebb.org @julian@community.nodebb.org
                ultima modifica di

                julian Just to confirm that this plugin did not come bundled when I installed it.
                I found and installed and activated with no issue, but it was not part of the basic install.

                julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
                • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                  julian@community.nodebb.org @darkpollo@community.nodebb.org
                  ultima modifica di

                  darkpollo you're right, the plugin isn't bundled with new installs 🙂

                  1 Risposta Ultima Risposta Rispondi Cita 0
                  • benyto@community.nodebb.orgB Questo utente è esterno a questo forum
                    benyto@community.nodebb.org @julian@community.nodebb.org
                    ultima modifica di

                    julian works fine, thanks
                    would be nice to have links opened in new tab or configurable at least

                    julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
                    • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                      julian@community.nodebb.org @benyto@community.nodebb.org
                      ultima modifica di

                      thanks for commenting benyto . The plugin follows NodeBB's behaviour in not modifying anchor target. The end user can ctrl-click the link to open in a new tab, shift-click to open in new window, etc.

                      1 Risposta Ultima Risposta Rispondi Cita 0
                      • paweł@community.nodebb.orgP Questo utente è esterno a questo forum
                        paweł@community.nodebb.org @julian@community.nodebb.org
                        ultima modifica di

                        I installed the plugin via dashboard plugins.

                        NodeBB v3.10.3

                        I did a rebuild, the plugin appears, but saving settings does not work.
                        In addition, I have this error in the console: “admin.min.js?v=o50k63atqko:1 error loading admin/plugins/link-preview
                        Error: Cannot find module './plugins/link-preview'”

                        What did I do wrong?

                        1 Risposta Ultima Risposta Rispondi Cita 0
                        • nhl.pl@community.nodebb.orgN Questo utente è esterno a questo forum
                          nhl.pl@community.nodebb.org @julian@community.nodebb.org
                          ultima modifica di

                          What kind of hosting? Some container based and one click installs do not support updating plugins from dashboard. Please try to do the same thing from command line.

                          1 Risposta Ultima Risposta Rispondi Cita 0
                          • paweł@community.nodebb.orgP Questo utente è esterno a questo forum
                            paweł@community.nodebb.org @julian@community.nodebb.org
                            ultima modifica di

                            I have VPS, and other plugins works fine, I have only problem with this. Save button dosen't work in plugin settigns.
                            /admin/plugins/link-preview

                            When I click "Save changes"/"Zapisz zmiany" - nothing happen, and after refresh page changes on checkboxes are gone.
                            7efdce23-dc05-4350-ad96-898e5f9b5ddc-image.png

                            Link Preview Image
                            julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
                            • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                              julian@community.nodebb.org @paweł@community.nodebb.org
                              ultima modifica di

                              Paweł hello again, when you run ./nodebb build, do you see any errors?

                              1 Risposta Ultima Risposta Rispondi Cita 0
                              • paweł@community.nodebb.orgP Questo utente è esterno a questo forum
                                paweł@community.nodebb.org @julian@community.nodebb.org
                                ultima modifica di

                                Hello! I have one error, and the build is successfully

                                2024-12-02T14:00:40.772Z [4567/43946] - info: [build] admin control panel styles  build completed in 5.442sec
                                2024-12-02T14:00:40.773Z [4567/43946] - info: [build]                  templates  build started
                                2024-12-02T14:00:42.294Z [4567/43946] - info: [build]                  templates  build completed in 1.521sec
                                2024-12-02T14:00:42.296Z [4567/43946] - info: [build]                  languages  build started
                                2024-12-02T14:00:47.214Z [4567/43946] - info: [build]                  languages  build completed in 4.918sec
                                2024-12-02T14:00:47.216Z [4567/43946] - info: [build] Bundling with Webpack.
                                315 assets
                                788 modules
                                
                                ERROR in ./build/public/scripts-client.js 1960:5
                                Module parse failed: Unexpected token (1960:5)
                                You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
                                | });
                                |
                                > ;CC0 1.0 Universal
                                |
                                | Statement of Purpose
                                
                                webpack 5.94.0 compiled with 1 error in 19554 ms
                                2024-12-02T14:01:07.713Z [4567/43946] - info: [build] Asset compilation successful. Completed in 41.304sec.
                                
                                1 Risposta Ultima Risposta Rispondi Cita 0
                                • baris@community.nodebb.orgB Questo utente è esterno a questo forum
                                  baris@community.nodebb.org @julian@community.nodebb.org
                                  ultima modifica di

                                  Paweł check your plugins, looks like one of them is included a non-js file in the scripts block of its plugin.json

                                  1 Risposta Ultima Risposta Rispondi Cita 0
                                  • paweł@community.nodebb.orgP Questo utente è esterno a questo forum
                                    paweł@community.nodebb.org @julian@community.nodebb.org
                                    ultima modifica di

                                    baris How should I find it in the admin panel or in the source code on the server?

                                    Edit:
                                    Ok I found the problem! grep -r ";cc0 1.0 universal" - there was problem with depreacted plugin nodebb-plugin-html5videoplayer - I removed this and know everythong works fine!

                                    Thanks a lot for your quick help! This is my first time using NodeBB.

                                    1 Risposta Ultima Risposta Rispondi Cita 0
                                    • baris@community.nodebb.orgB Questo utente è esterno a questo forum
                                      baris@community.nodebb.org @julian@community.nodebb.org
                                      ultima modifica di

                                      Paweł no problem, yeah you can grep for stuff in the node_modules directory to find the culprit. Or you can disable plugins one by one. ./nodebb plugins command shows active plugins.

                                      1 Risposta Ultima Risposta Rispondi Cita 0
                                      • sketchucation@community.nodebb.orgS Questo utente è esterno a questo forum
                                        sketchucation@community.nodebb.org @julian@community.nodebb.org
                                        ultima modifica di

                                        If I try to update I get this...

                                        6b77f422-4ca8-465e-91b8-b8d73c1c3fbf-image.png

                                        But my nodebb is running the latest.

                                        Any tips?

                                        Link Preview Image
                                        1 Risposta Ultima Risposta Rispondi Cita 0
                                        • sketchucation@community.nodebb.orgS Questo utente è esterno a questo forum
                                          sketchucation@community.nodebb.org @julian@community.nodebb.org
                                          ultima modifica di

                                          Ok, so after a clean manual install we can't get this plugin to work...
                                          image.png

                                          Now it is telling us that the previous v1.... is the latest?

                                          Link Preview Image
                                          julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
                                          • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                                            julian@community.nodebb.org @sketchucation@community.nodebb.org
                                            ultima modifica di

                                            sketchucation you should be able to install the latest version from the command line

                                            1 Risposta Ultima Risposta Rispondi Cita 0
                                            • Primo post
                                              Ultimo post