Penguin
Diff: WantedWikiFeatures
EditPageHistoryDiffInfoLikePages

Differences between version 35 and revision by previous author of WantedWikiFeatures.

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 35 Last edited on Saturday, June 5, 2004 4:24:39 am by ReiniUrban Revert
Older page: version 26 Last edited on Saturday, March 20, 2004 11:15:25 am by StuartYeates Revert
@@ -1,11 +1,14 @@
-Can someone tell me how to make a wiki page for /dev/random? I'd thought the page would be http://www.wlug.org.nz/%2Fdev%2Frandom, but the wiki doesn't like that. StuartYeates 
+Can someone tell me how to make a wiki page for [ /dev/random | dev/random ] ? I'd thought the page would be http://www.wlug.org.nz/%2Fdev%2Frandom, but the wiki doesn't like that. StuartYeates  
+;:''Just like that'' --PhpWiki:ReiniUrban  
  
+Your browser turns "/" insto "%2F", and apache (and/or php) will turn escapes such as "%2F" back into "/". I think due to the wiki's mod_rewrite rules, Apache is treating leading multiple consecutive "/" chars as a single one (since it is treated as a filesystem path, I think). If you do "///dev/random", it will link to "//dev/random", which will link to "/dev/random", etc -- JohnMcPherson  
 ---- 
 A mode suitable for including [GPG] keys and other ascii armored texts would be nice. StuartYeates 
  
-New markup and <verbatim> - however remember by nature a Wiki is editable and there is no concept of page ownership. -- CraigBox 
+New markup and < verbatim > - however remember by nature a Wiki is editable and there is no concept of page ownership. -- CraigBox 
  
+;: ''Latest PhpWiki releases support all that.'' --PhpWiki:ReiniUrban  
 ---- 
  
 Using referrer.log do a nightly/hourly import of all sane looking (ie: not google or wlug.org.nz) /backlinks/ into the backlinks page from the web. This will give an interesting insite into who/where are linking to us and will be an automagic way to add 'content' to pages, in a backwards kinda way. 
  
@@ -15,8 +18,10 @@
  
 If there is a way to make apache do this in real-time, this would also be great, then just have a nightly SQL statement removing a token from each bucket, then removing empty links. --JamesSpooner 
  
 Wiki is already a target of referer spam, people who put a 1x1 img or iframe that links to the wiki so that they show up heaps on our referers. No idea why they're doing it, but a lot of our referers are from porn sites, so I'm not keen on encouraging this behaviour. -- PerryLorier 
+  
+;:''Since 1.3.10 we allow size=w x h attributes for images. Should we disallow too small sizes, say below 8x8?'' --PhpWiki:ReiniUrban  
  
 This simply means they're performing a denial of service, rather than some form of advertising. To say that it's not an option before exploring the possibilities is a little premature, the page with the links can be flagged no-crawl such that we don't 'link' to porn sites and can be linked off the main backlinks page such that only interested parties will view the links, with suitable disclaimers etc. This _will_ add considerable value to the wiki. -- JamesSpooner 
  
 ---- 
@@ -32,8 +37,10 @@
 ---- 
  
 I've forever pined for a way to mark up fixed-width text like we mark up bold or italic text. Maybe a double equals sign? (Much the way double underscore is used for bold text.) This should be trivial to add, but would add a ''lot''. 
 %%% -- AristotlePagaltzis 
+  
+;:''fixed width is done with =text= in new markup'' --PhpWiki:ReiniUrban  
  
 I'm having a case of Warnock's Dilemma here it seems. :/ --AristotlePagaltzis 
  
 C'mon, Perry and crew. This isn't be very hard to enable but would allow much cleaner formatting of pages such as SysLinux and AccessingWindowsPartitions. :( --AristotlePagaltzis 
@@ -61,4 +68,28 @@
 %%% -- StuartYeates 
  
 How would we suck them in? How would we merge these changes with local changes? 
 %%% -- PerryLorier 
+----  
+  
+Maybe you want to use real fortune on php, instead of the simple taglines: http://www.aasted.org/quote/  
+  
+I use it like this:  
+  
+ define('FORTUNE_DIR',"/usr/share/fortune");  
+  
+ if (empty($data[['%content'])) {  
+ include_once('lib/InlineParser.php');  
+ // A feature similar to taglines at from http://www.wlug.org.nz/  
+ // http://www.aasted.org/quote/  
+ if (defined('FORTUNE_DIR') and is_dir(FORTUNE_DIR)) {  
+ include_once("lib/fortune.php");  
+ $fortune = new Fortune();  
+ $quote = str_replace("\n<br>","\n", $fortune->quoteFromDir(FORTUNE_DIR));  
+ return sprintf("<verbatim>\n%s</verbatim>\n\n"._("Describe %s here."),  
+ $quote, "[[" . WikiEscape($this->_pagename) . "]");  
+ }  
+ // Replace empty content with default value.  
+ return sprintf(_("Describe %s here."),  
+ "[[" . WikiEscape($this->_pagename) . "]");  
+ }  
+ --ReiniUrban