La Vita è Bella
Friday, May 26, 2006
Added gravatar support here.
When commenting, you can leave your e-mail address to use your gravatar pix.
I used rakaz's gravatar plugin for Nucleus, but with my own hack
Warning: Your e-mail will be shown, you may not want this happen.I've modified the template so that your e-mail will be hidden. Cheers.
22:04:16 by fishy - General - Permanent Link
5 comments - no trackbacks yet - karma: 18 [+/-]
Wednesday, May 24, 2006
Upgrade NucleusCMS from 3.22 to 3.23
Wake up this morning, I've got a notification from the author of NucleusCMS that NucleusCMS 3.23 is out now. So I downloaded the upgrade files and upgrade.
In the upgrade files, there's only 1 language file: english.php, but I'm using english-utf8.php. After the upgrading I diff'd these 2 file, and found that in my english-utf8.php, there's no new line at EOF but english.php does have a new line. So I added it.
But then I can't visit my blog homepage, NucleusCMS says that header is already sent in english-utf8.php at line XXX, this is often because a newline at end of config.php bla bla. And the line it indicated in english-utf8.php is the newline I just added
I removed it, and it works now.
So, why does the english.php in the official package has a newline at EOF?
tags: blog, nucleus, upgrade
11:08:20 by fishy - General - Permanent Link
Monday, May 08, 2006
vim 7 is out, and a patch for 2html
Updated Again: with this patch, if you let use_xhtml=1, then you must let html_use_css=1, or otherwise the file generated is not a valid xml file. It won't generate a invalid file now.
Finally, vim 7 is released.
I've pointed out 3 bugs in vim's 2html feature, and they were "fixed" in 7.0 -- but not so perfectly.
So I've made a patch for "2html.vim" to resolve my problem.
Please note that, this patch only solved my problem. I haven't tested it on other environments(I mean, different value of "html_use_css", etc.), so use it at your own risk.
download the patch here or see it below:
1 --- orig/2html.vim 2006-05-08 21:37:46.000000000 +0800
2 +++ 2html.vim 2006-05-08 21:45:50.000000000 +0800
3 @@ -229,9 +229,7 @@
4 let s:HtmlEndline = ''
5 if exists("html_no_pre")
6 let s:HtmlEndline = '<br' . s:tag_close
7 - if exists("use_xhtml")
8 - let s:LeadingSpace = ' '
9 - else
10 + if !exists("use_xhtml") || exists("use_xhtml") && exists("html_use_css")
11 let s:LeadingSpace = ' '
12 endif
13 let s:HtmlSpace = '\' . s:LeadingSpace
Note: It only works perfect with the following settings:
let html_use_css = 1
let html_no_pre = 1
let use_xhtml = 1
tags: vim, 2html, patch
15:50:13 by fishy - opensource - Permanent Link




