tinycm rev 91

Handle @username@ in document and wall to link to user profile
author Christophe Lincoln <pankso@slitaz.org>
date Fri Feb 17 00:46:34 2017 +0100 (2017-02-17)
parents a71109243276
children 7edde907440f
files content/wiki/en/help.txt index.cgi
line diff
     1.1 --- a/content/wiki/en/help.txt	Sun Feb 12 20:55:00 2017 +0100
     1.2 +++ b/content/wiki/en/help.txt	Fri Feb 17 00:46:34 2017 +0100
     1.3 @@ -38,7 +38,7 @@
     1.4  with an exclamation !
     1.5  </p>
     1.6  <pre>
     1.7 -[SliTaz!http://www.slitaz.org/]
     1.8 +[TinyCM!http://tinycm.slitaz.org/]
     1.9  </pre>
    1.10  
    1.11  <h3>Images</h3>
    1.12 @@ -50,3 +50,18 @@
    1.13  [http://site.com/path/image.png]
    1.14  [image.png]
    1.15  </pre>
    1.16 +
    1.17 +<h3>User link</h3>
    1.18 +<p>
    1.19 +You can refer to a user in any wiki document and some plugins such as wall:
    1.20 +</p>
    1.21 +<pre>
    1.22 +@username@
    1.23 +</pre>
    1.24 +
    1.25 +<h3>No wiki formating</h3>
    1.26 +<p>
    1.27 +You may want to use HTML code in your pages and avoid any wiki parsing 
    1.28 +function such as this help page. Just add the tag NOWIKI into [ ] at 
    1.29 +any place in the page.
    1.30 +</p>
     2.1 --- a/index.cgi	Sun Feb 12 20:55:00 2017 +0100
     2.2 +++ b/index.cgi	Fri Feb 17 00:46:34 2017 +0100
     2.3 @@ -283,7 +283,8 @@
     2.4  		-e s"#\[\([^]]*\)|\($doc\)\]#<a href='$script?d=\2'>\1</a>#"g \
     2.5  		-e s"#\[\([^]]*\)!\($doc\)\]#<a href='\2'>\1</a>#"g \
     2.6  		-e s"#\[\(http://*[^]]*.png\)\]#<img src='\1' />#"g \
     2.7 -		-e s"#\[\([^]]*.png\)\]#<img src='content/cloud/\1' />#"g
     2.8 +		-e s"#\[\([^]]*.png\)\]#<img src='content/cloud/\1' />#"g \
     2.9 +		-e s"#@\([^']*\)@#<a href='$script?user=\1'>\1</a>#"g
    2.10  }
    2.11  
    2.12  link_user() {