Littlegolden Can't load this discussion page: https://discuss.flarum.org.cn/d/526 There isn't a log created... but got console error ↓ I dont know what's that mean...
tankerkiller125 niutiezhu Please use English in non translation extension areas of the forum. This is so that everyone can participate and understand.
Littlegolden tankerkiller125 Is this error related to the database? Or because i used this command: sed -i -r 's#(UserCard-info"},)#\1Object(T.a)("UID:\\t\\t"+t.id()),#' vendor/flarum/core/js/dist/forum.js
niutiezhu tankerkiller125 Sorry. I will reply in English in the future, my English ability is not good, a large part of English needs to be translated by Google
tankerkiller125 Littlegolden It likely does have something to do with that command, I'm not sure where you got that command or what that command does. But in general we do not recommend changing vendor files or distribution files.
niutiezhu Littlegolden It is most likely that your data went wrong when you upgraded across versions. Everything else is normal, only this one has a problem. I don't think this issue is important, just delete this post.
Littlegolden tankerkiller125 This command displays the UUID on the user card. I used the same command on another flarum, but nothing went wrong.
niutiezhu Littlegolden You must use the modification method of the previous version. Many files in the new version are different. It is best to change it manually. Don't use commands. Take a look at which file you modified and restore that file to the official original file. 3, familiar with the sed i command, and then refer to the previous command, manually enter the file for modification. Don't execute commands automatically I don't recommend showing uid here. It doesn't make sense, because there is no use for it, I want to know the most uid. Just click on the avatar and you can see your uid from the url. I think the official default style is the best. It is not recommended to modify the interface. Will be more ugly
tankerkiller125 Littlegolden I would recommend making this change via an extension rather than via linux commands that replace distributed file data. Your changes will get overwritten (and possibly stop working all together) on every new release of Flarum for the most part.
niutiezhu Littlegolden For Chinese users, you only need to access the profile url. Modify it to access with uid, others do not need to be modified
Littlegolden niutiezhu It is best to change it manually Yeah, I do changed the datebase manually, the modification method is useless.
Littlegolden niutiezhu Currently I don't think I will use uid as the slug for profile url due to the issue > flarum/core1356.