<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>清风无影 &#187; CMS</title>
	<atom:link href="http://imvoo.com/category/cmsapp/feed" rel="self" type="application/rss+xml" />
	<link>http://imvoo.com</link>
	<description>移动网络化生活，关注智能手机、网络、cms</description>
	<lastBuildDate>Sat, 25 Feb 2012 16:16:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>拼音别名插件 PinyinAlias 0.9 for Joomla1.7</title>
		<link>http://imvoo.com/archives/587.html</link>
		<comments>http://imvoo.com/archives/587.html#comments</comments>
		<pubDate>Wed, 03 Aug 2011 16:28:45 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[拼音别名]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=587</guid>
		<description><![CDATA[距上次发布拼音插件，已经过去了很长时间，上次的是在1.6RC版的时候发布的。这次带了了很多更新。更换了拼音类，采用了This is Lukin zone写的拼音类。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>距上次发布拼音插件，已经过去了很长时间，上次的是在1.6RC版的时候发布的。这次带了了很多更新。更换了拼音类，采用了&lt;a href=http://lukin.cn/blog/Developer/13.html target=_blank&gt;This is Lukin zone&lt;/a&gt;写的拼音类。</p>
<p><span id="more-587"></span></p>
<h2>插件简介：</h2>
<p>将Joomla文章别名转移成拼音别名，并用-符号隔开，兼容标题中出现的英文单词。</p>
<p>如：Joomla文章别名===&gt;joomla-wen-zhang-bie-ming</p>
<p>插件生效需将Global Configuration-&gt;Unicode Aliases设置为No。</p>
<p>插件选项：标题长度，默认为20，即需要截取标题的长度用于转移成拼音。设置为0则全部转换成拼音。</p>
<p>多音字：多音字默认只转换到第一个音，如果你想几个音都转换的话，选择全部。</p>
<p><del>因为用到<a href="http://php.net/manual/en/function.mb-convert-encoding.php" target="_blank">mb_convert_encoding()</a>函数进行编码转移，所以</del>需要服务器php支持MBString库，是否支持，可在phpinfo查看。</p>
<p>已知问题：</p>
<p><del>无论是utf-8编码的繁体字还是big5都是不支持的，utf-8编码的繁体字会有错误，big5编码的会出现空白。</del></p>
<p>新版已经支持utf-8的繁体字转拼音，再次感谢拼音类作者。</p>
<h2>版权协议：</h2>
<p>此插件基于GPL的许可协议的自由软件。</p>
<h2>下载：</h2>
<p><a href="http://dl.dbank.com/c0bfh8rykx" target="_blank">Dbank下载</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/540.html" title="Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin">Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</a></li><li><a href="http://imvoo.com/archives/550.html" title="Phoca GuestbookV2.0.1留言本插件 中文版 ">Phoca GuestbookV2.0.1留言本插件 中文版 </a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/587.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Joomla精选文章布局缓存出错的临时解决</title>
		<link>http://imvoo.com/archives/584.html</link>
		<comments>http://imvoo.com/archives/584.html#comments</comments>
		<pubDate>Wed, 03 Aug 2011 03:44:39 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[缓存]]></category>
		<category><![CDATA[解决]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=584</guid>
		<description><![CDATA[在上一篇说了一Joomla1.7.0的精选文章布局终于可以选择分类了，如果不开缓存的话，是没有问题的，开了缓存的话，多个精选文章的页面就会显示某个首先缓存的页面。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>在上一篇说了一<a href="http://imvoo.com/archives/574.html">Joomla1.7.0的精选文章布局终于可以选择分类</a>了，如果不开缓存的话，是没有问题的，开了缓存的话，多个精选文章的页面就会显示某个首先缓存的页面。</p>
<p>这是由于Joomla的缓存是由参数id和view来命名的（md5），而参数ID是文章分类的ID，精选布局恰恰是那几个文章布局中不需要ID的唯一布局。该问题已经报告给官方，并得到了确认。在官方补丁出来之前，先来一个小补丸吧。</p>
<p><span id="more-584"></span>当然，如果你的Joomla没有使用多个精选文章布局页面，请不要使用下面的代码，因为我不知道这个代码会不会引起什么问题。</p>
<p>目标文件：/libraries/joomla/environment/request.php 第439行函数改为下面的，其时就是加了一个判断，如果视图为精选，且不存在id，则把id设置为itemid（菜单id）的负值（这是为了不和其它的冲突）。</p>
<p>更严谨的还要判断option=com_content。</p>
<pre class="brush: php; title: 代码; notranslate">

public static function set($array, $hash = 'default', $overwrite = true)
{
foreach ($array as $key =&gt; $value) {
self::setVar($key, $value, $hash, $overwrite);
}
if ( array_key_exists( 'view' , $array ) &amp;&amp; !array_key_exists( 'id' , $array ) &amp;&amp; $array['view']=='featured' ) {
self::setVar('id', '-'.$array['Itemid'] , $hash, $overwrite);
}
}
</pre>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/584.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla论坛组件Kunena1.6.5中文语言包</title>
		<link>http://imvoo.com/archives/576.html</link>
		<comments>http://imvoo.com/archives/576.html#comments</comments>
		<pubDate>Tue, 02 Aug 2011 12:02:15 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[kunena]]></category>
		<category><![CDATA[中文语言包]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=576</guid>
		<description><![CDATA[Kunena是Joomla的标准论坛组件，不同于phpbb这种论坛需要桥接器，Kunena是原生的。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Kunena是Joomla的标准论坛组件，不同于phpbb这种论坛需要桥接器，Kunena是原生的。Kunena 这个词来源于非洲的斯瓦希利语（Swahili），意思是“陈述、讲话”。<br />
Kunena1.6.5需要Joomla1.5.23、Joomla1.6.6和Joomla1.7.0，对于1.6.6用户，建立还是升级到1.7.0。安装之前要备份和测试。</p>
<p><span id="more-576"></span>目前，官方版本里暂时没有中文语言包，所以：<br />
１）如果你还没有安装，那么可以打开Kunena的文件，把两个语言包放在archive文件夹里；<br />
２）已经安装的，把两个文件夹里的.ini文件分别解压到前台、后台语言文件夹里。</p>
<h3>翻译项目主页</h3>
<p>这个语言包是花了三天的时间翻译的，并同时参考网上的一些翻译，并在本地安装了Discuz参考一些术语，力求达到与国内论坛的统一。主要的词汇有主题、论坛、版块、分区、用户、会员、帖子、主题帖、置顶、锁定等。<br />
该中文语言包的翻译项目主页：https://www.transifex.net/projects/p/Kunena/team/zh_CN/<br />
这是由Kunena官方团队建立的翻译项目，其中的中文翻译小组。<br />
下面的下载只是Kunena组件的翻译，不包含插件、模块等其它一些Kunena官方出的扩展的语言包，但是上面那个翻译项目里已经包含了，可以下载后上传到相应的语言文件夹里，注意，这里需要改名，下载下来的名字并不是语言文件的名字，参考英文语言文件来改名。</p>
<h3>长远打算</h3>
<p>长期更新该语言包，争取每次Kunena升级的时候，都能跟上步伐，可以集成在官方安装包里。一些翻译错误或者有更很的翻译，可以在这里提出。或者您也可以申请加入Kunena的中文翻译小组。</p>
<h3>下载地址：</h3>
<p>下面这是打包的语言包，在后台像安装扩展那样直接安装就可以了。</p>
<p><a title="Skydrive下载点" href="https://skydrive.live.com/redir.aspx?cid=5684a3b118e4d35a&amp;resid=5684A3B118E4D35A%21270" target="_blank">Skydrive</a>  <a href="http://dl.dbank.com/c01aipk55f" target="_blank">Dank下载</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/576.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Joomla!1.7.0的精选文章布局终于加上了分类选择</title>
		<link>http://imvoo.com/archives/574.html</link>
		<comments>http://imvoo.com/archives/574.html#comments</comments>
		<pubDate>Mon, 25 Jul 2011 08:14:02 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=574</guid>
		<description><![CDATA[Joomla!1.7.0的精选文章布局终于加上了分类选择]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>在1.6的时候，精选文章布局的描述里写着“选择要显示的分类的精选文章”，而在设置里一直没有该选项，而现在1.7.0终于把这个选项加上了。</p>
<p>这对于想建立中国式布局的网站很有利。当时我在官网提交这个Bug的时候，一直没有修正。现在1.7.0终于修正了这个Bug，我在模板上写的一些控制语句，也可以去掉了。</p>
<p>当时，折中的方案是在模板里判断是某个菜单，然后不显示精选文章，直接显示模块。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/574.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla!1.6.5升级到1.7.0</title>
		<link>http://imvoo.com/archives/567.html</link>
		<comments>http://imvoo.com/archives/567.html#comments</comments>
		<pubDate>Mon, 25 Jul 2011 06:00:02 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=567</guid>
		<description><![CDATA[Joomla!1.6.5如期发布，我的一个网站也从1.6.5升级到了1.7.0，过程很顺利。1.6系列的网站必须升级到1.6.5才能升级1.7.0。就国内服务器的速度来说，最好还是下载升级包进行升级。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Joomla!1.7.0如期发布，我的一个网站也从1.6.5升级到了1.7.0，过程很顺利。1.6系列的网站必须升级到1.6.5才能升级1.7.0。就国内服务器的速度来说，最好还是下载升级包进行升级。<br />
<span id="more-567"></span><br />
在做升级之前一定要备份。</p>
<h3>1、在线升级1.7.0</h3>
<p>如果你的服务器在国外，那么用在线升级很方便，点击扩展-扩展管理-更新-查找更新，选中找到的升级包，然后点更新，即可。</p>
<p>如果服务器在国内的话，这种在线升级的方法还是别用了，会连接超时的，Joomla的服务器的下载速度不敢恭维，我的一个Wordpress网站（国内）在线升级都经常失败，而Wordpress的包才2M多，Joomla的包在7M，可想而知。</p>
<h3>2、用扩展管理上传更新</h3>
<p>下载<a href="http://joomlacode.org/gf/project/joomla/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5986" target="_blank">1.6.5到1.7.0的升级包</a></p>
<p>（1）如果你的本地电脑上服务器的连接速度还不错的话，上传7M不会超时的话，可以直接在后台上传安装。</p>
<p>（2）如果上传速度不行，要么ftp上传到tmp目录，用从文件夹安装，要么就上传某一个服务器（或者就那台服务器）用通过网址远程安装。</p>
<h3>3、手动升级</h3>
<p>不建议采用，手动升级有些麻烦。还是下载那个升级包（或者完全包，但是要删除installtion文件夹），然后解压之后，再解压里面的Joomla_1.7.0-Stable-Update_Package.zip（升级包里）文件，把里面的文件全部上传，覆盖。</p>
<pre class="brush: php; title: 代码; notranslate">
/templates/atomic/css/blueprint/src/blueprintcss-0-9-1-cheatsheet-3-5-3-gjms.pdf
/administrator/manifests/packages/joomla.xml
/administrator/templates/bluestork/css/rounded.css
/administrator/templates/bluestork/css/norounded.css
/administrator/templates/bluestork/images/j_corner_bl.png
/administrator/templates/bluestork/images/j_header_right_rtl.png
/administrator/templates/bluestork/images/j_crn_br_dark.png
/administrator/templates/bluestork/images/j_crn_br_black.png
/administrator/templates/bluestork/images/j_crn_tr_black.png
/administrator/templates/bluestork/images/j_crn_bl_dark.png
/administrator/templates/bluestork/images/j_crn_tr_med.png
/administrator/templates/bluestork/images/j_crn_bl_light.png
/administrator/templates/bluestork/images/j_header_right.png
/administrator/templates/bluestork/images/j_crn_br_light.png
/administrator/templates/bluestork/images/j_crn_tl_black.png
/administrator/templates/bluestork/images/j_crn_bl_black.png
/administrator/templates/bluestork/images/j_crn_tr_dark.png
/administrator/templates/bluestork/images/j_crn_bl_med.png
/administrator/templates/bluestork/images/j_header_left.png
/administrator/templates/bluestork/images/j_crn_tl_med.png
/administrator/templates/bluestork/images/j_crn_tl_dark.png
/administrator/templates/bluestork/images/j_crn_br_med.png
/administrator/templates/bluestork/images/j_crn_tl_light.png
/administrator/templates/bluestork/images/j_crn_tr_light.png
/administrator/templates/bluestork/images/j_corner_br.png
/administrator/templates/bluestork/images/j_header_left_rtl.png
/administrator/templates/hathor/html/com_modules/module/modal.php
/administrator/templates/hathor/html/com_modules/module/edit_assignment.php
/administrator/templates/hathor/html/com_menus/item/edit_modules.php
/administrator/templates/hathor/html/com_menus/items/default_batch.php
/administrator/templates/hathor/html/com_languages/language/edit.php
/administrator/templates/hathor/html/com_content/article/edit_metadata.php
/administrator/templates/hathor/html/com_categories/category/edit_metadata.php
/administrator/templates/hathor/html/com_categories/categories/default_batch.php
/administrator/components/com_menus/models/forms/item_options.xml
/administrator/language/overrides/xx-XX.override.ini
/administrator/help/helpsites-16.xml
/administrator/help/en-GB/Components_Content_Categories_Edit.html
/administrator/help/en-GB/Components_Weblinks_Categories_Edit.html
/administrator/help/en-GB/Components_Newsfeeds_Categories_Edit.html
/administrator/help/en-GB/Components_Banners_Categories_Edit.html
/administrator/help/en-GB/Components_Contact_Categories_Edit.html
/media/editors/codemirror/css/docs.css
/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.js
/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php
/media/editors/tinymce/jscripts/tiny_mce/plugins/media/css/content.css
/media/mod_languages/images/ta.gif
/libraries/joomla/config.php
/libraries/joomla/import.php
/libraries/joomla/version.php
</pre>
<p>和这些目录</p>
<pre class="brush: php; title: 代码; notranslate">
/plugins/authentication/example
/plugins/user/example
/plugins/content/example
/plugins/extension/example
/administrator/templates/hathor/html/com_modules/select
/administrator/templates/hathor/html/com_media
/administrator/templates/hathor/html/mod_popular
/administrator/templates/hathor/html/mod_status
/administrator/templates/hathor/html/mod_latest
/administrator/components/com_weblinks/helpers/html
/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/css
/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/img
/media/editors/tinymce/jscripts/tiny_mce/plugins/example
</pre>
<p>不想删的话，也可以，就是多一些垃圾，不过在以后升级的时候，也许垃圾文件是越来越多，还是建议删掉吧。 做完这些之后，要升级数据库了，如果下载的是完全包，那么在phpmyadmin里执行installation/sql/mysql/joomla_update_17ga.sql，要是升级包的话，在phpmyadmin里执行/administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06.sql 和administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06-2.sql两个文件。 其实这两个文件的内容为以下，把#_替换成你的前缀，如jos 1、languages表增加ordering字段，用于排序，并设置索引</p>
<pre class="brush: php; title: 代码; notranslate"> ALTER TABLE `#__languages` ADD COLUMN `ordering` int(11) NOT NULL DEFAULT 0 AFTER `published`; ALTER TABLE `#__languages` ADD INDEX `idx_ordering` (`ordering`); </pre>
<p>2、增加表associations表</p>
<pre class="brush: php; title: 代码; notranslate"> CREATE TABLE IF NOT EXISTS `#__associations` ( `id` VARCHAR(50) NOT NULL COMMENT 'A reference to the associated item.', `context` VARCHAR(50) NOT NULL COMMENT 'The context of the associated item.', `key` CHAR(32) NOT NULL COMMENT 'The key for the association computed from an md5 on associated ids.', PRIMARY KEY `idx_context_id` (`context`, `id`), INDEX `idx_key` (`key`) ) DEFAULT CHARSET=utf8; </pre>
<p>至此，你的网站就运行在1.7.0下了。也许，这个时候你的浏览器里出现的后台界面会有一些不工整，你需要清除浏览器的缓存，然后刷新即可。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/562.html" title="joomla1.6.4发布，来迎接1.7吧">joomla1.6.4发布，来迎接1.7吧</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/567.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla1.6.1发布</title>
		<link>http://imvoo.com/archives/559.html</link>
		<comments>http://imvoo.com/archives/559.html#comments</comments>
		<pubDate>Tue, 08 Mar 2011 06:34:50 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=559</guid>
		<description><![CDATA[Joomla1.6.1发布了，主要是一些安全更新。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Joomla1.6.1发布了，主要是一些安全更新。</p>
<p>1、可以在线更新，经过实验成功升级（注：服务器在国外，国内的服务器还没有条件试）；</p>
<p>2、在线下载，覆盖更新。</p>
<p>注意升级之前，备份网站，备份数据库，以备不时之需。如果升级失败，还可以返回。当然，这是任何程序升级之前的必备步骤。</p>
<p>中文语言包：<a href="http://joomlacode.org/gf/project/choice/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5301"></a><a href="http://joomlacode.org/gf/project/choice/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5301">http://joomlacode.org/gf/project/choice/frs/?action=FrsReleaseBrowse&amp;frs_package_id=5301</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/559.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>摘要输出带缩略图的Joomla Blog布局</title>
		<link>http://imvoo.com/archives/552.html</link>
		<comments>http://imvoo.com/archives/552.html#comments</comments>
		<pubDate>Tue, 25 Jan 2011 03:03:48 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[布局]]></category>
		<category><![CDATA[缩略库]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=552</guid>
		<description><![CDATA[国内的CMS很多都带有摘要输出的文章列表布局，在Joomla中与此相近的有Blog布局。下面，就利用该Blog布局改造成近似摘要输出（并带缩略图）的布局。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>国内的CMS很多都带有摘要输出的文章列表布局，在Joomla中与此相近的有Blog布局。下面，就利用该Blog布局改造成近似摘要输出（并带缩略图）的布局。<span id="more-552"></span></p>
<p>直接上代码：</p>
<p>编辑模板html/com_content/category/blog.php和blog_item.php。</p>
<p>提取出第一张图，如果为空则不显示图片，如果不为空，则显示图片。这里并不是缩略图，如果想用缩略库的话，可以使用生成缩略库的函数类库。</p>
<pre class="brush: php; title: 代码; notranslate">
			&lt;?php
				$regex = &quot;/\&lt;img.+src\s*=\s*\&quot;([^\&quot;]*)\&quot;[^\&gt;]*\&gt;/&quot;;
				preg_match ($regex, $this-&gt;item-&gt;introtext, $matches);
				$images = (count($matches)) ? $matches : array();
				if (count($images)){
				$mainImage = $images[1];
				$thumbnail = $images[1];
			} else {
				$thumbnail = '';
				$mainImage = '';
			}
			//if ($mainImage=='') $mainImage='/images/defaultpic.gif';
			if ($mainImage) {
			?&gt;
			&lt;a title=&quot;&lt;?php echo $this-&gt;escape($this-&gt;item-&gt;title); ?&gt;&quot; href=&quot;&lt;?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this-&gt;item-&gt;slug, $this-&gt;item-&gt;catid)); ?&gt;&quot;&gt;
			&lt;img src=&quot;&lt;?php echo $mainImage; ?&gt;&quot; alt=&quot;&lt;?php echo $this-&gt;escape($this-&gt;item-&gt;title); ?&gt;&quot; class=&quot;thumbnail alignright&quot;&gt;
			&lt;/a&gt;
			&lt;?php } ?&gt;
				&lt;?php echo '&lt;p&gt;'.$this-&gt;item-&gt;metadesc.'...&lt;/p&gt;'; ?&gt;
</pre>
<p>$this-&gt;item-&gt;metadesc是用于 meta 描述来输出摘要。</p>
<p>如果不想手动填写meta 描述（其实还是填的好，利用SEO），可以在模板里用下面的代码代替。注意：Joomla用的是utf-8，截断utf-8的字符需要mbstring库中的mb_substr函数。</p>
<pre class="brush: php; title: 代码; notranslate">
echo '&lt;p&gt;'.mb_substr(strip_tags($this-&gt;item-&gt;introtext),0,100,'UTF-8').'...&lt;/p&gt;';
</pre>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/552.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Phoca GuestbookV2.0.1留言本插件 中文版</title>
		<link>http://imvoo.com/archives/550.html</link>
		<comments>http://imvoo.com/archives/550.html#comments</comments>
		<pubDate>Fri, 07 Jan 2011 03:24:20 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[phoca guestbook]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[留言本]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=550</guid>
		<description><![CDATA[Phoca Guestbook留言本是Joomla平台的留言本组件，现在Joomla1.6正式版即将发布，该留言本也放出了beta版本，目前是beta3。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Phoca Guestbook留言本是Joomla平台的留言本组件，当前版本2.0.1。</p>
<p><span id="more-550"></span></p>
<p>该留言本的特点：</p>
<ol>
<li>可创建多个留言本；</li>
<li>可选择是否只允许注册会员留言，还是任何人均可留言；</li>
<li>可选择是否要求提供 email 和 网站；</li>
<li>可选择是否启用验证码（有图片验证码、算术验证码等形式可选）；</li>
<li>可选是否只针对游客启用验证码；</li>
<li>可选是否检查用户身份，即：游客留言时不允许使用已被注册会员使用的用户名和 email；</li>
<li>可指定禁用的敏感词；</li>
<li>可指定屏蔽的 IP 地址；</li>
<li>可选是否允许在留言内容中显示超链接（URL Links），以及每条留言中允许显示的链接数量；</li>
<li>可给游客预定义名称，例如”游客“；</li>
<li>没有回复留言功能</li>
</ol>
<p>2011年1月18日更新，修正哪些翻译。</p>
<p>2011年8月3日，更新2.0.1</p>
<p>中文版下载：<a href="http://dl.dbank.com/c0azil6zst">http://dl.dbank.com/c0azil6zst</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/540.html" title="Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin">Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/550.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Joomla判断是否首页</title>
		<link>http://imvoo.com/archives/543.html</link>
		<comments>http://imvoo.com/archives/543.html#comments</comments>
		<pubDate>Wed, 29 Dec 2010 01:56:07 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[首页]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=543</guid>
		<description><![CDATA[Joomla默认的布局都不是很适合国内的CMS布局，用Joomla设计一个符合国人习惯的首页，首先要要判断是否是首页，才能在index.php里定制首页代码。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Joomla默认的布局都不是很适合国内的CMS布局，用Joomla设计一个符合国人习惯的首页，首先要要判断是否是首页，才能在index.php里定制首页代码。</p>
<p><span id="more-543"></span>下面是在网上搜集的一些判断是否是首页的代码：</p>
<p>下面这段只能在1.5版本应用，1.6版已经取消了frontpage</p>
<pre class="brush: php; title: 代码; notranslate">
&lt;?php
if($option != &quot;&quot; &amp;&amp; $option != &quot;com_frontpage&quot;){
}
?&gt;
</pre>
<p>下面这段可以应用在1.5+</p>
<pre class="brush: php; title: 代码; notranslate">
&lt;?php
$menu = &amp; JSite::getMenu();
if ($menu-&gt;getActive() == $menu-&gt;getDefault()) {
        echo 'This is the home page';
}
?&gt;
</pre>
<p>还有一个</p>
<pre class="brush: php; title: 代码; notranslate">
function isHome()
{
   if (JURI::current() == JURI::base()) return true;
   return false;
}
</pre>
<p>以上引用自：http://forum.joomla.org/viewtopic.php?f=304&amp;t=428965</p>
<p>我在最近的一个Joomla站里，用的是个人方法，因为我的一个幻灯片只在首页出现，那么，我只判断是否有该幻灯片，即知是不是在首页。</p>
<pre class="brush: php; title: 代码; notranslate">
$isFrontPage	= $this-&gt;countModules('index-newsflash');
</pre>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li><li><a href="http://imvoo.com/archives/567.html" title="Joomla!1.6.5升级到1.7.0">Joomla!1.6.5升级到1.7.0</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/543.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</title>
		<link>http://imvoo.com/archives/540.html</link>
		<comments>http://imvoo.com/archives/540.html#comments</comments>
		<pubDate>Thu, 23 Dec 2010 02:08:17 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[拼音别名]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=540</guid>
		<description><![CDATA[现在正在基于1.6版Joomla做一个站，中文站能够用到拼音别名。现在网上的拼音别名插件还是基于1.5版的。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p><a href="http://imvoo.com/archives/587.html">本文已经有更新版本。</a>Joomla1.6现在已经到RC1了，不出意外的话，2011年1月10日就会出正式版，现在正在基于1.6版Joomla做一个站，中文站能够用到拼音别名。现在网上的拼音别名插件还是基于1.5版的。 <span id="more-540"></span> 本插件基于<a href="http://www.tzpsky.com/zui-xin-xiu-zheng-ban-wordpress-zhong-wen-biao-ti-zhuan-huan-pin-yin-cha-jian/" target="_blank">最新修正版WordPress中文标题转换拼音插件</a>所写的Wordpress拼音别名类。</p>
<h2>插件简介：</h2>
<p>将Joomla1.6文章别名转移成拼音别名，并用-符号隔开，兼容标题中出现的英文单词。 如：Joomla文章别名===&gt;joomla-wen-zhang-bie-ming 插件生效需将Global Configuration-&gt;Unicode Aliases设置为No。 插件选项：标题长度，默认为20，即需要截取标题的长度用于转移成拼音。设置为0则全部转换成拼音。 因为用到<a href="http://php.net/manual/en/function.mb-convert-encoding.php" target="_blank">mb_convert_encoding()</a>函数进行编码转移，所以需要服务器php支持MBString库，是否支持，可在phpinfo查看。 已知问题： 无论是utf-8编码的繁体字还是big5都是不支持的，utf-8编码的繁体字会有错误，big5编码的会出现空白。</p>
<h2>版权协议：</h2>
<p>此插件基于GPL的许可协议的自由软件。插件的使用者可以： 以任何目的运行此程序的自由； 以学习程序工作机理为目的，对程序进行修改的自由； 再发行复制件的自由； 改进此程序，并公开发布改进的自由。</p>
<h2>下载：</h2>
<p><a href="http://imvoo.com/wp-content/uploads/2010/12/pinyinalias.zip">Pinyinalias for Joomla1.6</a></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/550.html" title="Phoca GuestbookV2.0.1留言本插件 中文版 ">Phoca GuestbookV2.0.1留言本插件 中文版 </a></li><li><a href="http://imvoo.com/archives/584.html" title="Joomla精选文章布局缓存出错的临时解决">Joomla精选文章布局缓存出错的临时解决</a></li><li><a href="http://imvoo.com/archives/576.html" title="Joomla论坛组件Kunena1.6.5中文语言包">Joomla论坛组件Kunena1.6.5中文语言包</a></li><li><a href="http://imvoo.com/archives/574.html" title="Joomla!1.7.0的精选文章布局终于加上了分类选择">Joomla!1.7.0的精选文章布局终于加上了分类选择</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/540.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>让DEDECMS的会员空间转向UCHOME的空间</title>
		<link>http://imvoo.com/archives/414.html</link>
		<comments>http://imvoo.com/archives/414.html#comments</comments>
		<pubDate>Sat, 24 Oct 2009 16:10:44 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[dedecms]]></category>
		<category><![CDATA[uchome空间]]></category>
		<category><![CDATA[不能访问]]></category>
		<category><![CDATA[会员空间]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/414.html</guid>
		<description><![CDATA[我的环境是Linux+Nginx+php+mysql，Dedecms5.5 utf-8版本。安装之后，一直没有注意到中文用户名的空间访问有问题，具体描述：当会员为中文且为2（偶）字时，不能访问，为中文3（奇）字时，可以访问。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>我的环境是Linux+Nginx+php+mysql，Dedecms5.5 utf-8版本。安装之后，一直没有注意到中文用户名的空间访问有问题，具体描述：当会员为中文且为2（偶）字时，不能访问，为中文3（奇）字时，可以访问。</p>
<p>为了解决这个问题，且让空间直接转向uchome的空间，特作了以下修改。<span id="more-414"></span></p>
<p>这次修改，只改了一个文件/member/index.php</p>
<p>原第7行的</p>
<pre class="brush: php; title: 代码; notranslate">
else
{
 $tmpstr = @gb2utf8($uid);
 $tmpstr2 = @utf82gb($tmpstr);
 if($tmpstr2==$uid) $uid = $tmpstr;
}
else

{

 $tmpstr = @gb2utf8($uid);

 $tmpstr2 = @utf82gb($tmpstr);

 if($tmpstr2==$uid) $uid = $tmpstr;

}
</pre>
<p>删除</p>
<p>原92行</p>
<pre class="brush: php; title: 代码; notranslate">

/*-----------------------------

//会员空间主页

function space_index(){  }

------------------------------*/

else

{

 require_once(DEDEMEMBER.'/inc/config_space.php');

 if($action == '')

 {
</pre>
<p>加入一段代码，变成</p>
<pre class="brush: php; title: 代码; notranslate">

/*-----------------------------
//会员空间主页
function space_index(){  }
------------------------------*/
else
{
 include_once DEDEROOT.'/uc_client/client.php';
 list($uid, $username, $password, $email) = uc_get_user($uid);
 Header(&quot;HTTP/1.1 303 See Other&quot;);
 Header(&quot;Location: http://home.tancheng.info/$uid&quot;);
 exit;
 require_once(DEDEMEMBER.'/inc/config_space.php');
 if($action == '')
</pre>
<p>红字部分为新加入的。<br />
这样就可以直接转向uchome的空间了，如果中文用户名有问题的，只修改第一部分就可以。<br />
以上部分只在本机测试。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/404.html" title="让DedeCms分类信息模型支持Digg功能">让DedeCms分类信息模型支持Digg功能</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/414.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>让DedeCms分类信息模型支持Digg功能</title>
		<link>http://imvoo.com/archives/404.html</link>
		<comments>http://imvoo.com/archives/404.html#comments</comments>
		<pubDate>Thu, 13 Aug 2009 07:17:57 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[dedecms]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[分类信息]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/404.html</guid>
		<description><![CDATA[用DedeCms做的模板需要在分类信息里支持Digg功能，但是原程序里，只能对系统模型和自由模型Digg，即使用@#__archives当作主表的模型。而DedeCms里，分类信息模型是作为独立模型设置的。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>用DedeCms做的模板需要在分类信息里支持Digg功能，但是原程序里，只能对系统模型和自由模型Digg，即使用@#__archives当作主表的模型。而DedeCms里，分类信息模型是作为独立模型设置的。</p>
<p><span id="more-404"></span></p>
<p>这个功能的实现，只需要修改一个文件，即/plus/Digg_ajax.php：</p>
<p>$maintable = &#8216;#@__archives&#8217;;原程序的这行决定了不能为独立update。</p>
<p>可以修改为：<br />
$row=$dsql-&gt;GetOne(“Select id,channel from `#@__arctiny` where id=$id”);<br />
//改取arctiny表，取得该id的文章所属的模型<br />
if($row['channel']==-8)<br />
{<br />
//为分类信息模型时，更新的表为addoninfos，其它类推<br />
$maintable=&#8217;#@__addoninfos&#8217;;<br />
$idname=&#8217;aid&#8217;;<br />
//由于独立模型id不同，所以需要一个变量来存id名称，该id为aid<br />
}<br />
else<br />
{<br />
$maintable = &#8216;#@__archives&#8217;;<br />
$idname=&#8217;id&#8217;;<br />
}</p>
<p>然后把下面用到的三条SQL语句中的id修改为$idname，即：<br />
$dsql-&gt;ExecuteNoneQuery(“Update `$maintable` set scores = scores + {$cfg_caicai_add},goodpost=goodpost+1,lastpost=”.time().” where $idname=$id”);<br />
$dsql-&gt;ExecuteNoneQuery(“Update `$maintable` set scores = scores &#8211; {$cfg_caicai_sub},badpost=badpost+1,lastpost=”.time().” where $idname=$id”);<br />
$row = $dsql-&gt;GetOne(“Select goodpost,badpost,scores From `$maintable` where $idname=$id “);</p>
<p>经过上述的修改，再为article_infos.htm模板增加Digg的模板，可以从文章模板复制，就可以为分类信息等独立模型增加Digg功能了。</p>
<p>PS：各个微博的被禁止访问，造成了一些小话题无处可发。唉！~~~</p>
<p>最近的WordPress升级频繁啊，现在2.8.4了。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/414.html" title="让DEDECMS的会员空间转向UCHOME的空间">让DEDECMS的会员空间转向UCHOME的空间</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/404.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>对phpcms2008里生成Google Sitemap的修改</title>
		<link>http://imvoo.com/archives/401.html</link>
		<comments>http://imvoo.com/archives/401.html#comments</comments>
		<pubDate>Thu, 23 Jul 2009 15:37:32 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[phpcms]]></category>
		<category><![CDATA[sitemap]]></category>
		<category><![CDATA[修改]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/401.html</guid>
		<description><![CDATA[在phpcms2008后台，系统设置－>系统工具->Baidu/Google地图生成功能，这两项功能对站点的SEO和收录都有帮助]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>在phpcms2008后台，系统设置－&gt;系统工具-&gt;Baidu/Google地图生成功能，这两项功能对站点的SEO和收录都有帮助，但是对于最新版（6.12）里有一点小问题，因为没有用以前的版本建站，所以对以前的版本是否有这个问题没有注意。</p>
<p> <span id="more-401"></span>
<p><strong>由于Picasa被墙的问题，没有配图。可以到</strong><a href="http://www.zgyx.com/sitemap.xml" target="_blank"><strong>这里</strong></a><strong>查看效果。</strong></p>
<p>1、后台生成数量的两个输入框的ID颠倒了，上面的应该是num，下面那个是baidunum，官方的恰好相反。</p>
<p>2、用DATA_W3C格式化了时间格式。</p>
<p>3、借用WordPress里的sitemap.xsl文件，格式化输出sitemap.xml文件。</p>
<p><strong>对以上三点的修改涉及到了3个文件，新增了一个文件。分别是</strong></p>
<p>1、修改了\admin\templates\googlesitemap.tpl.php，修正input的id错误问题。同时也修改了数量，num修改为100，baidunum修改为20。</p>
<p>2、修改了\admin\googlemap.inc.php，修改了时间问题，用DATA_W3C格式化。如：2009-07-19T23:56:46+08:00。</p>
<p>在第56行可以修改sitemap文件名，原文名为sitemaps.xml。如果要修改文件名，请注意是否有在根目录创建文件的权限，或者在ftp里修改原文件名为现文件名。</p>
<p>3、修改了\include\admin\sitemaps.class.php，增加了xml-stylesheet语句，同时参考WP的Google Sitemap插件。</p>
<p>4、新增\sitemap.xsl文件在根目录。取自WP的Google Sitemap插件。</p>
<p><font color="#00ffff">最后是下载地址，可以</font><a href="http://cid-84213221c4276f1f.skydrive.live.com/self.aspx/.Public/2009/sitemap.zip" target="_blank"><font color="#ff0000"><strong>点击这里</strong></font></a><font color="#00ffff">下载。</font></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/397.html" title="使phpcms2008分页的符合规范">使phpcms2008分页的符合规范</a></li><li><a href="http://imvoo.com/archives/396.html" title="替换Phpcms2008的编辑器FckEditor为TinyMce">替换Phpcms2008的编辑器FckEditor为TinyMce</a></li><li><a href="http://imvoo.com/archives/354.html" title="[教程]如何在phpcms中添加html代码广告">[教程]如何在phpcms中添加html代码广告</a></li><li><a href="http://imvoo.com/archives/351.html" title="[教程]如何在Phpcms广告模块中插入Flash轮播广告">[教程]如何在Phpcms广告模块中插入Flash轮播广告</a></li><li><a href="http://imvoo.com/archives/330.html" title="淡淡风离开Phpcms团队">淡淡风离开Phpcms团队</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/401.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使phpcms2008分页的符合规范</title>
		<link>http://imvoo.com/archives/397.html</link>
		<comments>http://imvoo.com/archives/397.html#comments</comments>
		<pubDate>Sun, 12 Jul 2009 07:47:07 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[phpcms]]></category>
		<category><![CDATA[下载]]></category>
		<category><![CDATA[分页]]></category>
		<category><![CDATA[规范]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=397</guid>
		<description><![CDATA[phpcms2008的分页有时会出现莫名的错误，对html源代码的要求和分页符的位置要求较高，会造成不必要的分布错误]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p><img class="picasa alignleft" title="phpcms" src="http://lh3.ggpht.com/_SbB9RxjJztk/Sc0Q4HTRnOI/AAAAAAAAA6w/RRfFgwkrfaY/s400/phpcms.jpg" alt="phpcms" width="154" height="70" />phpcms2008的分页有时会出现莫名的错误，对html源代码的要求和分页符的位置要求较高，会造成不必要的分布错误，如把第一段作为标题。如把[page]和[page][/page]混排，还会造成导航的页码错误等。</p>
<p>分页符没有把&lt;p&gt;&lt;/p&gt;包含进去，也会造成每页html的代码开头为&lt;/p&gt;，结尾为&lt;p&gt;。这些都是可以避免的，如tinymce编辑器把&lt;p&gt;&lt;!&#8211; pagebreak &#8211;&gt;&lt;/p&gt;作为分页符，就是为了防止把段落标志p截断，而论坛上一些以&lt;br /&gt;作为文章分段的解决，也是不符合标准。</p>
<p><span id="more-397"></span></p>
<p><strong>分页的说明：</strong></p>
<p>1、无标题时用&lt;p&gt;[page]&lt;/p&gt;作为分页符；</p>
<p>2、用&lt;p&gt;[page]标题[/page]&lt;/p&gt;作为标题分页符</p>
<p><span style="color: #ff0000;">敬告：修改之后的执行效率有下降，如果你的网站不用分页，切勿使用</span></p>
<div class="wp-caption aligncenter" style="width: 522px"><img title="phpcms2008修改分页后效果" src="http://lh4.ggpht.com/_SbB9RxjJztk/SlmYybSBpZI/AAAAAAAABZE/zbWtc0tcAfY/s512/003.jpg" alt="phpcms2008修改分页后效果" width="512" height="285" /><p class="wp-caption-text">phpcms2008修改分页后效果</p></div>
<p><strong>主要的修改地方：</strong></p>
<p>手头上没有流程绘制工具，就简单的说一下主要修改的地方。</p>
<p>1、$paginationtype==1自动生成时，把分页符替换，调用自动分页函数（不建议自动分页，因为自动分页的函数没有加&lt;p&gt;&lt;/p&gt;，可以自行加上，该函数在include\global.func.php，最后1384行修改为$data = implode(&#8216;&lt;p&gt;[page]&lt;/p&gt;&#8217;, $data);）；</p>
<p>2、$paginationtype==0不分页时，把分页符替换；</p>
<p>3、有分页符时且有标题分页符时，首页不是&lt;p&gt;[page]开头，则加上。由于编辑器的原因，首行开能是&lt;p&gt;&amp;nbsp;&lt;/p&gt;，所以要注意看源文件删除空行；</p>
<p>4、把&lt;p&gt;[page]&lt;/p&gt;转换成&lt;p&gt;[page][/page]&lt;/p&gt;</p>
<p>5、为符合规范，最后生成的文件开头为&lt;/p&gt;时，要替换$content=substr_replace($content,”",0,4);</p>
<p>6、没有标题的分页为原标题+页码，防止把内容作为标题，也能规范标题</p>
<p>7、第一页如果没有标题则为原标题</p>
<p>附：1、修改的文件include\html.class.php下载</p>
<div class="wp-caption aligncenter" style="width: 103px"><a href="http://cid-84213221c4276f1f.skydrive.live.com/self.aspx/.Public/2009/html.clas.php.zip"><img title="html.class.php下载" src="http://msc.wlxrs.com/lQNgXBQYoayUK1wMOhAgVw/images/icons/Large/Zip.png" alt="html.class.php下载" width="93" height="96" /></a><p class="wp-caption-text">html.class.php下载</p></div>
<p>2、修改部分的源代码</p>
<p>//以下注释可删除,以</p>
<p>[page](.*)</p>
<p>为分页格式<br />
$oldtitle=$title;//记录原文件名</p>
<pre class="brush: php; title: 代码; notranslate">
if($paginationtype==1)
{
if(strpos($content, '[/page]

')!==false)
{
$content = preg_replace(&quot;|

\[page\](.*)\[/page\]

|U&quot;, '', $content);
}
if(strpos($content, '

[page]

')!==false)
{
$content = str_replace('

[page]

', '', $content);
}
$content = contentpage($content, $maxcharperpage);
}
elseif($paginationtype==0)
{
if(strpos($content, '[/page]

')!==false)
{
$content = preg_replace(&quot;|

\[page\](.*)\[/page\]

|U&quot;, '', $content);
}
if(strpos($content, '

[page]

')!==false)
{
$content = str_replace('

[page]

', '', $content);
}
}
if(strpos($content, '

[page]') !== false)
{
$contents = array_filter(explode('

[page]', $content));//生成分页数组
$pagenumber = count($contents);
for($i=1; $i&amp;lt;=$pagenumber; $i++)//生成网址 			{ 				$pageurls[$i] = $this-&amp;gt;url-&amp;gt;show($r['contentid'], $i, $r['catid'], $r['inputtime']);
}
if(strpos($content, '[/page]

') !== false)//有标题分页，则全部标题分页
{
if(strpos($content, '

[page]') !== 0 )
{//首行不是标题分页，则加上标题分页，注意编辑器原代码，首行为有可能为

$content='

[page][/page]

'.$content;
}
$content=str_replace('

[page]

','

[page][/page]

',$content);//把不是分页标题的格式转换成分页标题
echo $content;
if(preg_match_all(&quot;|

\[page\](.*)\[/page\]

|U&quot;, $content, $m, PREG_PATTERN_ORDER))
{
foreach($m[1] as $k=&amp;gt;$v)
{
$page = $k+1;
if ($v==''){$v='第'.$page.'页';};//分页标题为空时，输出第几页
$titles .= ''.$page.'、'.$v.'';
}
}
}
$page = $filesize = 0;
foreach($contents as $content)
{
$page++;
$pages = $this-&amp;gt;url-&amp;gt;show_pages($page, $pagenumber, $pageurls);
if($titles)
{
if (strpos($content,'

')==0){$content=substr_replace($content,&quot;&quot;,0,4);};//符合w3c规范

不能为开头
if (strpos($content,'[/page]

')!==false)
{
list($title, $content) = explode('[/page]

', $content);
}
else
{
$title=$oldtitle.'('.$page.')';//没有标题的分页为原标题+页码
if ($page==1){$title=$oldtitle;};//第一页如果没有标题则为原标题
}
}
$title = strip_tags($title);
$head['title'] = $title.'_'.$C['catname'].'_'.$PHPCMS['sitename'];
ob_start();
include template('phpcms', $template);
$file = PHPCMS_ROOT.$pageurls[$page][0];
$filesize += createhtml($file);
}
return $filesize;
}
else
{
$page = $page ? $page : 1;
$images_number = $GLOBALS['images_number'];
$array_images = $GLOBALS['array_images'];
$title = strip_tags($title);
$head['title'] = $title.'_'.$C['catname'].'_'.$PHPCMS['sitename'];
$ishtml = 1;
$info = $this-&amp;gt;url-&amp;gt;show($r['contentid'], 0, $r['catid'], $r['inputtime']);
$file = PHPCMS_ROOT.$info[0];
ob_start();
include template('phpcms', $template);
return createhtml($file);exit;
}
</pre>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/550.html" title="Phoca GuestbookV2.0.1留言本插件 中文版 ">Phoca GuestbookV2.0.1留言本插件 中文版 </a></li><li><a href="http://imvoo.com/archives/410.html" title="Nginx在Centos5下的service启动脚本">Nginx在Centos5下的service启动脚本</a></li><li><a href="http://imvoo.com/archives/401.html" title="对phpcms2008里生成Google Sitemap的修改">对phpcms2008里生成Google Sitemap的修改</a></li><li><a href="http://imvoo.com/archives/396.html" title="替换Phpcms2008的编辑器FckEditor为TinyMce">替换Phpcms2008的编辑器FckEditor为TinyMce</a></li><li><a href="http://imvoo.com/archives/354.html" title="[教程]如何在phpcms中添加html代码广告">[教程]如何在phpcms中添加html代码广告</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/397.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>替换Phpcms2008的编辑器FckEditor为TinyMce</title>
		<link>http://imvoo.com/archives/396.html</link>
		<comments>http://imvoo.com/archives/396.html#comments</comments>
		<pubDate>Sat, 11 Jul 2009 14:12:55 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[phpcms]]></category>
		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/396.html</guid>
		<description><![CDATA[于是今天把Fckeditor替换成了tinymce。下面就讲解一下是如何替换的。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p><img class="picasa alignleft" title="phpcms2008" src="http://lh3.ggpht.com/_SbB9RxjJztk/Sc0Q4HTRnOI/AAAAAAAAA6w/RRfFgwkrfaY/s400/phpcms.jpg" alt="phpcms2008" width="154" height="70" />不知道有没有人觉得Phpcms的默认编辑器FckEditor不好用，而Wordpress的TinyMce好用一些，于是今天把Fckeditor替换成了tinymce。下面就讲解一下是如何替换的。</p>
<p>替换的过程中，丢掉了一些功能：上传图片、恢复数据、增加（减小）编辑器高度、标题分页功能不好用等等。毕竟这是刚刚修改，在以后我看看能不能再改改这几个功能。<span style="color: #ff0000;">警告：目前为测试，请在本地测试，勿在网站上测试。</span></p>
<p><span id="more-396"></span></p>
<div class="wp-caption aligncenter" style="width: 410px"><img class="picasa " title="Phpcms2008使用TinyMce效果" src="http://lh3.ggpht.com/_SbB9RxjJztk/SligWhZIPlI/AAAAAAAABXg/USN4BTPfgvs/s400/001.jpg" alt="Phpcms2008使用TinyMce效果" width="400" height="206" /><p class="wp-caption-text">Phpcms2008使用TinyMce效果</p></div>
<p>这次修改了两处文件，所以替换的编辑器只有后台的内容管理和会员中心的内容管理，其它如留言本的编辑器未作修改。</p>
<p>1、修改include\fields\editor\form.inc.php</p>
<p>由于tinymce需要textarea不能为隐藏，所以</p>
<p>$data = “&lt;textarea name=\”info[$field]\” id=\”$field\”<span style="color: #ff0000;"> style=\”display:none\”</span>&gt;$value&lt;/textarea&gt;\n”;</p>
<p>要修改为</p>
<p>$data = “&lt;textarea name=\”info[$field]\” id=\”$field\”&gt;$value&lt;/textarea&gt;\n”;</p>
<p>2、修改include\form.class.php</p>
<p>这个文件修改的内容比较多，先后替换了编辑器的代码和分页、分页标题等功能的代码。对于tinymce，用的是advanced模式，全功能，<a href="http://www.inpeck.com/TinyMceManual/" target="_blank">具体参考TinyMce中文参考手册</a>。第七行完全替换为：</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str = “&lt;script type=\”text/javascript\” src=\”/images/js/tinymce/tiny_mce.js\”&gt;&lt;/script&gt;\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “&lt;script type=\”text/javascript\”&gt;\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “tinyMCE.init({\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .=”language : \”zh\” ,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “mode : \”exact\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “elements : \”".$textareaid.”\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “theme : \”advanced\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .=”width:\”".$width.”\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .=”height:\”".$height.”\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “plugins : \”safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “theme_advanced_buttons1 : \”save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “theme_advanced_buttons2 : \”cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “theme_advanced_buttons3 : \”tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “theme_advanced_buttons4 : \”insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “theme_advanced_toolbar_location : \”top\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “theme_advanced_toolbar_align : \”left\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “theme_advanced_statusbar_location : \”bottom\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “theme_advanced_resizing : true,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “content_css : \”css/content.css\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “template_external_list_url : \”lists/template_list.js\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “external_link_list_url : \”lists/link_list.js\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “external_image_list_url : \”lists/image_list.js\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “media_external_list_url : \”lists/media_list.js\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “template_replace_values : {\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “username : \”Some User\”,\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “staffid : \”991234\”\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “}\n”;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 751px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$str .= “});\n”;</div>
<p>$str = “&lt;script type=\”text/javascript\” src=\”/images/js/tinymce/tiny_mce.js\”&gt;&lt;/script&gt;\n”;</p>
<p>$str .= “&lt;script type=\”text/javascript\”&gt;\n”;</p>
<p>$str .= “tinyMCE.init({\n”;</p>
<p>$str .=”language : \”zh\” ,\n”;</p>
<p>$str .= “mode : \”exact\”,\n”;</p>
<p>$str .= “elements : \”".$textareaid.”\”,\n”;</p>
<p>$str .= “theme : \”advanced\”,\n”;</p>
<p>$str .=”width:\”".$width.”\”,\n”;</p>
<p>$str .=”height:\”".$height.”\”,\n”;</p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;（此处省略，可参考附件）</p>
<p>$str .= “}\n”;</p>
<p>$str .= “});\n”;</p>
<p>又替换了分布、标题分页等功能的代码。其它功能未改动，当然也就不起作用了。</p>
<p>3、把tinyMce放到images/js目录下</p>
<p>附件中已有整合好的tinymce，也可以从<a href="http://tinymce.moxiecode.com/" target="_blank">官方网站</a>下载TinyMce，再到<a href="http://tinymce.moxiecode.com/download_i18n.php" target="_blank">Languages Pack页面</a>下载中文语言包。</p>
<blockquote><p>注意：语言包的下载，需要在简体中文上打勾，再到下面点击download。</p></blockquote>
<p>我是把tiny_mce改名为tinymce，然后放到了images/js目录下，这个可以凭喜好放置，但是调用时，路径一定要写对。</p>
<p>进行了以上操作，就可以在后台内容管理和会员中心的内容管理里使用基本的tinymce编辑器了。</p>
<div class="wp-caption aligncenter" style="width: 410px"><img class="picasa " title="Phpcms2008使用tinyMce出现的问题" src="http://lh3.ggpht.com/_SbB9RxjJztk/Slig5cFF89I/AAAAAAAABX8/DM6H_I1Z7Zo/s400/%E5%A4%8D%E4%BB%B6%20002.jpg" alt="Phpcms2008使用tinyMce出现的问题" width="400" height="335" /><p class="wp-caption-text">Phpcms2008使用tinyMce出现的问题</p></div>
<p><strong>已知缺点：</strong></p>
<p>1、由于没有集成上传图片的插件，所以该编辑器不能上传图片，虽然TinyMCE有一个图片上传插件MCimagemanager，但是收费插件。 可以变相的进行上传操作就是在上传缩略图那个地方上传图片，然后在编辑器里插入图片。</p>
<p>2、恢复数据、增加（减小）编辑器高度功能不可用，未修改代码。</p>
<p>3、分页功能、标题分页功能不好用，对分页功能来说，主要是&lt;p&gt;&lt;/p&gt;的问题，未发现该编辑器有&lt;br /&gt;模式。该解决办法就是修改分页的函数把&lt;p&gt;[page]&lt;/p&gt;和&lt;p&gt;[page]标题1[/page]&lt;/p&gt;作为分页的分隔符。</p>
<div class="wp-caption aligncenter" style="width: 103px"><a href="http://cid-84213221c4276f1f.skydrive.live.com/self.aspx/.Public/2009/htdocs.zip" target="_blank"><img title="zip" src="http://msc.wlxrs.com/lQNgXBQYoayUK1wMOhAgVw/images/icons/Large/Zip.png" alt="附件下载" width="93" height="96" /></a><p class="wp-caption-text">附件下载</p></div>
<p>本文持续更新&#8230;</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/401.html" title="对phpcms2008里生成Google Sitemap的修改">对phpcms2008里生成Google Sitemap的修改</a></li><li><a href="http://imvoo.com/archives/397.html" title="使phpcms2008分页的符合规范">使phpcms2008分页的符合规范</a></li><li><a href="http://imvoo.com/archives/354.html" title="[教程]如何在phpcms中添加html代码广告">[教程]如何在phpcms中添加html代码广告</a></li><li><a href="http://imvoo.com/archives/351.html" title="[教程]如何在Phpcms广告模块中插入Flash轮播广告">[教程]如何在Phpcms广告模块中插入Flash轮播广告</a></li><li><a href="http://imvoo.com/archives/330.html" title="淡淡风离开Phpcms团队">淡淡风离开Phpcms团队</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/396.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>小改Phpcms的评论模板</title>
		<link>http://imvoo.com/archives/389.html</link>
		<comments>http://imvoo.com/archives/389.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 14:28:42 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/389.html</guid>
		<description><![CDATA[其实我们可以在header.html模板里，用条件语句来判断是否comment调用，而把一些在comment里想要调用的css或js文件放到这里来。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p><img class=" alignleft" src="http://lh3.ggpht.com/_SbB9RxjJztk/Sc0Q4HTRnOI/AAAAAAAAA6w/RRfFgwkrfaY/s400/phpcms.jpg" alt="phpcms" width="154" height="70" />Phpcms的评论模板list.html里有一些Ajax和一个引用.css文件的语句是写在内的。引用.css是不符合W3c标准的，在校验的时候会显示document type does not allow element “link” here。</p>
<p>其实我们可以在header.html模板里，用条件语句来判断是否comment调用，而把一些在comment里想要调用的css或js文件放到这里来。</p>
<p><span id="more-389"></span></p>
<p>如在comment/list.html模板里，我是这样修改的</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">{if ($mod==”comment”)}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&lt;link href=”style/default/modal.css” rel=”stylesheet” type=”text/css” /&gt;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">&lt;script type=”text/javascript” src=”images/js/jqModal.js”&gt;&lt;/script&gt;</div>
<p>{if ($mod==”comment”)}</p>
<p>&lt;link href=”style/default/modal.css” rel=”stylesheet” type=”text/css” /&gt;</p>
<p>&lt;script type=”text/javascript” src=”images/js/jqModal.js”&gt;&lt;/script&gt;</p>
<div>&#8230;.</div>
<div>继续写在这里</div>
<div>{/if}</div>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">暂无相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/408.html" title="Opera10正式版试用报告">Opera10正式版试用报告</a></li><li><a href="http://imvoo.com/archives/428.html" title="《阿凡达》之沉迷网游启示录">《阿凡达》之沉迷网游启示录</a></li><li><a href="http://imvoo.com/archives/411.html" title="Nginx下Wordpress的WP Super Cache不能写文件的问题">Nginx下Wordpress的WP Super Cache不能写文件的问题</a></li><li><a href="http://imvoo.com/archives/255.html" title="《星辰变》将出网络游戏&#038;起点推出同人征文大赛">《星辰变》将出网络游戏&#038;起点推出同人征文大赛</a></li><li><a href="http://imvoo.com/archives/307.html" title="IE8应该坚持走网页标准化道路">IE8应该坚持走网页标准化道路</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/389.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS样式表代码整理工具推荐</title>
		<link>http://imvoo.com/archives/357.html</link>
		<comments>http://imvoo.com/archives/357.html#comments</comments>
		<pubDate>Wed, 08 Apr 2009 16:03:26 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[工具]]></category>
		<category><![CDATA[推荐]]></category>
		<category><![CDATA[样式表]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=357</guid>
		<description><![CDATA[无论是横排还是竖排，都有很多支持者，我的习惯是在书写的时候，用竖排，最终发布的时候选择横排，在书写的时候，有时代码就会写的很乱，这时该工具的用处就显现出来了。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>从嘀咕上，偶然看到介绍的千鸟所谈的CSS样式表书写格式，很受启发。该种写作方式，结构清晰，在视觉上一目了然，省却了很多的麻烦。作者在博客上也总结了几点：</p>
<p><strong>分类</strong>，一个模块或者同类功能定义为一类定义，每类定义之间用段落隔开； <strong>分级</strong>，每类定义中的每个定义语句，根据结构或语意级别使用Tab缩进纵向对齐；<strong> 分断</strong>，每个定义内的每个属性定义之间，用“分号+空格”隔开；<strong> 连排</strong>，每个定义不换行，一直横排。</p>
<p><span id="more-357"></span><br />
怎么样才能快速，准确的在到上述的代码书写格式呢？幸好有DreamWeaver，里面一个代码整理功能，好像是cs4里出现的吧，经过设置之后，可以达成连排，但是却不能分级。</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh4.ggpht.com/_SbB9RxjJztk/SdzOnSAiqzI/AAAAAAAAA-Y/_-Y7jvO1TmY/s400/css1.jpg" alt="" width="400" height="267" /></p>
<p>而<a href="http://fairyfish.net/2009/03/26/organize-your-css-with-styleneat/" target="_blank"><em>使用Styleneat 重新组织CSS</em></a>介绍的<a href="http://styleneat.com/" target="_blank">Styleneat</a>从新组织成千鸟介绍的CSS书写格式，只需要一点点的设置就可以了。</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh4.ggpht.com/_SbB9RxjJztk/SdzOg3TE2eI/AAAAAAAAA-U/udVSNUFZ30c/s400/css4.jpg" alt="" width="388" height="200" /></p>
<p>选择Single Line Formatting就可以生成横排的CSS，Multi-line Formatting是每个属性一行的。下面是生成的代码。</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh4.ggpht.com/_SbB9RxjJztk/SdzOoZse_sI/AAAAAAAAA-g/f2Gb1hOHKc0/s400/css3.jpg" alt="" width="400" height="334" /></p>
<p>下面的截图是选择Multi-line Formatting后生成的代码。无论是横排还是竖排，都有很多支持者，我的习惯是在书写的时候，用竖排，最终发布的时候选择横排，在书写的时候，有时代码就会写的很乱，这时该工具的用处就显现出来了。但是可惜的是DreamWeaver还不支持CSS代码的缩进，如果可以的话，那就无比方便了。</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh5.ggpht.com/_SbB9RxjJztk/SdzOn-NplEI/AAAAAAAAA-c/qeYtr32MKUw/s400/css2.jpg" alt="" width="318" height="400" /></p>
<p>P.S.以上截图工具使用的是PicPick，一款免费但功能强大的截图软件。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/350.html" title="撰写博客的得力工具推荐">撰写博客的得力工具推荐</a></li><li><a href="http://imvoo.com/archives/45.html" title="转载：随机样式表 让样式表们轮流上阵">转载：随机样式表 让样式表们轮流上阵</a></li><li><a href="http://imvoo.com/archives/465.html" title="WordPress插件推荐：侧边栏逻辑判断Widget Logic">WordPress插件推荐：侧边栏逻辑判断Widget Logic</a></li><li><a href="http://imvoo.com/archives/337.html" title="两款通讯增强-来电防火墙软件推荐">两款通讯增强-来电防火墙软件推荐</a></li><li><a href="http://imvoo.com/archives/325.html" title="S60手机通讯增强软件GG小强推荐">S60手机通讯增强软件GG小强推荐</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/357.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[教程]如何在phpcms中添加html代码广告</title>
		<link>http://imvoo.com/archives/354.html</link>
		<comments>http://imvoo.com/archives/354.html#comments</comments>
		<pubDate>Tue, 31 Mar 2009 04:36:55 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[phpcms]]></category>
		<category><![CDATA[广告]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=354</guid>
		<description><![CDATA[本文介绍的还是利用上次所用的ads循环和phpcms自带的文本广告，新建一个支持html代码的模板。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p><img class="alignleft" src="http://lh3.ggpht.com/_SbB9RxjJztk/Sc0Q4HTRnOI/AAAAAAAAA6w/RRfFgwkrfaY/s400/phpcms.jpg" alt="phpcms" width="154" height="70" />像上次说的那样，phpcms里直接生成的js文件是不能包含html代码的。本文介绍的还是利用上次所用的ads循环和phpcms自带的文本广告，新建一个支持html代码的模板，从而达到支持html广告的效果。</p>
<p>这样设置以后，phpcms可以支持大部分的广告格式了。</p>
<p><span id="more-354"></span></p>
<p>先来看一看效果：</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh6.ggpht.com/_SbB9RxjJztk/SdGRj9s1fvI/AAAAAAAAA84/0M2oy-Hgi78/s512/4.png" alt="phpcms html广告效果" width="399" height="103" /></p>
<p>模板ads-html.html的设置如下图所示：</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh5.ggpht.com/_SbB9RxjJztk/SdGRiTSK9UI/AAAAAAAAA8g/jbE2wv7mKiM/s400/1.png" alt="phpcms html广告模板" width="400" height="309" /></p>
<p class="codesource">代码：<br />
{loop $adses $i $ads}<br />
{php $adstext=$ads['text']}<br />
{php $adstext=str_replace(“\”",”\\\”",$adstext)}<br />
{php $adstext=str_replace(“\&#8217;”,”\\\&#8217;”,$adstext)}<br />
{php $adstext=str_replace(“\\”,”\\”,$adstext)}<br />
{php $adstext=str_replace(“/”,”\/”,$adstext)}<br />
{php $codes=split(chr(13).chr(10),$adstext);}<br />
{loop $codes $i $code}<br />
document.writeln(“{$code}”);<br />
{/loop}<br />
{/loop}</p>
<p>广告位的设置：</p>
<p>模板选择刚才新建的ads-html.html
</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh6.ggpht.com/_SbB9RxjJztk/SdGRjJdEy5I/AAAAAAAAA8o/pgqEcwF2WeQ/s400/2.png" alt="phpcms html广告位设置" width="400" height="197" /></p>
<p>新建一个广告看看吧</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh4.ggpht.com/_SbB9RxjJztk/SdGRjW9N9kI/AAAAAAAAA8w/wmf67Ran36Y/s400/3.png" alt="phpcms 新建广告" width="400" height="262" /></p>
<p>生成的源代码是这样的</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh6.ggpht.com/_SbB9RxjJztk/SdGRkMJAwpI/AAAAAAAAA9A/lvqhRxKJQEM/s400/5.png" alt="phpcms html广告生产js" width="400" height="57" /></p>
<p>经过上述设置以后，该广告位就可以显示html代码广告了。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/351.html" title="[教程]如何在Phpcms广告模块中插入Flash轮播广告">[教程]如何在Phpcms广告模块中插入Flash轮播广告</a></li><li><a href="http://imvoo.com/archives/401.html" title="对phpcms2008里生成Google Sitemap的修改">对phpcms2008里生成Google Sitemap的修改</a></li><li><a href="http://imvoo.com/archives/397.html" title="使phpcms2008分页的符合规范">使phpcms2008分页的符合规范</a></li><li><a href="http://imvoo.com/archives/396.html" title="替换Phpcms2008的编辑器FckEditor为TinyMce">替换Phpcms2008的编辑器FckEditor为TinyMce</a></li><li><a href="http://imvoo.com/archives/330.html" title="淡淡风离开Phpcms团队">淡淡风离开Phpcms团队</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/354.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[教程]如何在Phpcms广告模块中插入Flash轮播广告</title>
		<link>http://imvoo.com/archives/351.html</link>
		<comments>http://imvoo.com/archives/351.html#comments</comments>
		<pubDate>Fri, 27 Mar 2009 17:29:01 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Flash轮播广告]]></category>
		<category><![CDATA[phpcms]]></category>
		<category><![CDATA[广告模块]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=351</guid>
		<description><![CDATA[在用Phpcms做站的过程中，需要插入Flash的轮播广告，有很多方式实现，如碎片功能。在这里着重讲解的不是碎片功能，是利用广告模块和幻灯片显示的广告。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p><img class="alignleft" src="http://lh3.ggpht.com/_SbB9RxjJztk/Sc0Q4HTRnOI/AAAAAAAAA6w/RRfFgwkrfaY/s400/phpcms.jpg" alt="phpcms" width="154" height="70" /></p>
<p>本人这段时间来一直在用phpcms做站，所以也经常写一些phpcms的心得。</p>
<p>在用Phpcms做站的过程中，需要插入Flash的轮播广告，有很多方式实现，如碎片功能。在这里着重讲解的不是碎片功能，是利用广告模块，新做一个支持Flash轮播广告的模板，注意，这里的Flash轮播广告不是Phpcms中自带的Flash广告功能，是利用幻灯片显示的广告。</p>
<p><span id="more-351"></span></p>
<p>PhpCms的广告模块功能。支持大部分常见的广告样式，如图片广告、类似Google Adsense的标题+内容广告，还可以实现文字链广告。</p>
<p>本文所要说的Flash轮播广告利用的是图片广告，需要设置该广告位内的广告为全部列出。</p>
<div class="wp-caption aligncenter" style="width: 350px"><img src="http://lh6.ggpht.com/_SbB9RxjJztk/Sc0QqVADPDI/AAAAAAAAA6Q/_TALzCAcAQc/s400/Screenshot%20-%202009-3-28%20%2C%201_42_55.jpg" alt="Flash轮播广告设置" width="340" height="282" /><p class="wp-caption-text">Flash轮播广告设置</p></div>
<p>新建一个广告模板ads_flash.html：</p>
<p class="codesource">{loop $adses $i $ads}<br />
{php $flash_texts .= str_replace(&#8216;”&#8216;,”&#8216;”,$ads[adsname]).&#8217;|';$flash_pics .= $ads[imageurl].&#8217;|';$flash_links .= &#8216;http://&#8217;.$ads[linkurl].&#8217;|';}<br />
{/loop}<br />
{php $flash_texts=substr($flash_texts,0,-1);$flash_pics=substr($flash_pics,0,-1);$flash_links=substr($flash_links,0,-1);}<br />
var flashvars = {};<br />
flashvars.titles = “{$flash_texts}”;<br />
flashvars.imgs = “{$flash_pics}”;<br />
flashvars.urls = “{$flash_links}”;<br />
flashvars.pw = “409&#8243;;<br />
flashvars.ph = “136&#8243;;<br />
flashvars.sizes = “12&#8243;;<br />
flashvars.Times = “4000&#8243;;<br />
flashvars.umcolor = “0xFFFFFF”;<br />
flashvars.btnbg = “0xFF7E00&#8243;;<br />
flashvars.txtcolor = “0xFFCC00&#8243;;<br />
flashvars.txtoutcolor = “0&#215;000000&#8243;;<br />
var params = {};<br />
params.menu = “false”;<br />
params.quality = “high”;<br />
params.wmode = “transparent”;<br />
params.allowscriptaccess = “always”;<br />
var attributes = {};<br />
attributes.id = “flashplayer”;<br />
swfobject.embedSWF(“/img/focus.swf”, “publicize”, flashvars.pw, flashvars.ph, “9.0.0&#8243;, “/img/expressInstall.swf”, flashvars, params, attributes);</p>
<p>结合我写的另一篇日志：<a href="http://imvoo.com/archives/310.html" target="_blank">修正几个地方 让网站通过W3C标准验证</a>，可以看到这里是利用了swfobject组件。该篇参考日志一定要看，不然，很可能显示不出来任何东西。当然也可以利用Phpcms的首页幻灯片模板里的代码作为修改。</p>
<p>显示广告的语句：
</p>
<p class="codesource">{loop $contents $i $content}<br />
{/loop}</p>
<p>上面这个循环语句，输出的是已经根据该广告位格式化过的代码，如图片广告，而不能调用具体的字段。
</p>
<p class="codesource">{loop $adses $i $ads}<br />
{/loop}</p>
<p>为达到可以具体调用字段的目的，可以上面这条循环语句，该语句是在管理广告列表的模板里面找到的，可以像内容标签那样调用字段。有了这条语句，就可以做出一些特殊的广告样式了，完全模仿Adsense都不是问题。</p>
<p>博客订阅地址<a href="http://feed.imvoo.com" target="_blank">http://feed.imvoo.com</a>。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/354.html" title="[教程]如何在phpcms中添加html代码广告">[教程]如何在phpcms中添加html代码广告</a></li><li><a href="http://imvoo.com/archives/401.html" title="对phpcms2008里生成Google Sitemap的修改">对phpcms2008里生成Google Sitemap的修改</a></li><li><a href="http://imvoo.com/archives/397.html" title="使phpcms2008分页的符合规范">使phpcms2008分页的符合规范</a></li><li><a href="http://imvoo.com/archives/396.html" title="替换Phpcms2008的编辑器FckEditor为TinyMce">替换Phpcms2008的编辑器FckEditor为TinyMce</a></li><li><a href="http://imvoo.com/archives/330.html" title="淡淡风离开Phpcms团队">淡淡风离开Phpcms团队</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/351.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在openSUSE11.1上安装和配置LAMP(Apache/MySQL/PHP)</title>
		<link>http://imvoo.com/archives/345.html</link>
		<comments>http://imvoo.com/archives/345.html#comments</comments>
		<pubDate>Sun, 22 Mar 2009 06:27:08 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=345</guid>
		<description><![CDATA[LAMP是由Apache MySQL PHP组成的，是在Linux下最受欢迎的软件组合之一，目前互联网上有很多网站运行在LAMP服务器上。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>查看<a href="http://www.susegeek.com/internet-browser/install-configure-lamp-apachemysqlphp-in-opensuse-110/" target="_blank">原文</a>。LAMP是由Apache MySQL PHP组成的，是在Linux下最受欢迎的软件组合之一，目前互联网上有很多网站运行在LAMP服务器上。</p>
<p>Linux &#8211; 是富有情味的开源操作系统；Apache &#8211; 这个星球上大师级的WEB服务器；MySQL &#8211; 是你喜爱的开源数据库软件；PHP &#8211; 受欢迎的WEB编程语言。</p>
<p><span id="more-345"></span></p>
<p>安装LAMP服务最简单的方法是在YaST图形界面，按以下步骤安装：</p>
<p>1、Computer – YaST – Install Software &#8211; 选择过渡”Patterns”，然后选择并接受”Web and LAMP”。但是这种方法我们安装了不需要的服务，如DNS，Perl模块等。</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh3.ggpht.com/_SbB9RxjJztk/ScXek6tmKkI/AAAAAAAAA4w/BTiEP_SuI04/s512/yast2-lamp.jpg" alt="" width="512" height="356" /></p>
<p>我喜欢手动安装一个LAMP服务。</p>
<p>所以不要浪费时间了，让我们立即让LAMP在你的openSUSE上运行起来吧。我用的是openSUSE11.0，这个安装过程同样适用早期的10.3、10.2版本，11.1版本也同样适应。</p>
<p><strong>安装和配置Apache2服务</strong></p>
<p><strong>安装Apache服务器</strong></p>
<p>opensuse11:~#yast2 –install apache2</p>
<p>这就安装了Apache服务，用下面的代码检验：</p>
<p class="codesource">opensuse11:~ # rcapache2 status<br />
Checking for httpd2:                                          unused</p>
<p>这是告诉我们，Apache服务已经安装上，但是还没有运行。为了测试Apache是否能够运行正常，在/srv/www/htdocs/目录建立一个index.html文件。这个目录是Apache默认的网站根目录。
</p>
<p class="codesource">opensuse11:~ # cd /srv/www/htdocs<br />
opensuse11:~ # vi index.html</p>
<p>在上面键入键入文本“Welcome to openSUSE 11.1”。</p>
<p><strong>启动Apache2服务</strong></p>
<p>现在启动Apache2服务，我们看看是否运行正常。
</p>
<p class="codesource">opensuse11:~ # rcapache2 start<br />
Starting httpd2 (prefork)                                         done</p>
<p>现在开启一个浏览器如Firefox，输入http://localhost，那么现在就可以看到刚才你输入的文本了，下面我们安装PHP5。</p>
<p><strong>安装PHP5</strong>
</p>
<p class="codesource">opensuse11:~ # yast2 –install php5 php5-mysql apache2-mod_php5</p>
<p>这将安装PHP5, PHP5-MySQL 模块和Apache2 PHP5 模块。为了让Apache2支持PHP5模块，现在重启Apache2让改动生效。</p>
<p class="codesource">opensuse11:~ # rcapache2 restart<br />
Syntax OK<br />
Shutting down httpd2 (waiting for all children to terminate)          done<br />
Starting httpd2 (prefork)                                                          done</p>
<p><strong>安装和配置MySQL</strong>
</p>
<p class="codesource">opensuse11:~ # yast2 –install mysql mysql-tools</p>
<p>这样就把MySQL数据库和可选安装的mysql-tools（设置工具）安装到openSUSE上了。按以下命令验证是否已经安装上：</p>
<p class="codesource">opensuse11:~ # rcmysql status<br />
Checking for service MySQL:                                           unused</p>
<p>上面的输出显示MySQL服务已经安装，但是还没有运行。</p>
<p><strong>启动MySQL服务</strong>
</p>
<p class="codesource">opensuse11:~ # rcmysql start<br />
Starting service MySQL                                                done</p>
<p>默认安装是没有root密码的，但是root密码是非常重要的。</p>
<p><strong>设置root密码</strong>
</p>
<p class="codesource">opensuse11:~ # mysqladmin -u root –p password rootpassword</p>
<p>这是将root密码设置为”rootpassword”。你可以设置一个安全适当的密码。</p>
<p>按以下操作检查一下root密码是否已经设置和MySQL Client是否可以登陆到MySQL服务器。</p>
<p class="codesource">opensuse11:~ # mysql -u root -p<br />
Enter password:<br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 1<br />
Server version: 5.0.51a SUSE MySQL RPM<br />
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.<br />
mysql&gt; show databases;<br />
+——————–+<br />
| Database           |<br />
+——————–+<br />
| information_schema |<br />
| mysql              |<br />
| test               |<br />
+——————–+<br />
3 rows in set (0.04 sec)<br />
mysql&gt;</p>
<p>按以上操作，我用MySQL Client作为root登录，输入了刚才键入的密码，列举了数据库。这样就已经完全在openSUSE上安装了LAMP服务。</p>
<p>管理MySQL数据库最简易和流行的工具是phpMyAdmin，phpMyAdmin的安装需要我们上面已经进行过的PHP5,Apache2环境，现在可以快速安装和配置phpMyAdmin了。</p>
<p><strong>安装phpMyAdmin</strong>
</p>
<p class="codesource">opensuse11:~ # yast2 –install phpMyAdmin</p>
<p>这就安装了phpMyAdmin，并在/srv/www/htdocs/建立了phpMyAdmin目录。进入该目录，并利用config.sample.inc.php快速配置phpMyAdmin。</p>
<p class="codesource">opensuse11:~ # cd /srv/www/htdocs/phpMyAdmin<br />
opensuse11:~ # cp config.sample.inc.php config.inc.php</p>
<p>查找下列语句修改为：
</p>
<p class="codesource">$cfg['blowfish_secret'] = ‘mysqladmin’;</p>
<p>在这里我设置了一个短语密码 ‘mysqladmin’。</p>
<p>按上面操作并设置了默认配置。 登录http://localhost/phpMyAdmin 到phpMyAdmin 用root帐户和刚才建立的密码。</p>
<p style="text-align: center;"><img class="aligncenter" src="http://lh5.ggpht.com/_SbB9RxjJztk/ScXeou-NzWI/AAAAAAAAA5A/-AlyxEU1VVA/s512/phpmyadminloggedin.jpg" alt="" width="512" height="320" /></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">暂无相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/471.html" title="网易将推出免费域名邮箱服务">网易将推出免费域名邮箱服务</a></li><li><a href="http://imvoo.com/archives/178.html" title="Nokia N85自带的浏览器是传说中的Firefox吗？">Nokia N85自带的浏览器是传说中的Firefox吗？</a></li><li><a href="http://imvoo.com/archives/452.html" title="nginx 启动脚本">nginx 启动脚本</a></li><li><a href="http://imvoo.com/archives/404.html" title="让DedeCms分类信息模型支持Digg功能">让DedeCms分类信息模型支持Digg功能</a></li><li><a href="http://imvoo.com/archives/4.html" title="把lblog换成了pjblog">把lblog换成了pjblog</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/345.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

