Revision history for NonWikiUserNames


Revision [19444]

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

No Differences

Revision [17835]

Edited on 2007-12-12 13:19:19 by JavaWoman [prevent function references looking as page links]
Additions:
It seems to be based upon the function ""IsWikiName()"" in /wikka.php, which is in turn referred to by
Deletions:
It seems to be based upon the function IsWikiName in /wikka.php, which is in turn referred to by


Revision [7254]

Edited on 2005-04-13 19:36:04 by MonstoBrukes [prevent function references looking as page links]
Additions:
function IsWikiName($text) { return preg_match("/^[A-Za-z0-9ÄÖÜäöü]*$/", $text); }%%
Deletions:
function IsWikiName($text) { return preg_match("/^[A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }%%


Revision [7253]

Edited on 2005-04-13 19:34:27 by MonstoBrukes [prevent function references looking as page links]
Additions:
~~&You're too fast for me! i wasn't even done putzin with it (= it still remains untested, (working other stuff in) but will update when completed.
Deletions:
~&You're too fast for me! i wasn't even done putzin with it (= it still remains untested, (working other stuff in) but will update when completed.


Revision [7252]

Edited on 2005-04-13 19:34:12 by MonstoBrukes [prevent function references looking as page links]

No Differences

Revision [7251]

Edited on 2005-04-13 19:33:40 by MonstoBrukes [prevent function references looking as page links]
Additions:
~&You're too fast for me! i wasn't even done putzin with it (= it still remains untested, (working other stuff in) but will update when completed.


Revision [7250]

Edited on 2005-04-13 19:21:53 by JavaWoman [RE fix plus adding php and starting line number]
Additions:
%%(php;666)function IsWikiName($text) { return preg_match("/^[A-Z,ÄÖÜ][a-z,ßäöü]+[A-Z,0-9,ÄÖÜ][A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }%%
%%(php;666)//MOD: nonwiki usernames : function IsWikiName($text) { return preg_match("/^[A-Z,ÄÖÜ][a-z,ßäöü]+[A-Z,0-9,ÄÖÜ][A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }
~&While we're at it - fix the regular expression: the commas don't belong in there! (Unless you want to allow a comma as part of a username, even at the start - probably not!) This is an old bug, actually, only partly fixed in version 1.1.6.0. So the new function should be: %%(php;667)function IsWikiName($text) { return preg_match("/^[A-Za-z0-9ÄÖÜßäöü]*$/", $text); }%% Of course the RE can be further refined (making a difference between starting character and following characters, since for instance ß can never occor at the start of a word - but you get the idea. --JavaWoman
::c::
Deletions:
%%function IsWikiName($text) { return preg_match("/^[A-Z,ÄÖÜ][a-z,ßäöü]+[A-Z,0-9,ÄÖÜ][A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }%%
%%//MOD: nonwiki usernames : function IsWikiName($text) { return preg_match("/^[A-Z,ÄÖÜ][a-z,ßäöü]+[A-Z,0-9,ÄÖÜ][A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }


Revision [7247]

Edited on 2005-04-13 18:57:55 by MonstoBrukes [RE fix plus adding php and starting line number]
Additions:
FIND //(unmodified: line 666)//
function IsWikiName($text) { return preg_match("/^[A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }%%
Deletions:
FIND (unmodified line 666)
function IsWikiName($text) { return preg_match("/^[A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }
%%


Revision [7246]

Edited on 2005-04-13 18:57:20 by MonstoBrukes [RE fix plus adding php and starting line number]
Additions:
FIND (unmodified line 666)
%%function IsWikiName($text) { return preg_match("/^[A-Z,ÄÖÜ][a-z,ßäöü]+[A-Z,0-9,ÄÖÜ][A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }%%
REPLACE WITH
%%//MOD: nonwiki usernames : function IsWikiName($text) { return preg_match("/^[A-Z,ÄÖÜ][a-z,ßäöü]+[A-Z,0-9,ÄÖÜ][A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }
function IsWikiName($text) { return preg_match("/^[A-Z,a-z,0-9,ÄÖÜ,ßäöü]*$/", $text); }
%%
Deletions:
FIND
%% %%


Revision [7243]

The oldest known version of this page was created on 2005-04-13 18:49:23 by MonstoBrukes [RE fix plus adding php and starting line number]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki