tags/ikiwikizack's home pagehttp://upsilon.cc/~zack/tags/ikiwiki/zack's home pageikiwiki2013-02-17T09:59:30Zenabling comments with stylehttp://upsilon.cc/~zack/blog/posts/2009/03/enabling_comments_with_style/2013-02-17T09:59:30Z2009-03-26T17:36:43Z
<h1>Enabling <code>ikiwiki</code> comment with a bit of CSS</h1>
<p>I've finally spent some time to understand why the amazing
<a href="http://ikiwiki.info/plugins/comments/">comments ikiwiki
plugin</a> was not working for me. Obviously the reason were page
templates which I had customized and hence were missing the needed
template variables that expand to comments links and content.</p>
<p>That made me wonder about keeping my
<code>~/.ikiwiki/templates</code> directory as a Git repository
(which actually already is, even though for different reasons)
which tracks Joey's <a href=
"http://git.ikiwiki.info/?p=ikiwiki;a=tree;f=templates;hb=HEAD">ikiwiki
repo</a> for better merging future changes to upstream templates.
Looks like a good idea, but I didn't have the time to testdrive it
yet.</p>
<p>Still, I've updated my <a href=
"http://git.upsilon.cc/?p=homepage.git;a=blob_plain;f=local.css;hb=HEAD">
ikiwiki CSS</a> (also available from ikiwiki's <a href=
"http://ikiwiki.info/css_market/">CSS market</a>) for fancier
rendering of comments and I'm quite happy about the result.</p>
<p>So, to the nice guy who once wrote the following in the
discussion page of an old blog post of mine: <q>p.s. this is the
dumbest comment method I've ever used</q> You were totally right!,
the issue is fixed now, big up to Simon McVittie for the
plugin.</p>
<p>/me now only dreams of an automatic conversions of old
discussion pages to comment series, knowing that it is impossible
in the general case due to the lack of structure <img src=
"http://upsilon.cc/~zack/smileys/sad.png" alt=":-(" /> ...</p>
adsense powered ikiwikihttp://upsilon.cc/~zack/blog/posts/2008/01/adsense_powered_ikiwiki/2009-11-28T12:00:16Z2008-01-28T16:57:29Z
<h1>AdSense patch for ikiwiki's embed pluging</h1>
<p>Today I've started playing with <a href=
"https://www.google.com/adsense/">AdSense</a>, mainly to check
whether a typical homepage+blog web site (read: mine) can survive
its hosting costs by the means of this kind of revenue or not.</p>
<p>However I don't want the ads to be visible on all pages, but
only in some of them, mainly the main blog page (which scores high
in search engine results and is also not prone to the risk of
bothering usual readers, thanks to---$DEITY bless them---RSS/Atom
feeds) and some selected pet software project homepages. With
<a href="http://ikiwiki.info">ikiwiki</a> implementing this
appeared trickier than I expected. The main difficulty is of course
the wiki-wide <a href=
"http://ikiwiki.info/plugins/htmlscrubber/">htmlscrubber</a> plugin
which I do not want to switch off because of discussion pages and a
part of my website which is actually used as a world-editable
wiki.</p>
<p>Googling around it seems that there is an
<code>adsense.pm</code> plugin for ikiwiki, but it is not
registered in the ikiwiki <a href=
"http://ikiwiki.info/plugins/">plugins page</a>; as such I was not
particularly envy to try it out. Besides, the right place to add
such a feature to me seems the <a href=
"http://ikiwiki.info/plugins/embed/">embed plugin</a>.</p>
<p>... so I've minimally patched it: see <a href=
"http://bugs.debian.org/462970">Debian bug #462970</a>. If you're
willing to use AdSense with ikiwiki please try out the patch: since
I'm an AdSense newbie it might well be I've underestimated the
possible <code>script</code> snippets it can generate. Post
comments to <a href="http://bugs.debian.org/462970">Debian bug
#462970</a>.</p>