Apr
29

整理自:http://www.autoit.cn/forum/viewthread.php?tid=3013
1,安装akocommentbot并在Mabot里启用.
2,安装com_akocomment.
3,修改template_css.css文件.在文件最下面添加以下代码:

.review{border:1px solid #d5dce7;margin-top:8px;width:100%;}
.rcounter{border-right:1px solid #cccccc;width:45px;text-align:center;font-family:sans-serif;font-size:20px;font-weight:bold;color:#E4E4E4}
.rtitle{background-color:#d5dce7; padding:3px 4px 3px 8px}
.rtitle a:link, .rtitle a:visited, .rtitle a:hover {text-decoration:underline;font-size:12px;}
.rtext{padding:8px 4px 8px 8px}
.reviewHeading, .reviewHeading a:hover {padding:0;font-family:Helvetica ,Arial,sans-serif;font-size:15px;font-weight: bold;vertical-align: bottom;color: #000000;text-align: left;text-decoration:none;}
.mtframe {width:100%;text-align:left;margin:0}
文件下载:
200704/akocommentbot.zip
200704/com_akocomment.zip
另外,还有个比较好的module:ac_lastcomments
这是为Akocomment Tweaked Special Edition 文章评论组件1.4.6版本开发的“最新评论”模块1.0.2版本。

请注意:安装本模块之前,必须已经安装了Akocomment Tweaked Special Edition组件 1.4.6 以上版本。
200704/_mod_ac_lastcomments_1.0.2_chinese_utf-8.zip

今天发现中文语言包中有个小BUG,simplified_chinese.php这个文件中,14行:

DEFINE(”_AKOCOMMENT_WRITECOMMENT”,”<br>发表新评论”);

应该把那个

<br>

去掉,要不然在首页出现的:发表新评论(X评论)”会出现换行,很难看的.

Apr
23

1,Open-SEF我就不介绍了,大家可以去sourceforge站点看.
2,Open-SEF下载(目前最新版本是2.0.0-RC5_SP2)
200704/joomla_com_opensef_2.0.0-rc5_sp2.zip
原来的官方网站http://www.open_sef.org已经不能访问了,它曾经转移到这里,而现在它又转移到了这里你可以随时关注Open-SEF最新消息了.
3,安装就不多说了,installers-components-upload and install~
4,install success后你要enable Open-SEF和简单的配置一下,然后清空ALL cache(如果启用),再add a new content,回到首页,你会发现刚刚发表的文章的URL已经变成Search Engine Friendly了,就要我们想要的结果.
但是打开后返回的是一个404 PAGE NOT FOUND,说明配置还没结束.
接着,要把站点根目录下的htaccess.txt改成.htaccess,当然,我们启用Joomla内置的SEF后也要改的,但这里编辑一下.
一共有两个地方:

1. Standard SEF Section
2. 3rd Party or Core SEF Section
就是把Joomla core SEF section禁用,打开3rd Party or Core SEF Section.

########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named ‘content’ or ‘component’ on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]     ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End - Joomla! core SEF Section

########## Begin - 3rd Party SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]     ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - 3rd Party SEF Section
保存,上传,清空cache,刷新首页,OK,成功!
参考:Install OpenSEF
5,关于网上说的 Artio JoomSEF,我并没有感觉到它有多么好用强大,相反我倒觉得Open-SEF倒是方便强大的多.这也可能Open-SEF升级了的原因吧,反正我接触Joomla1个星期还不到..至于说SEF component对中文网站支持不好,我认为这不是SEF的问题,也不是Joomla的问题,而是中文URL的问题.反正我是看好Open-SEF的哦~!另外它们的团队还有个Project OpenWP,使用WP的朋友可以去看看.
UPDATE:
如果你出现这样的错误:

Fatal error: Call to a member function iso() on a non-object in /home/XXXXX/joomla/administrator/templates/joomla_admin/index.php on line 21
这个错误是由于UTF-8版本的Joomla!的语言问题引起的,解决方法只能是用原版的Joomla!了,如果你是中文站,那就用原版+前台中文包来解决吧。