Revision history for AutomaticUserPageCreation


Revision [18262]

Last edited on 2008-01-28 00:10:56 by JavaWoman [Modified links pointing to docs server]

No Differences

Revision [5113]

Edited on 2005-01-24 16:03:03 by JavaWoman [reply to Nils]
Additions:
~~~~~~&Oh, I see what you mean now, Nils. The idea was to include such a "dynamic welcome" in the WelcomeUser page though - where it would be just the action. But then we'd have to create such a page on an install - for now it's only here... Hmmm. --JavaWoman


Revision [5105]

Edited on 2005-01-24 15:18:07 by NilsLindenberg [reply to jw]
Additions:
~~~~~&I know that. But it is to the admin of a wiki, if he includes such thing into the template-page, or not. Not of the user-registration :) --NilsLindenberg


Revision [5104]

Edited on 2005-01-24 15:09:29 by JavaWoman [reply to Nils]
Additions:
~~~~&DarTar, Eggzakly! :) -- JavaWoman
~~~~&Nils, look at the **code** DarTar used here - one of the "little actions" is all that's needed - which will quite likely be included in the //next// version (after 1.1.6.0) Wikka release :) -- JavaWoman
Deletions:
~~~~&Eggzakly! :) -- JavaWoman


Revision [5103]

Edited on 2005-01-24 15:03:50 by NilsLindenberg [reply to dartar, jw]
Additions:
Note that this needs some testing, for example it will surely fail, if you don't give the user the right to load (view?) the template-page.
The user is redirected to WelcomeUser after registration. If you don't want that, just delete the //$this->Redirect(WelcomeUser);// line after inserting the code.
$from = $this->GetConfigValue('userpagetemplate');
$note = 'automatic creation';
$thepage=$this->LoadPage($from); # load the source page
if ($thepage) $pagecontent = $thepage['body']; # get its content
$this->SavePage($name, $pagecontent, $note); #create target page
$this->Redirect(WelcomeUser);
~~&How about a short "who" action without you are? Do actions work in headers? --NilsLindenberg
~~~&Well, this is the case now. Except from the dynamic message. That is something the admin of a wiki has to/can do :) --NilsLindenberg
Deletions:
Note that this needs some testing, for example it will surely fail, if you don't give the user the right to load (view?) the template-page.
$from = $this->GetConfigValue('userpagetemplate');
$note = 'automatic creation';
$thepage=$this->LoadPage($from); # load the source page
if ($thepage) $pagecontent = $thepage['body']; # get its content
$this->SavePage($name, $pagecontent, $note); #create target page


Revision [5101]

Edited on 2005-01-24 14:50:06 by JavaWoman [reply tp DarTar]
Additions:
~~~~&Eggzakly! :) -- JavaWoman


Revision [5099]

Edited on 2005-01-24 14:12:11 by DarTar [Replying to JW]
Additions:
Based on a request in the SuggestionBox, this code will automatically create the page of a newly registered user. Therefore it uses another page, you can choose, as template.
Deletions:
Based on a request in the SuggestionBox, this code will automatically create the page of a newly registered user. Therefore it uses another page, you can choose, as template.


Revision [5098]

Edited on 2005-01-24 14:12:00 by DarTar [Replying to JW]
Additions:
~~~&Yes, I definitely agree that on registration, the user should be redirected to WelcomeUser (which might also contain a dynamic welcome message like: Hi, {{who}}). -- DarTar
Deletions:
~~~&Yes, I definitely agree that on registration, the user should be redirected to WelcomeUser (which might also contain a dynamic welcome message like: //Hi, {{who}} //). -- DarTar


Revision [5097]

Edited on 2005-01-24 14:11:42 by DarTar [Replying to JW]
Additions:
~~~&Yes, I definitely agree that on registration, the user should be redirected to WelcomeUser (which might also contain a dynamic welcome message like: //Hi, {{who}} //). -- DarTar
Deletions:
~~~&Yes, I definitely agree that on registration, the user should be redirected to WelcomeUser (which might also contain a dynamic welcome message like: //Hi, {{who}}//). -- DarTar


Revision [5096]

Edited on 2005-01-24 14:11:22 by DarTar [Replying to JW]
Additions:
~~~&Yes, I definitely agree that on registration, the user should be redirected to WelcomeUser (which might also contain a dynamic welcome message like: //Hi, {{who}}//). -- DarTar


Revision [5089]

Edited on 2005-01-24 13:58:04 by JavaWoman [nother small comment]
Additions:
~~&I was also thinking that on registration the user should be redirected //either// to his/her own new page, or to WelcomeUser which could have a dynamic //link// to the current user's page. --JavaWoman


Revision [5084]

Edited on 2005-01-24 13:42:03 by DarTar [Small comment]
Additions:
~& Nils, nice idea - one extra feature I would like to see here is the automatic creation of a main header with the user name, so as to produce something like ##""=====NilsLindenberg=====""## on page creation. This can either be done 'online' during page generation or by preg_replacing a placeholder on the template page. -- DarTar
Deletions:
~& Nils, nice idea - one extra feature I would like to see here is the automatic creation of a main header with the user name, so as to produce something like ##""=====NilsLindenberg=====""## on page creation. This can either be done 'online' during page generation or by preg_replacing a keyword on the template page. -- DarTar


Revision [5083]

Edited on 2005-01-24 13:41:31 by DarTar [Small comment]
Additions:
~& Nils, nice idea - one extra feature I would like to see here is the automatic creation of a main header with the user name, so as to produce something like ##""=====NilsLindenberg=====""## on page creation. This can either be done 'online' during page generation or by preg_replacing a keyword on the template page. -- DarTar
Deletions:
~& Nils, nice idea - one extra feature I would like to see here is the automatic creation of a main heading with the user name, so as to produce something like ##""=====NilsLindenberg=====""## on page creation. This can either be done 'online' during page generation or by preg_replacing a keyword on the template page. -- DarTar


Revision [5082]

Edited on 2005-01-24 13:40:54 by DarTar [Small comment]
Additions:
{{lastedit}}
~& Nils, nice idea - one extra feature I would like to see here is the automatic creation of a main heading with the user name, so as to produce something like ##""=====NilsLindenberg=====""## on page creation. This can either be done 'online' during page generation or by preg_replacing a keyword on the template page. -- DarTar


Revision [5068]

Edited on 2005-01-24 12:49:01 by NilsLindenberg [addition]
Additions:
===3. Todo and comments===
- make the note for the creation a config-option (i love having everything configurable ;) --NilsLindenberg
- document
- test a little bit more
- offtopic: urgent note to myself: before registering ten times, should not forget to "comment-in" the code [don't ask ;)]


Revision [5066]

Edited on 2005-01-24 12:38:31 by NilsLindenberg [created]
Additions:
%%(php)
%%(php)
if ($createuserpage == 'on')
Deletions:
if ($createuserpage == 'on')


Revision [5065]

Edited on 2005-01-24 12:38:11 by NilsLindenberg [created]
Additions:
====Automatic Creation of Userpages on registration====
===2. Changes to actions/usersettings.php===
Deletions:
====Automatic Creation of Userpages on registration==
==2. Changes to actions/usersettings.php==


Revision [5064]

The oldest known version of this page was created on 2005-01-24 12:37:49 by NilsLindenberg [created]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki