Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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
Collapse

FòrumCAT

  1. Home
  2. Technical Support
  3. Cannot change user slug

Cannot change user slug

Scheduled Pinned Locked Moved Technical Support
26 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 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 last edited by
    #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
    • 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?

      N This user is from outside of this forum
      N This user is from outside of this forum
      nodeham@community.nodebb.org
      wrote last edited by
      #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
      • 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 last edited by
        #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 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?

          N This user is from outside of this forum
          N This user is from outside of this forum
          nodeham@community.nodebb.org
          wrote last edited by
          #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
          • 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 last edited by
            #10

            The key name is just config not meta/config

            1 Reply Last reply
            0
            • 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?

              N This user is from outside of this forum
              N This user is from outside of this forum
              nodeham@community.nodebb.org
              wrote last edited by
              #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 last edited by
                #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 last edited by
                  #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 last edited by
                    #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 last edited by
                      #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 last edited by
                        #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 last edited by
                          #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 last edited by
                            #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 last edited by
                              #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 last edited by
                                #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 last edited by
                                  #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 last edited by
                                    #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 last edited by
                                      #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 last edited by
                                        #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 last edited by
                                          #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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups