Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Technical Support
  3. Cannot change user slug

Cannot change user slug

Planlagt Fastgjort Låst Flyttet Technical Support
26 Indlæg 3 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • N nodeham@community.nodebb.org

    I have to rename a user but after doing that, their posts under the old name still shows up and the username still shows the old user.
    Is there a way to fix this?

    baris@community.nodebb.orgB This user is from outside of this forum
    baris@community.nodebb.orgB This user is from outside of this forum
    baris@community.nodebb.org
    wrote on sidst redigeret af
    #6

    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 Reply Last reply
    0
    • System shared this topic on
    • N This user is from outside of this forum
      N This user is from outside of this forum
      nodeham@community.nodebb.org
      wrote on sidst redigeret af
      #7

      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 Reply Last reply
      0
      • baris@community.nodebb.orgB This user is from outside of this forum
        baris@community.nodebb.orgB This user is from outside of this forum
        baris@community.nodebb.org
        wrote on sidst redigeret af
        #8

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

        1 Reply Last reply
        0
        • N This user is from outside of this forum
          N This user is from outside of this forum
          nodeham@community.nodebb.org
          wrote on sidst redigeret af
          #9

          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 Reply Last reply
          0
          • baris@community.nodebb.orgB This user is from outside of this forum
            baris@community.nodebb.orgB This user is from outside of this forum
            baris@community.nodebb.org
            wrote on sidst redigeret af
            #10

            The key name is just config not meta/config

            1 Reply Last reply
            0
            • N This user is from outside of this forum
              N This user is from outside of this forum
              nodeham@community.nodebb.org
              wrote on sidst redigeret af
              #11

              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 Reply Last reply
              0
              • N nodeham@community.nodebb.org

                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 This user is from outside of this forum
                julian@community.nodebb.orgJ This user is from outside of this forum
                julian@community.nodebb.org
                wrote on sidst redigeret af
                #12

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

                1 Reply Last reply
                0
                • N This user is from outside of this forum
                  N This user is from outside of this forum
                  nodeham@community.nodebb.org
                  wrote on sidst redigeret af
                  #13

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

                  julian@community.nodebb.orgJ 1 Reply Last reply
                  0
                  • N nodeham@community.nodebb.org

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

                    julian@community.nodebb.orgJ This user is from outside of this forum
                    julian@community.nodebb.orgJ This user is from outside of this forum
                    julian@community.nodebb.org
                    wrote on sidst redigeret af
                    #14

                    NodeHam sounds like a varnish cache issue…

                    1 Reply Last reply
                    0
                    • N This user is from outside of this forum
                      N This user is from outside of this forum
                      nodeham@community.nodebb.org
                      wrote sidst redigeret af
                      #15

                      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 Reply Last reply
                      0
                      • N This user is from outside of this forum
                        N This user is from outside of this forum
                        nodeham@community.nodebb.org
                        wrote sidst redigeret af
                        #16

                        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 Reply Last reply
                        0
                        • N nodeham@community.nodebb.org

                          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 This user is from outside of this forum
                          julian@community.nodebb.orgJ This user is from outside of this forum
                          julian@community.nodebb.org
                          wrote sidst redigeret af
                          #17

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

                          1 Reply Last reply
                          0
                          • N This user is from outside of this forum
                            N This user is from outside of this forum
                            nodeham@community.nodebb.org
                            wrote sidst redigeret af
                            #18

                            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 Reply Last reply
                            0
                            • N nodeham@community.nodebb.org

                              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 This user is from outside of this forum
                              julian@community.nodebb.orgJ This user is from outside of this forum
                              julian@community.nodebb.org
                              wrote sidst redigeret af
                              #19

                              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 Reply Last reply
                              0
                              • N This user is from outside of this forum
                                N This user is from outside of this forum
                                nodeham@community.nodebb.org
                                wrote sidst redigeret af
                                #20

                                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 Reply Last reply
                                0
                                • N nodeham@community.nodebb.org

                                  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 This user is from outside of this forum
                                  julian@community.nodebb.orgJ This user is from outside of this forum
                                  julian@community.nodebb.org
                                  wrote sidst redigeret af
                                  #21

                                  NodeHam thanks, and what about at the new url?

                                  1 Reply Last reply
                                  0
                                  • N This user is from outside of this forum
                                    N This user is from outside of this forum
                                    nodeham@community.nodebb.org
                                    wrote sidst redigeret af
                                    #22

                                    Sorry, are we talking about the image or the user now?
                                    The image url is correct but emails do not have that, they have the old url without the edited file.
                                    It’s like something got ‘stuck’ for lack of better word.

                                    julian@community.nodebb.orgJ 1 Reply Last reply
                                    0
                                    • N nodeham@community.nodebb.org

                                      Sorry, are we talking about the image or the user now?
                                      The image url is correct but emails do not have that, they have the old url without the edited file.
                                      It’s like something got ‘stuck’ for lack of better word.

                                      julian@community.nodebb.orgJ This user is from outside of this forum
                                      julian@community.nodebb.orgJ This user is from outside of this forum
                                      julian@community.nodebb.org
                                      wrote sidst redigeret af
                                      #23

                                      NodeHam any chance we can see this site?

                                      1 Reply Last reply
                                      0
                                      • N This user is from outside of this forum
                                        N This user is from outside of this forum
                                        nodeham@community.nodebb.org
                                        wrote sidst redigeret af
                                        #24

                                        Sure, in this case, it’s https://support.isptracker.com/

                                        1 Reply Last reply
                                        0
                                        • N This user is from outside of this forum
                                          N This user is from outside of this forum
                                          nodeham@community.nodebb.org
                                          wrote sidst redigeret af
                                          #25

                                          Ok so, there’s already an update but I need to solve this before I can update or have to edit the file again.

                                          julian@community.nodebb.orgJ 1 Reply Last reply
                                          0
                                          Svar
                                          • Svar som emne
                                          Login for at svare
                                          • Ældste til nyeste
                                          • Nyeste til ældste
                                          • Most Votes


                                          • Log ind

                                          • Har du ikke en konto? Tilmeld

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          Graciously hosted by data.coop
                                          • First post
                                            Last post
                                          0
                                          • Hjem
                                          • Seneste
                                          • Etiketter
                                          • Populære
                                          • Verden
                                          • Bruger
                                          • Grupper