Tags:
create new tag
view all tags

SID-01859: Change Default Users Prefs

Status: Answered Answered TWiki version: 6.0.0 Perl version: 5.10.1
Category: CategoryRegistration Server OS: Debian Last update: 12 years ago

Hi!

how can I automatically add a preference to a new users page? I want every registered user to have this setting on their user page automatically (without the "literal" stuff):

* Set ALLOWWEBCHANGE = %TOPIC%

What I want to achieve is:

  • The web has restricted access: you can only edit topics if you are in Approved-Users-Group
  • so after registration a user can't edit his personal user page (to add his email address, phone number, whatever)
  • This settings should be put to his user page automatically when it is created
  • What this preference does: it allows him to change his user page because his wikiname is the same as the topicname

-- Karsten Priegnitz - 2014-01-20

Discussion and Answer

You can customize the Main.NewUserTemplate to fit your needs. If it does not exist, clone the one from the TWiki web - see TWikiInstallationGuide

You probably need ALLOWTOPICCHANGE, not ALLOWWEBCHANGE.

You have control over variable expansion, see TWikiTemplates

-- Peter Thoeny - 2014-01-20

Worked like a charm (Set ALLOWTOPICCHANGE = %TOPIC%).

But what does "Add a default ALLOWTOPICCHANGE ..." in TWikiInstallationGuide mean?

Danke, Karsten

-- Karsten Priegnitz - 2014-01-21

What we discussed there smile

In any case, I do not recommend locking down user profile pages. Read TWikiAccessControl.

-- Peter Thoeny - 2014-01-21

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Change Default Users Prefs
SupportCategory CategoryRegistration
TWiki version 6.0.0
Server OS Debian
Web server Apache 2.2
Perl version 5.10.1
Browser & version FF 26.0
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2014-01-21 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.