Revision history for FreeLinks


Revision [18843]

Last edited on 2008-01-28 00:13:00 by LainFox [Modified links pointing to docs server]

No Differences

Revision [14073]

Edited on 2006-05-03 02:51:06 by LainFox [Modified links pointing to docs server]
Deletions:
(see also)
http://kisse.net/wiki/SandBox


Revision [14064]

Edited on 2006-05-02 14:54:03 by LainFox [Modified links pointing to docs server]
Additions:
===== Need Help =====
So so.. i can't use FreeLinks at WikiName with Korean or Japanese.
If fill in WikiName with Japanese, ???????? is output and can't create mySQL db field. // If fill in WikiName with Korean, i have to see just blank page.
(see also)
http://kisse.net/wiki/SandBox
Somebody any idea?


Revision [13373]

Edited on 2006-03-02 09:45:36 by HackArt [Modified links pointing to docs server]
Additions:
~& add this line somewhere in the wikka config array of wikka.config.php (adjust to your custom LOCALE of course):
Deletions:
~& add this line somewhere in the wikka config array of wikka.config.php (adjust to the correct LOCALE of course):


Revision [13372]

Edited on 2006-03-02 09:45:07 by HackArt [Modified links pointing to docs server]
Additions:
~& add this line somewhere in the wikka config array of wikka.config.php (adjust to the correct LOCALE of course):
Deletions:
~& add this line somewhere in the wikka config array of wikka.config.php:


Revision [13371]

Edited on 2006-03-02 09:43:19 by HackArt [Modified links pointing to docs server]
Additions:
~&This enable more generic support for language specific characters (like in French).
~& In a similar way, you also need to replace the line 3. in handler/page/edit.php by
~& Please note that for preg_match to work properly with \w style character classes, the correct LOCALE should be configured on your host. If not, you dynamically configure it:
Deletions:
~&This enable more generic support to language specific characters (like in French).
~& In a similar way, I would replace the line 3. in handler/page/edit.php by
~& Please "note" that for preg_match to work properly with \w style character classes, the correct LOCALE should be configured on your host. If not, you dynamically configure it:


Revision [13370]

