Content added Content deleted
No edit summary |
imported>mutante m (Reverted edits by 200.238.102.162 (Talk); changed back to last version by mutante) |
||
Line 55: | Line 55: | ||
$Text{'newauthor'} = 1; # Default as new author |
$Text{'newauthor'} = 1; # Default as new author |
||
$Text{'summary'} = ''; |
$Text{'summary'} = ''; |
||
&OpenNewSection("text_$name", join($FS3, %Text)); |
|||
} |
|||
.. |
|||
</pre> |
|||
idea: mutante technical help: markus (both of s23) |
|||
[[Category:Wiki]] |
|||
[[Category:Internal]] |
Latest revision as of 08:47, 11 April 2007
In this wiki nobody has written about AutomatedLinks yet ,but we give you a few automatically created links:
Google:AutomatedLinks Dictionary:AutomatedLinks UseMod:AutomatedLinks MeatBall:AutomatedLinks C4:AutomatedLinks InfoAnarchy:AutomatedLinks C2:AutomatedLinks
...these should help if you are lucky.. try to make this page better,please.
<-what you see above you will see on every new wiki-URL which hasnt been created yet.
This is how you change UseMod wiki for this feature:
a) the simple way
from wiki.pl config (about row 96) ... $NewText = "In this Wiki nobody has written about $ENV{"QUERY_STRING"} yet. A few auto-created search links: Google:$ENV{"QUERY_STRING"} Dictionary:$ENV{"QUERY_STRING"} Just click 'Edit text of this page' below."; ...
b) more sophisticated
added to wiki.pl (about row 2359) .. sub OpenNewText { my ($name) = @_; # Name of text (usually "default") %Text = (); $NewText = "In this wiki nobody has written about $OpenPageName yet ,but we give you a few automatically created links: Google:$OpenPageName C2:$OpenPageName ... ...these should help if you are lucky.. try to make this page better,please. "; if ($NewText ne '') { $Text{'text'} = T($NewText); } else { $Text{'text'} = T('Describe the new page here.') . " "; } $Text{'text'} .= " " if (substr($Text{'text'}, -1, 1) ne " "); $Text{'minor'} = 0; # Default as major edit $Text{'newauthor'} = 1; # Default as new author $Text{'summary'} = ''; &OpenNewSection("text_$name", join($FS3, %Text)); } ..
idea: mutante technical help: markus (both of s23)