SID-01278: Upgrading user profiles
| Status: |
Answered |
TWiki version: |
5.1.0 |
Perl version: |
5.10.0 |
| Category: |
CategoryRegistration |
Server OS: |
Debian Linux 5.0.8 |
Last update: |
14 years ago |
Upgrading from TWiki-4.1.2 to TWiki-5.1.0
I want to a) upgrade the User Home Pages to the new User Profile Pages and b) ensure that the new user registration page uses the new format. Immediately after the upgrade, the old format was being shown for both.
TWiki05x01.UserForm has four steps to be followed to customise the form, which I have followed. If I then logout and go to Account (on menu bar), Register User, I'm shown the old registration form.
I've clearly missed a step somewhere, but where?
Thanks,
Keith
--
KeithEdmunds - 2011-09-23
Discussion and Answer
You are likely missing the VIEW_TEMPLATE setting in the topic preferences setting of your Main.NewUserTemplate:
-
Local VIEW_TEMPLATE = UserView
Do the same for your existing user profile pages. I just did that for your user profile page on twiki.org. (BTW, could you please opt in to the code of conduct? See
KeithEdmunds)
--
PeterThoeny - 2011-09-23
I updated
TWiki.UserForm with improved docs. Also in SVN trunk and 5.1 branch for next patch release.
--
PeterThoeny - 2011-09-24
Thanks Peter, and we seem to have moved forward a little. Should I be expecting a User Profile page similar to the ones here? The user profile pages on the TWiki I've upgraded don't show a photo or even a placeholder for one. I attached a photo to one page and put the name in the "Image" entry of the form, but the photo merely shows at the foot of the page in the usual way. Apologies if I've misunderstood what I should be expecting to see.
--
KeithEdmunds - 2011-09-26
If you have set the
VIEW_TEMPLATE properly may be the template page is missing or outdated? If the view template is set to
UserView, TWiki refers to the
Main.UserViewTemplate. Copy from the latest TWiki distribution if needed.
--
PeterThoeny - 2011-09-26
Thanks again, Peter. Copying the Main.UserViewTemplate over didn't fix it; however, I read the upgrade instructions again. We used the
BackupRestorePlugin, which by default backs up and restores the Main web. In the upgrade instructions, it states that files should be migrated from the old version, but not to overwrite any files in the new Main web. To resolve this, I copied the whole Main web from the distribution over the upgraded one, and now all works well.
--
KeithEdmunds - 2011-09-29
I am glad it worked out. Happy Twiki'ing!
--
PeterThoeny - 2011-09-29
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.