01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

link to <strong>the</strong> RegistrationWeb “Participants,” since we wish to guide<br />

visitors to <strong>the</strong>ir pages; because once a user is registered and logged<br />

in, he lands on <strong>the</strong> WebHome page, where a link with <strong>the</strong> name<br />

“Your Page” is to be added with <strong>the</strong> variable Registration-<br />

Web.%WIKIUSERNAME%. The variable is <strong>the</strong>n replaced by a link<br />

to <strong>the</strong> page of <strong>the</strong> logged-in user.<br />

If <strong>the</strong> user is not yet logged in, <strong>the</strong> link of course will not work.<br />

The user would be transferred to <strong>the</strong> TWikiGuest page. That is why<br />

<strong>the</strong> user must be forced to log in. We can achieve this by blocking<br />

<strong>the</strong> WebHome of <strong>the</strong> RegistrationWeb for anyone not logged in.<br />

Then, <strong>the</strong> login window opens automatically. Here, <strong>the</strong> user can log<br />

into <strong>the</strong> system or be transferred to <strong>the</strong> registration form via a link.<br />

That link still points to <strong>the</strong> original TWiki registration page. To<br />

change it, you need to edit <strong>the</strong> template of <strong>the</strong> login message. You<br />

can find out how in <strong>the</strong> next section.<br />

20.2.6<br />

Confirmation Page/Email and Error Messages<br />

When a visitor sends a registration form but has not filled in <strong>the</strong><br />

obligatory fields completely or correctly, TWiki generates <strong>the</strong> corresponding<br />

error messages. The templates for <strong>the</strong>m are stored in <strong>the</strong><br />

twiki/templates folder. They begin with “oops” and have <strong>the</strong> extension.tmpl.<br />

Files in twiki/templates Error<br />

oopsregexist.tmpl User already exists.<br />

oopsregwiki.tmpl Name is not a Wiki name.<br />

oopsregpasswd.tmpl Password incorrectly confirmed.<br />

oopsregemail.tmpl Invalid email address.<br />

oopssendmailerr.tmpl Confirmation email was not sent.<br />

oopsregerr.tmpl O<strong>the</strong>r error.<br />

The confirmation messages are also sent via <strong>the</strong> “oops” templates.<br />

You can reformulate <strong>the</strong>se templates in a regular editor, for instance,<br />

if you need to translate <strong>the</strong> messages into ano<strong>the</strong>r language.<br />

Caution: Depending on <strong>the</strong> skin selected, <strong>the</strong> templates may have<br />

been overwritten by specific templates. For instance, in <strong>the</strong> Pattern<br />

skin, <strong>the</strong> file registernotify.pattern.tmpl is used.<br />

20.2 Conference Registration<br />

Translating error<br />

messages<br />

Tab. 20.1<br />

�<br />

�<br />

�<br />

315

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!