Edited on 2006-03-02 09:41:06 by HackArt [Modified links pointing to docs server]
Additions:
~& A quick fix for the category problem: in wikka.php, replace :
~& %%(php;438)
function FullCategoryTextSearch($phrase) { return $this->LoadAll("select * from ".$this->config["table_prefix"]."pages where latest = 'Y' and match(body) against('".mysql_real_escape_string($phrase)."' IN BOOLEAN MODE)"); }
~& by :
~& %%(php;438)
function FullCategoryTextSearch($phrase) { return $this->LoadAll("select * from ".$this->config["table_prefix"]."pages where latest = 'Y' and match(body) against('\"".mysql_real_escape_string($phrase)."\"' IN BOOLEAN MODE)"); }
%%
~& For the backlink action, I did not see a problem but I may miss something?
~& -- HackArt
~& I suggest to replace the last line by this one:
~& %%(php;642)
elseif (preg_match("/[^\w ]/", $tag))
~&This enable more generic support to language specific characters (like in French).
~& In a similar way, I would replace the line 3. in handler/page/edit.php by
~& %%(php,3)
if (!(preg_match("/^[\w ]+$/s", $this->tag))) {
~& Please "note" that for preg_match to work properly with \w style character classes, the correct LOCALE should be configured on your host. If not, you dynamically configure it:
~&
~& add this line somewhere in the wikka config array of wikka.config.php:
~& %%(php;50)
"LOCALE" => "fr_FR"
~& and add this somewhere at the end of the wakka constructor in wikka.php
~& %%(php)
// set locale according to wikka config
if ($this->config["LOCALE"])
setlocale(LC_ALL,$this->config["LOCALE"]);
~& -- HackArt


Revision [6624]

Edited on 2005-03-08 22:47:16 by SteveB [Modified links pointing to docs server]
Additions:
edit:
THIS CODE IS NOT QUITE READY
just realised it breaks the category system a bit. and probly the backlink action
-----


Revision [6623]

Edited on 2005-03-08 22:25:53 by SteveB [Modified links pointing to docs server]
Deletions:
{{category}}


Revision [6622]

Edited on 2005-03-08 22:25:12 by SteveB [Modified links pointing to docs server]
Additions:
{{category}}
Deletions:
{{categories}}


Revision [6621]

Edited on 2005-03-08 22:24:06 by SteveB [Modified links pointing to docs server]
Additions:
{{categories}}


Revision [6618]

Edited on 2005-03-08 18:18:53 by SteveB [Modified links pointing to docs server]
Additions:
if (!(preg_match("/^[A-Za-zÄÖÜßäöü]+[A-Za-z 0-9+ÄÖÜßäöü]*$/s", $this->tag))) {
Deletions:
if (!(preg_match("/^[A-Za-zÄÖÜßäöü]+[A-Za-z 0-9\+ÄÖÜßäöü]*$/s", $this->tag))) {


Revision [6617]

Edited on 2005-03-08 18:11:40 by SteveB [Modified links pointing to docs server]
Deletions:
%%(php;632)
if (preg_match("/^([A-ZÄÖÜ][A-Za-zÄÖÜßäöü]+)[:](\S*)$/", $tag, $matches)) # before the : should be a WikiName; anything after can be (nearly) anything that's allowed in a URL
%%(php;632)
// Changed so a WikiName can have spaces in.
if (preg_match("/^([A-ZÄÖÜ][A-Z a-zÄÖÜßäöü]+)[:](\S*)$/", $tag, $matches)) # before the : should be a WikiName; anything after can be (nearly) anything that's allowed in a URL
then find:


Revision [6613]

Edited on 2005-03-08 18:02:05 by SteveB [Modified links pointing to docs server]
Additions:
This also changes the format for forced links. Because pages can now have spaces obviouly the old method of the seperator being a space wont work any more. So on [[JavaWoman JavaWoman's]] suggestion i changed it to a | (pipe). the new format after these changes for a forced link is ""[[name here|link text here]]"" or ""[[name here]]""
Deletions:
This also changes the format for forced links. Because pages can now have spaces obviouly the old method of the seperator being a space wont work any more. So on JavaWomans suggestion i changed it to a | (pipe). the new format after these changes for a forced link is ""[[name here|link text here]]"" or ""[[name here]]""


Revision [6612]

Edited on 2005-03-08 18:01:27 by SteveB [Modified links pointing to docs server]
Additions:
// Changed so a WikiName can have spaces in.
if (preg_match("/^([A-ZÄÖÜ][A-Z a-zÄÖÜßäöü]+)[:](\S*)$/", $tag, $matches)) # before the : should be a WikiName; anything after can be (nearly) anything that's allowed in a URL
// changed so that a space is a valid character for a wikiname
elseif (preg_match("/[^[:alnum:] ÄÖÜßäöü]/", $tag))
// changed so that the tag name is urlencoded. this converts the spaces to +'s to make the URL valid
// changed so the edit handler allows pages with spaces in the names to be created/edited
if (!(preg_match("/^[A-Za-zÄÖÜßäöü]+[A-Za-z 0-9\+ÄÖÜßäöü]*$/s", $this->tag))) {
// changed so that the seperator for forced links is a | (pipe) and not the first space.
Deletions:
if (preg_match("/^([A-ZÄÖÜ][A-Z\ a-zÄÖÜßäöü]+)[:](\S*)$/", $tag, $matches)) # before the : should be a WikiName; anything after can be (nearly) anything that's allowed in a URL
elseif (preg_match("/[^[:alnum:]\ ÄÖÜßäöü]/", $tag))
if (!(preg_match("/^[A-Za-zÄÖÜßäöü]+[A-Za-z\ 0-9\+ÄÖÜßäöü]*$/s", $this->tag))) {


Revision [6611]

Edited on 2005-03-08 17:51:15 by SteveB [Modified links pointing to docs server]
Additions:
return ($linkedPage ? "<a href=\"".$this->Href($method, urlencode($linkedPage['tag']))."\" title=\"$title\">".$text."</a>" : "<a class=\"missingpage\" href=\"".$this->Href("edit", urlencode($tag))."\" title=\"Create this page\">".$text."</a>");
Deletions:
return ($linkedPage ? "<a href=\"".$this->Href($method, urlencode($linkedPage['tag']))."\" title=\"$title\">".$text."</a>" : "<a class=\"missingpage\" href=\"".$this->Href("edit", $tag)."\" title=\"Create this page\">".$text."</a>");


Revision [6610]

The oldest known version of this page was created on 2005-03-08 17:49:07 by SteveB [Modified links pointing to docs server]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki