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/.

    Cannot change user slug

    Pianificato Fissato Bloccato Spostato Uncategorized
    27 Post 3 Autori 90 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.
    • N Questo utente è esterno a questo forum
      nodeham@community.nodebb.org @nodeham@community.nodebb.org
      ultima modifica di

      I also changed the name of the forums and now emails are showing up with a broken logo.
      I updated the logo in General settings so what is the email using that still points to the previous domain which is now down? I've searched everything but the database and cannot find anything that points to the old domain.

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

        Does no one peruse these forums anymore? :)

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

          If you changed the value of url in config.json then you have restart nodebb, so that next time the emailer sends email it uses the new url.

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

            Yes, I changed the name/url in the config file along with on the back end of course.
            I also deleted the old logo and uploaded the new one but the logo in emails remains broken with the name of the previous site still in the url.

            I searched the DB and tries to hard code the new url but that didn't work for emails at least.
            I searched all of the files to be safe and find nothing for the old url so I don't know where this is coming from.

            Not sure what else to look at which is why I posted.

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

              This is where the email template is rendered, you can add a console.log(params) there to see the values used for the logo.

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

                Yes but I don't want to edit files directly as there are so many nodebb updates that will overwrite changes.
                In addition, I never had to edit this file to get the logo working in emails so I'm very hesitant about touching that.

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

                  You are just editing it to debug the issue, once you see the correct url there you can revert the change back.

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

                    Ok, I can try that.

                    Making this change worked;
                    Emailer._defaultPayload = {
                    url: nconf.get('url'),
                    site_title: meta.config.title || 'NodeBB',
                    logo: {
                    src: "https://my.nodebb.com/assets/uploads/system/site-logo.png",
                    height: 50,
                    width: 247,
                    },
                    };

                    I also tried this with no luck.

                    nodebb> db.objects.find({ _key: "meta/config" }).pretty()
                    ...

                    nodebb> db.objects.find({ _key: "meta/config" }, { logo: 1, _id: 0 }).pretty()
                    ...

                    nodebb>

                    This confirmed that the meta/config document currently does not exist in the database.

                    db.objects.insertOne({
                    _key: "meta/config",
                    logo: "https://my.nodebb.com/assets/uploads/system/site-logo.png"
                    })

                    Rebuilt and restarted NodeBB

                    ./nodebb build
                    ./nodebb restart

                    No change.

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

                      The key name is just config not meta/config

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

                        Ok but either way, I can't customize this page that will get overwritten so how can I get this to work? More importantly, why is it not working since it worked before the domain name change.

                        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 @nodeham@community.nodebb.org
                          ultima modifica di

                          NodeHam regarding the user name change, are you sure it worked? Can you access the user via their new username?

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

                            Yes, I can log in and out, post as the renamed user.

                            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 @nodeham@community.nodebb.org
                              ultima modifica di

                              NodeHam sounds like a varnish cache issue...

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

                                Could be, if I had a cache installed but I don't. I cleared nodebb cache as well but the problem persists. Right now, the only way this works is with the edited file which I'd like to restore.

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

                                  Does anyone have any other thoughts? It's been using an edited file to solve this and I prefer not to do that and to solve this before there is another nodebb update.

                                  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 @nodeham@community.nodebb.org
                                    ultima modifica di

                                    NodeHam this is not related to a remote user account, right? But a local account?

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

                                      To be safe, what you do mean by remote user account? It's a user on nodebb itself so I suppose that means local.

                                      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 @nodeham@community.nodebb.org
                                        ultima modifica di

                                        NodeHam yes, a remote account would be an account on another NodeBB forum, for example, reached via federation.

                                        So you're able to access both user pages? What happens when you type ajaxify.data into the browser dev console on both pages?

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

                                          Got it, no federation at all, single site on its own.

                                          I'm not terribly concerned about the slug at this point. The email logo was fixed by editing the file and that's what I'm mainly nervous about.

                                          ajaxify.data
                                          {uid: 49, username: 'HelpSupport', userslug: 'helpsupport', email: 'support@mynodebb.com', email:confirmed: true, …}

                                          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 @nodeham@community.nodebb.org
                                            ultima modifica di

                                            NodeHam thanks, and what about at the new url?

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