Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Notice: Undefined offset: 0 in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php on line 509

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/rss_1.class.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /mnt/110/sda/b/8/wiclear/inc/classes/WiclearWikiRenderer.conf.php:481) in /mnt/110/sda/b/8/wiclear/inc/classes/rss_1.class.php on line 33
steve ideas - Recent changes to steve ideas http://wiclear.free.fr/feed.php?feed_type=rss_1&full_content=1&title=steve%20ideas&lang=en steve ideas history steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=162 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. <br />Steve (11/07/06) : David, sorry for delay have been away at seminar/confernces. I tried tla at work with the windows version, but it gives me error &quot;arch_archive_connect: attempt to connect to incompatible archive&quot;. I will try again from home, I have linux and windows there so i can test what the problem is. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>New diff </h2> <p> Steve (11/07/06) : I noticed that you had a request one <a href="http://wiclear.free.fr/index.php?title=bugs&amp;lang=">bugs</a> page. I would like this improved so went off in search of any php functions/classes already written (As I have no idea what the best way to compare two documents is <img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />). I found a pear module called <a rel="nofollow" class ="offsite httplnk" href="http://pear.php.net/package/Text_Diff">Text_Diff </a> which is written by some of the people from <a href="http://wiclear.free.fr/index.php?title=http%3A%2F%2Fwww.horde.org&amp;lang=">http://www.horde.org</a>. I have grafted that module into wiclear and designed some better rendering templates. It works by first producing an array of the differences (via diff engine) and then uses a renederer class that can easily be etended and modified to present the diff in any format you want. </p> <p> I have set it up to other you three different layouts. The side by side is an enhancement of the current wiclear layout (much like wikipedia). The Inline layout shows one copy marking the inserts and deletions inline with the text. The other I am not sure about and is called Unified layout, this is similar to the way phpwiki do theirs. </p> <p> I have attached a file called diff.zip to this page so you can have a look. </p> <p> I don't think the diff engine is perfect yet but it works well in almost all the tests I through at it and is still in developement. I think it is good enough to use. The bits I have done will no doubt need testing, I have check everything, but something normally slips through! <img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" /> </p> <p> Hope this is usefull. </p> <blockquote><p> David (14/07/06) : yes the request was mine ! <img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" /> At the time I found no classes that could do the trick. I think there is some library function that does it directly in PHP5 but I still want Wiclear to works with PHP4/PHP5. I found some very good documentation and implementation techniques on Wikipedia but still I wanted something easy to understand so it can be fixed easily if possible. I'll have a try with your finding as soon as I can. Thanks very much. <br /> As for the tests, you can have a look to mine : in inc/classes/test/test_diff.php </p></blockquote> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-14T11:49:15+02:00 David Jobet steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=887 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. <br />Steve (11/07/06) : David, sorry for delay have been away at seminar/confernces. I tried tla at work with the windows version, but it gives me error &quot;arch_archive_connect: attempt to connect to incompatible archive&quot;. I will try again from home, I have linux and windows there so i can test what the problem is. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>New diff </h2> <p> Steve (11/07/06) : I noticed that you had a request one <a href="http://wiclear.free.fr/index.php?title=bugs&amp;lang=">bugs</a> page. I would like this improved so went off in search of any php functions/classes already written (As I have no idea what the best way to compare two documents is <img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />). I found a pear module called <a rel="nofollow" class ="offsite httplnk" href="http://pear.php.net/package/Text_Diff">Text_Diff </a> which is written by some of the people from <a href="http://wiclear.free.fr/index.php?title=http%3A%2F%2Fwww.horde.org&amp;lang=">http://www.horde.org</a>. I have grafted that module into wiclear and designed some better rendering templates. It works by first producing an array of the differences (via diff engine) and then uses a renederer class that can easily be etended and modified to present the diff in any format you want. </p> <p> I have set it up to other you three different layouts. The side by side is an enhancement of the current wiclear layout (much like wikipedia). The Inline layout shows one copy marking the inserts and deletions inline with the text. The other I am not sure about and is called Unified layout, this is similar to the way phpwiki do theirs. </p> <p> I have attached a file called diff.zip to this page so you can have a look. </p> <p> I don't think the diff engine is perfect yet but it works well in almost all the tests I through at it and is still in developement. I think it is good enough to use. The bits I have done will no doubt need testing, I have check everything, but something normally slips through! <img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" /> </p> <p> Hope this is usefull. </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-11T19:56:07+02:00 anonymous anonymous steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=877 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. <br />Steve (11/07/06) : David, sorry for delay have been away at seminar/confernces. I tried tla at work with the windows version, but it gives me error &quot;arch_archive_connect: attempt to connect to incompatible archive&quot;. I will try again from home, I have linux and windows there so i can test what the problem is. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>New diff </h2> <p> Steve (11/07/06) : I noticed that you had a request one <a href="http://wiclear.free.fr/index.php?title=bugs&amp;lang=">bugs</a> page. I would like this improved so went off in search of any php functions/classes already written (As I have no idea what the best way to compare two documents is ;-&gt;). I found a pear module called <a rel="nofollow" class ="offsite httplnk" href="http://pear.php.net/package/Text_Diff">Text_Diff </a> which is written by some of the people from <a href="http://wiclear.free.fr/index.php?title=http%3A%2F%2Fwww.horde.org&amp;lang=">http://www.horde.org</a>. I have grafted that module into wiclear and designed some better rendering templates. It works by first producing an array of the differences (via diff engine) and then uses a renederer class that can easily be etended and modified to present the diff in any format you want. </p> <p> I have set it up to other you three different layouts. The side by side is an enhancement of the current wiclear layout (much like wikipedia). The Inline layout shows one copy marking the inserts and deletions inline with the text. The other I am not sure about and is called Unified layout, this is similar to the way phpwiki do theirs. </p> <p> I have attached a file called diff.zip to this page so you can have a look. </p> <p> I don't think the diff engine is perfect yet but it works well in almost all the tests I through at it and is still in developement. I think it is good enough to use. The bits I have done will no doubt need testing, I have check everything, but something normally slips through! ;-&gt; </p> <p> Hope this is usefull. </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-11T19:55:15+02:00 anonymous anonymous steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=876 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. <br />Steve (11/07/06) : David, sorry for delay have been away at seminar/confernces. I tried tla at work with the windows version, but it gives me error &quot;arch_archive_connect: attempt to connect to incompatible archive&quot;. I will try again from home, I have linux and windows there so i can test what the problem is. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>New diff </h2> <p> Steve (11/07/06) : I noticed that you had a request one <a href="http://wiclear.free.fr/index.php?title=bugs&amp;lang=">bugs</a> page. I would like this improved so went off in search of any php functions/classes already written (As I have no idea what the best way to compare two documents is ;-&gt;). I found a pear module called <a href="http://wiclear.free.fr/index.php?title=Text_Diff&amp;lang=">http://pear.php.net/package/Text_Diff </a> which is written by some of the people from <a href="http://wiclear.free.fr/index.php?title=http%3A%2F%2Fwww.horde.org&amp;lang=">http://www.horde.org</a>. I have grafted that module into wiclear and designed some better rendering templates. It works by first producing an array of the differences (via diff engine) and then uses a renederer class that can easily be etended and modified to present the diff in any format you want. </p> <p> I have set it up to other you three different layouts. The side by side is an enhancement of the current wiclear layout (much like wikipedia). The Inline layout shows one copy marking the inserts and deletions inline with the text. The other I am not sure about and is called Unified layout, this is similar to the way phpwiki do theirs. </p> <p> I have attached a file called diff.zip to this page so you can have a look. </p> <p> I don't think the diff engine is perfect yet but it works well in almost all the tests I through at it and is still in developement. I think it is good enough to use. The bits I have done will no doubt need testing, I have check everything, but something normally slips through! ;-&gt; </p> <p> Hope this is usefull. </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-11T19:54:40+02:00 anonymous anonymous steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=875 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. <br />Steve (11/07/06) : David, sorry for delay have been away at seminar/confernces. I tried tla at work with the windows version, but it gives me error &quot;arch_archive_connect: attempt to connect to incompatible archive&quot;. I will try again from home, I have linux and windows there so i can test what the problem is. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-11T18:00:20+02:00 Steven Whitbread steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=874 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. <br />Steve (11/07/06) : David, sorry for delay have been away at seminar/confernces. I tla with the windows version, but it gives me error &quot;arch_archive_connect: attempt to connect to incompatible archive&quot;. I will try again from home, I have linux and windows there so i can test what the problem is. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-11T17:58:52+02:00 Steven Whitbread steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=873 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-09T14:13:52+02:00 David Jobet steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=867 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-09T14:13:40+02:00 David Jobet steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=866 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-09T14:13:29+02:00 David Jobet steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=865 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <blockquote><p> David(09/07/06) : done </p></blockquote> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-09T14:13:14+02:00 David Jobet steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=864 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> <blockquote><p> David(09/07/06) : done </p></blockquote> 2006-07-09T14:13:05+02:00 David Jobet steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=863 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <blockquote><p> David (03/07/06) : Steve, I finally managed to find some time and I have integrated all your latest dev. Do you know tla ? This is a content revision system that allows you to archive your source code at any stage. I've got a public archive available. Have a look to the <a href="http://wiclear.free.fr/index.php?title=TLA_HOWTO&amp;lang=">tla</a> page and have a try. </p></blockquote> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> 2006-07-05T01:29:36+02:00 David Jobet steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=846 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2> Confirmation of history delete</h2> <blockquote><p> steve (28/06/06) : Some could to get the user to confirm they want to delete node history. </p></blockquote> <p> <a href="http://wiclear.free.fr/index.php?title=Confirmation%20of%20history%20delete%20code&amp;lang=">Confirmation of history delete code</a> </p> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> 2006-06-28T17:25:14+02:00 Steven Whitbread steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=838 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.htmlspecialchars($string).'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> 2006-06-26T12:16:51+02:00 anonymous anonymous steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=832 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes (also added some white space around &lt;a&gt;&lt;/a&gt;, thinking of printing/screen reader) </p> <pre>$html .= ' &lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.$string.'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt; '; </pre> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> 2006-06-23T16:22:55+02:00 Steven Whitbread steve ideas http://wiclear.free.fr/index.php?title=steve%20ideas&mode=history_view&lang=en&id=821 <p> Please use what you like and discard what you don't. All the product of a lazy Friday. </p> <p> Maybe some of these would be better as plugins? </p> <h2>Icons and graphics, opensource</h2> <p> I have come across a few collections of icons that are under the creative commons or part of open source projects. I mention this because I have made use of some of them for the ideas listed below. </p> <ol> <li><a rel="nofollow" class ="offsite httplnk" href="http://feedicons.com/">Feed Icon</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project (part of linux freedesktop.org)</a> </li><li><a rel="nofollow" class ="offsite httplnk" href="http://www.famfamfam.com/lab/icons/">FamFamFam</a> - this is the one I use a work and other projects. </li></ol> <p> You may have seen these, but I though I would share as I know how hard it can be to find icons for software developement. </p> <h2>Adding title attribute to edit_section link </h2> <p> Thought this would be good for helping users and especially accesability. Display a tooltip/title that says &quot;Edit section - <em>heading/title</em>&quot; </p> <p> <a href="http://wiclear.free.fr/?WiclearWikiRenedere">WiclearWikiRenedere</a>.conf.php -&gt; class WRB_wc_title extends WRB_title </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; &gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <p> becomes </p> <pre>$html .= '&lt;a class=&quot;section_edit&quot; href=&quot;'.$url.'&quot; title=&quot;Edit section - '.$string.'&quot;&gt;'.tr(&quot;Edit&quot;).'&lt;/a&gt;'; </pre> <h2>Display icon when link is off site</h2> <p> This is the one my boss asked me about. On sites like wikipedia you get a little icon after a link if it goes off site or is secure, etc. This script should let you put different icons after a link depending on it's protocol. </p> <p> See code <a href="http://wiclear.free.fr/index.php?title=Display%20icon%20when%20link%20is%20off%20site&amp;lang=">Display icon when link is off site</a> </p> <p> This makes use of some icons from the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> site listed above, i resized them to 10x10 pixels. I can shend them to you if you want? </p> <h2>More emoticons</h2> <p> Again using the <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon sets, I've added more emoticon conversions to <a href="http://wiclear.free.fr/?WiclearWikiRenderer">WiclearWikiRenderer</a>.conf.php </p> <pre>function <a href="http://wiclear.free.fr/?WiclearWikiRendererConfig">WiclearWikiRendererConfig</a>() { //$this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('laugh.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; //sdw - render emoticons as images - uses famfam icons $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A-%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":-(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Funhappy.png%22%20alt%3D%22%3A%28%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/unhappy.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/unhappy.png" alt=":(" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Ftongue.png%22%20alt%3D%22%3A-P%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/tongue.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/tongue.png" alt=":-P" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-o%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-o" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsurprised.png%22%20alt%3D%22%3A-0%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/suprised.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/surprised.png" alt=":-0" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%3B-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=";-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fwink.png%22%20alt%3D%22%2C-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/wink.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/wink.png" alt=",-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fsmile.png%22%20alt%3D%22%3A-%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/smile.png" alt=":-)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fhappy.png%22%20alt%3D%22%3A%29%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/smile.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/happy.png" alt=":)" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fevilgrin.png%22%20alt%3D%22%3A-D%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/evilgrin.png" alt=":-D" />&quot; /&gt;'; $this-&gt;simpletags<a href="http://wiclear.free.fr/index.php?title=%27%3Cimg%20src%3D%22http%3A%2F%2Fwiclear.free.fr%2Fwc_icons%2Femoticons%2Fgrin.png%22%20alt%3D%22%3AD%22%20%2F%3E%27&amp;lang=">'&lt;img src=&quot;http://wiclear.free.fr/wc_ico(..)</a> = '&lt;img src=&quot;'.createIconURL('/emoticons/grin.png').'&quot; alt=&quot;<img src="http://wiclear.free.fr/wc_icons/emoticons/grin.png" alt=":D" />&quot; /&gt;'; </pre> <p> I can send you the icons for these as well or get them straight from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>. </p> <h2>Icon wiki markup</h2> <p> I had the idea after doing the above two things that it might be quite cool to be able to specify icons anywhere you wanted. I personal would find this very useful when connected to the 1000 icons from <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a>, it would allow quickly locating types of information based on icon. The <a href="http://wiclear.free.fr/?FamFamFam">FamFamFam</a> icon set has icons for almost everything from ticks and crosses to database symbols and bug symbols. </p> <p> i though simple markup like <img class="icon" src="http://wiclear.free.fr/wc_icons/icons/icon_name.png" alt="icon_name" title="icon_name" /> </p> <pre>$inlinetags = ... 'icons' =&gt;array('<img class="icon" src="http://wiclear.free.fr/wc_icons/icons/','.png" alt="','" title="','" />', array('name'),'wiclearwikibuildicon') .. </pre> <pre>/*Steve create icon based on name*/ function wiclearwikibuildicon($name = '') { global $wikiRenderer; if(!isset($name<a href="http://wiclear.free.fr/index.php?lang=">0</a>)) return ''; $icon = $name<a href="http://wiclear.free.fr/index.php?lang=">0</a>; if($icon != '' &amp;amp;&amp; $icon != null){ if ($wikiRenderer-&gt;config-&gt;showImage == true){ $html = ' &lt;img class=&quot;icon&quot; src=&quot;'.createIconUrl('icons/'.$icon.'.png').'&quot; alt=&quot;<a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a>&quot; title=&quot;'.$icon.'&quot; /&gt; '; return $html; }else{ return ' <a href="http://wiclear.free.fr/index.php?title=%27.%24icon.%27&amp;lang=">'.$icon.'</a> '; } }else{ return ''; } } </pre> 2006-06-23T16:18:59+02:00 Steven Whitbread