<?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>Dominic.Xu&#039;s 博客 &#187; article</title>
	<atom:link href="http://xuplus.com/article/tag/article/feed" rel="self" type="application/rss+xml" />
	<link>http://xuplus.com</link>
	<description>Web 2.0 生活</description>
	<lastBuildDate>Wed, 24 Aug 2011 05:26:12 +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>[Hack]将artile模组中的文章的关键词加入到HTML的Meta头中</title>
		<link>http://xuplus.com/article/2007/08/a56.html</link>
		<comments>http://xuplus.com/article/2007/08/a56.html#comments</comments>
		<pubDate>Wed, 01 Aug 2007 10:12:39 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[关键词]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=56</guid>
		<description><![CDATA[HTML页面的keywords Meta是非常重要的一个Meta，它提供给搜索引擎以指引，告诉当前页面的主要内容，虽然目前很多搜索引擎均不在把把keywords作为唯一标示，但其重要性还是显著的。XOOPS中可以在后台设置Meta Keywords，通过Smarty变量xoops_meta_keywords写入HTML页面，但这种方式导致所有页面的这个Meta头都一样，影响了keywords Meta的效果，修改article模组的view.article.php文件和主题模板文件即可达到即兼顾系统设置和页面个性化keywords Meta的目的，我们将发布文章的录入的tag显示在HTML Meta头中。 首先修改htdocs\modules\article\view.article.php文件289行附近， 将原来的 if(@include_once XOOPS_ROOT_PATH.”/modules/tag/include/tagbar.php”){     $xoopsTpl-&#62;assign(&#8216;tagbar&#8217;, tagBar($article_obj-&#62;getVar(“art_keywords”, “n”))); } 修改成： $extra_meta_keywords = $article_obj-&#62;getVar(“art_keywords”, “n”);//Modifyed By XuYong 添加tag到html的meta标签 if(@include_once XOOPS_ROOT_PATH.”/modules/tag/include/tagbar.php”){     $xoopsTpl-&#62;assign(&#8216;tagbar&#8217;, tagBar($article_obj-&#62;getVar(“art_keywords”, “n”)));     if(!empty($extra_meta_keywords))$extra_meta_keywords = str_replace(tag_get_delimiter(), “,”, $extra_meta_keywords);//Modifyed By XuYong 添加tag到html的meta标签 } $xoopsTpl -&#62; assign(“extra_meta_keywords”,$extra_meta_keywords);//Modifyed By XuYong 添加tag到html的meta标签  即通过增加extra_meta_keywords Smarty变量达到个性化keywords Meta 的目的。 再修改站点所用到的主题模板文件theme.html，将原来的 &#60;meta name=”keywords” content=”&#60;{$xoops_meta_keywords}&#62;” /&#62;  修改成 [...]]]></description>
			<content:encoded><![CDATA[<p>HTML页面的keywords Meta是非常重要的一个Meta，它提供给搜索引擎以指引，告诉当前页面的主要内容，虽然目前很多搜索引擎均不在把把keywords作为唯一标示，但其重要性还是显著的。XOOPS中可以在后台设置Meta Keywords，通过Smarty变量xoops_meta_keywords写入HTML页面，但这种方式导致所有页面的这个Meta头都一样，影响了keywords Meta的效果，修改article模组的view.<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>.php文件和主题模板文件即可达到即兼顾系统设置和页面个性化keywords Meta的目的，我们将发布文章的录入的tag显示在HTML Meta头中。</p>
<p>首先修改htdocs\modules\article\view.article.php文件289行附近，</p>
<p>将原来的</p>
<blockquote><p>if(@include_once <a href="http://xuplus.com/article/tag/xoops" class="st_tag internal_tag" rel="tag" title="标签 XOOPS 下的日志">XOOPS</a>_ROOT_PATH.”/modules/tag/include/tagbar.php”){<br />
    $xoopsTpl-&gt;assign(&#8216;tagbar&#8217;, tagBar($article_obj-&gt;getVar(“art_keywords”, “n”)));<br />
}</p></blockquote>
<p>修改成：</p>
<blockquote><p>$extra_meta_keywords = $article_obj-&gt;getVar(“art_keywords”, “n”);//Modifyed By XuYong 添加tag到html的meta标签<br />
if(@include_once XOOPS_ROOT_PATH.”/modules/tag/include/tagbar.php”){<br />
    $xoopsTpl-&gt;assign(&#8216;tagbar&#8217;, tagBar($article_obj-&gt;getVar(“art_keywords”, “n”)));<br />
    if(!empty($extra_meta_keywords))$extra_meta_keywords = str_replace(tag_get_delimiter(), “,”, $extra_meta_keywords);//Modifyed By XuYong 添加tag到html的meta标签<br />
}<br />
$xoopsTpl -&gt; assign(“extra_meta_keywords”,$extra_meta_keywords);//Modifyed By XuYong 添加tag到html的meta标签</p></blockquote>
<p> 即通过增加extra_meta_keywords Smarty变量达到个性化keywords Meta 的目的。</p>
<p>再修改站点所用到的主题模板文件theme.html，将原来的</p>
<blockquote><p>&lt;meta name=”keywords” content=”&lt;{$xoops_meta_keywords}&gt;” /&gt;</p></blockquote>
<p> 修改成</p>
<blockquote><p>&lt;meta name=”keywords” content=”&lt;{$extra_meta_keywords}&gt;,&lt;{$xoops_meta_keywords}&gt;” /&gt;</p></blockquote>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/hack" title="Hack" rel="tag">Hack</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a>, <a href="http://xuplus.com/article/tag/%e5%85%b3%e9%94%ae%e8%af%8d" title="关键词" rel="tag">关键词</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/08/a56.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Hack]让article模组显示的文章打印功能和RSS输出功能使用站点Logo</title>
		<link>http://xuplus.com/article/2007/08/a55.html</link>
		<comments>http://xuplus.com/article/2007/08/a55.html#comments</comments>
		<pubDate>Wed, 01 Aug 2007 09:53:40 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[Hack]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=55</guid>
		<description><![CDATA[article模组中显示的文章的时候下面的工具箱中的打印功能输出页面头部会打印个图片，而这个图片却是article模组xoops_version.php中配置的模块图片，打印出来实在是有些刺眼，RSS输出的地方也是这样。还是改成站点的Logo图片比较好 首先修改htdocs\modules\article\print.php文件90行处， 将原来的 $print_data["image"] = XOOPS_URL . “/modules/” . $xoopsModule-&#62;getVar(“dirname”) . “/” . $xoopsModule-&#62;getInfo( &#8216;image&#8217; );  修改成： $print_data["image"] = XOOPS_URL . “/images/logo.jpg”;//Modified By XuYong 采用站点Logo 再修改htdocs\modules\article\xml.php 284行附近， 将原来的 “url”            =&#62; XOOPS_URL.”/modules/”.$GLOBALS["artdirname"].”/”.$xoopsModule-&#62;getInfo(“image”), 修改成： “url”            =&#62; XOOPS_URL.”/images/logo.jpg”, 其中Logo的具体路径要根据实际情况调整。 标签： article, Hack, XOOPS]]></description>
			<content:encoded><![CDATA[<p>article模组中显示的文章的时候下面的工具箱中的打印功能输出页面头部会打印个图片，而这个图片却是article模组xoops_version.php中配置的模块图片，打印出来实在是有些刺眼，RSS输出的地方也是这样。还是改成站点的Logo图片比较好</p>
<p>首先修改htdocs\modules\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>\print.php文件90行处，</p>
<p>将原来的</p>
<blockquote><p>$print_data["image"] = <a href="http://xuplus.com/article/tag/xoops" class="st_tag internal_tag" rel="tag" title="标签 XOOPS 下的日志">XOOPS</a>_URL . “/modules/” . $xoopsModule-&gt;getVar(“dirname”) . “/” . $xoopsModule-&gt;getInfo( &#8216;image&#8217; );</p></blockquote>
<p> 修改成：</p>
<blockquote><p>$print_data["image"] = XOOPS_URL . “/images/logo.jpg”;//Modified By XuYong 采用站点Logo</p></blockquote>
<p>再修改htdocs\modules\article\xml.php 284行附近，</p>
<p>将原来的</p>
<blockquote><p>“url”            =&gt; XOOPS_URL.”/modules/”.$GLOBALS["artdirname"].”/”.$xoopsModule-&gt;getInfo(“image”),</p></blockquote>
<p>修改成：</p>
<blockquote><p>“url”            =&gt; XOOPS_URL.”/images/logo.jpg”,</p></blockquote>
<p>其中Logo的具体路径要根据实际情况调整。</p>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/hack" title="Hack" rel="tag">Hack</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/08/a55.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Hack]解决article模组中添加文章时使用html标签导致段落换行不正确的问题</title>
		<link>http://xuplus.com/article/2007/08/a54.html</link>
		<comments>http://xuplus.com/article/2007/08/a54.html#comments</comments>
		<pubDate>Wed, 01 Aug 2007 09:22:23 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[Hack]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=54</guid>
		<description><![CDATA[article模组发布文章是在编辑器下面有几个选项：“使用HTML标签”、“使用表情图”、“启用Xoops内置码”、“启用换行符(如果启用HTML标签，建议关闭) ”，一般都是选中状态（可能有配置项，但是好像默认是都选中），不明白的是为什么里面都提示“如果启用HTML标签，建议关闭”了就是不把第一个和第四个做成反选（加个Javascript控制一下就可以了），直接导致发布文章之后文章显示会换行2次，在HTML源代码中可以看到在行跟行之间出现了&#60;BR&#62;&#60;BR&#62;2次，导致行与行之间多出一个br。 解决办法：编辑htdocs\modules\article\edit.article.php文件111行， 将原来的 $dobr = $article_obj-&#62;isNew() &#124;&#124; $newpage; 改成： //Modified By XuYong 根据 $dohtml 调整$dobr默认值 if($dohtml==0) {     $dobr = $article_obj-&#62;isNew() &#124;&#124; $newpage; } else {     $dobr = 0; }  这样设置了“使用HTML标签”就会自动关闭“启用换行符”了。 标签： article, Hack, XOOPS]]></description>
			<content:encoded><![CDATA[<p>article模组发布文章是在编辑器下面有几个选项：“使用HTML标签”、“使用表情图”、“启用Xoops内置码”、“启用换行符(如果启用HTML标签，建议关闭) ”，一般都是选中状态（可能有配置项，但是好像默认是都选中），不明白的是为什么里面都提示“如果启用HTML标签，建议关闭”了就是不把第一个和第四个做成反选（加个Javascript控制一下就可以了），直接导致发布文章之后文章显示会换行2次，在HTML源代码中可以看到在行跟行之间出现了&lt;BR&gt;&lt;BR&gt;2次，导致行与行之间多出一个br。</p>
<p>解决办法：编辑htdocs\modules\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>\edit.<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>.php文件111行，</p>
<p>将原来的</p>
<blockquote><p>$dobr = $article_obj-&gt;isNew() || $newpage;</p></blockquote>
<p>改成：</p>
<blockquote><p>//Modified By XuYong 根据 $dohtml 调整$dobr默认值<br />
if($dohtml==0)<br />
{<br />
    $dobr = $article_obj-&gt;isNew() || $newpage;<br />
}<br />
else<br />
{<br />
    $dobr = 0;<br />
}</p></blockquote>
<p> 这样设置了“使用HTML标签”就会自动关闭“启用换行符”了。</p>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/hack" title="Hack" rel="tag">Hack</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/08/a54.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[Hack]让Article模组子分类的文章可以加入到上级分类的专题中</title>
		<link>http://xuplus.com/article/2007/07/a49.html</link>
		<comments>http://xuplus.com/article/2007/07/a49.html#comments</comments>
		<pubDate>Thu, 26 Jul 2007 01:54:01 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[Hack]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=49</guid>
		<description><![CDATA[当在article的某个分类添加了一个专题之后，目前的限制了将该分类下级分类的文章添加到这个专题中，这点限制在我看来不是很合理，作为拥有下级分类的分类，从隶属关系上讲下级分类的文章也应当属于该分类的，而且作为拥有下级分类的文章，这个分类所直接隶属的文章应当非常少，只有放到其下所有分类都不合适的时候，才放入该分类中。 修改htdocs\modules\article\cp.article.php文件212行附近， 原来为： unset($subCategories_obj); if(!empty($category_id)){ $criteria = new CriteriaCompo(new Criteria("top_expire", time(), "&#62;")); $topics_obj =&#38; $topic_handler-&#62;getByCategory($category_id, $xoopsModuleConfig["topics_max"], 0, $criteria, array("top_title")); if(count($topics_obj)&#62;0) foreach($topics_obj as $id=&#62;$topic){ $topics[] = array( 修改为： unset($subCategories_obj); if(!empty($category_id)){ $criteria = new CriteriaCompo(new Criteria("top_expire", time(), "&#62;")); //Hack by XuYong 子分类的文章可以加入到上级分类的专题中 $category_pid= 0; if(!empty($category_id))$category_pid = $category_obj-&#62;getVar("cat_pid"); // $topics_obj =&#38; $topic_handler-&#62;getByCategory($category_id, $xoopsModuleConfig["topics_max"], 0, $criteria, array("top_title")); $topics_obj =&#38; [...]]]></description>
			<content:encoded><![CDATA[<p>当在article的某个分类添加了一个专题之后，目前的限制了将该分类下级分类的文章添加到这个专题中，这点限制在我看来不是很合理，作为拥有下级分类的分类，从隶属关系上讲下级分类的文章也应当属于该分类的，而且作为拥有下级分类的文章，这个分类所直接隶属的文章应当非常少，只有放到其下所有分类都不合适的时候，才放入该分类中。</p>
<p>修改htdocs\modules\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>\cp.<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>.php文件212行附近，</p>
<p>原来为：</p>
<pre class="csharpcode">    unset($subCategories_obj);
    <span class="kwrd">if</span>(!empty($category_id)){
        $criteria = <span class="kwrd">new</span> CriteriaCompo(<span class="kwrd">new</span> Criteria(<span class="str">"top_expire"</span>, time(), <span class="str">"&gt;"</span>));
        $topics_obj =&amp; $topic_handler-&gt;getByCategory($category_id, $xoopsModuleConfig[<span class="str">"topics_max"</span>], 0, $criteria, array(<span class="str">"top_title"</span>));
        <span class="kwrd">if</span>(count($topics_obj)&gt;0) <span class="kwrd">foreach</span>($topics_obj <span class="kwrd">as</span> $id=&gt;$topic){
            $topics[] = array(</pre>
<style type="text/css">  .csharpcode, .csharpcode pre  {  	font-size: small;  	color: black;  	font-family: consolas, "Courier New", courier, monospace;  	background-color: #ffffff;  	/*white-space: pre;*/  }  .csharpcode pre { margin: 0em; }  .csharpcode .rem { color: #008000; }  .csharpcode .kwrd { color: #0000ff; }  .csharpcode .str { color: #006080; }  .csharpcode .op { color: #0000c0; }  .csharpcode .preproc { color: #cc6633; }  .csharpcode .asp { background-color: #ffff00; }  .csharpcode .html { color: #800000; }  .csharpcode .attr { color: #ff0000; }  .csharpcode .alt  {  	background-color: #f4f4f4;  	width: 100%;  	margin: 0em;  }  .csharpcode .lnum { color: #606060; }</style>
<p><font size="2">修改为：</font></p>
<pre class="csharpcode">    unset($subCategories_obj);
    <span class="kwrd">if</span>(!empty($category_id)){
        $criteria = <span class="kwrd">new</span> CriteriaCompo(<span class="kwrd">new</span> Criteria(<span class="str">"top_expire"</span>, time(), <span class="str">"&gt;"</span>));
        <span class="rem">//<a href="http://xuplus.com/article/tag/hack" class="st_tag internal_tag" rel="tag" title="标签 Hack 下的日志">Hack</a> by XuYong 子分类的文章可以加入到上级分类的专题中</span>
        $category_pid= 0;
        <span class="kwrd">if</span>(!empty($category_id))$category_pid = $category_obj-&gt;getVar(<span class="str">"cat_pid"</span>);
        <span class="rem">//        $topics_obj =&amp; $topic_handler-&gt;getByCategory($category_id, $xoopsModuleConfig["topics_max"], 0, $criteria, array("top_title"));</span>
                $topics_obj =&amp; $topic_handler-&gt;getByCategory($category_pid, $xoopsModuleConfig[<span class="str">"topics_max"</span>], 0, $criteria, array(<span class="str">"top_title"</span>));
        <span class="rem">//End Hack</span>
        <span class="kwrd">if</span>(count($topics_obj)&gt;0) <span class="kwrd">foreach</span>($topics_obj <span class="kwrd">as</span> $id=&gt;$topic){
            $topics[] = array(</pre>
<style type="text/css">  .csharpcode, .csharpcode pre  {  	font-size: small;  	color: black;  	font-family: consolas, "Courier New", courier, monospace;  	background-color: #ffffff;  	/*white-space: pre;*/  }  .csharpcode pre { margin: 0em; }  .csharpcode .rem { color: #008000; }  .csharpcode .kwrd { color: #0000ff; }  .csharpcode .str { color: #006080; }  .csharpcode .op { color: #0000c0; }  .csharpcode .preproc { color: #cc6633; }  .csharpcode .asp { background-color: #ffff00; }  .csharpcode .html { color: #800000; }  .csharpcode .attr { color: #ff0000; }  .csharpcode .alt  {  	background-color: #f4f4f4;  	width: 100%;  	margin: 0em;  }  .csharpcode .lnum { color: #606060; }</style>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/hack" title="Hack" rel="tag">Hack</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/07/a49.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Hack]更改article模组输出feed时时间不对的缺陷</title>
		<link>http://xuplus.com/article/2007/07/a48.html</link>
		<comments>http://xuplus.com/article/2007/07/a48.html#comments</comments>
		<pubDate>Thu, 26 Jul 2007 01:32:10 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[时区]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=48</guid>
		<description><![CDATA[服务时区设置为+8，在命令行行下显示正常，XOOPS中设置服务器所在时区为+0800，可article输出的feed时时间却怎么也不对，导致outlookRSS订阅中显示的文章时间也不对均为GMT+1600时区，哪有这样的时区哦，时区范围GMT-1200～GMT+1200。 修改方法如下： 1、修改htdocs\modules\article\class\feedcreator.class.php文件中739行附近FeedDate类的构造函数FeedDate如下： 1: function FeedDate($dateString="") { 2: $tzOffset = 0; 3: if ($dateString=="") $dateString = date("r"); 4:   5: //if (is_integer($dateString)) { 6: if (is_numeric($dateString)) { 7: $this-&#62;unix = $dateString; 8: return; 9: } 10: //Hack By XuYong 调整日期格式 11: if (preg_match("~(?:(?:Mon&#124;Tue&#124;Wed&#124;Thu&#124;Fri&#124;Sat&#124;Sun),\\s+)?(\\d{1,2})\\s+([a-zA-Z]{3})\\s+(\\d{4})\\s+(\\d{2}):(\\d{2}):(\\d{2})\\s+(.*)~",$dateString,$matches)) { 12: $months = Array("Jan"=&#62;1,"Feb"=&#62;2,"Mar"=&#62;3,"Apr"=&#62;4,"May"=&#62;5,"Jun"=&#62;6,"Jul"=&#62;7,"Aug"=&#62;8,"Sep"=&#62;9,"Oct"=&#62;10,"Nov"=&#62;11,"Dec"=&#62;12); 13: $this-&#62;unix = gmmktime($matches[4],$matches[5],$matches[6],$months[$matches[2]],$matches[1],$matches[3]); 14: if (substr($matches[7],0,1)=='+' [...]]]></description>
			<content:encoded><![CDATA[<p>服务时区设置为+8，在命令行行下显示正常，XOOPS中设置服务器所在时区为+0800，可article输出的feed时时间却怎么也不对，导致outlookRSS订阅中显示的文章时间也不对均为GMT+1600<a href="http://xuplus.com/article/tag/%e6%97%b6%e5%8c%ba" class="st_tag internal_tag" rel="tag" title="标签 时区 下的日志">时区</a>，哪有这样的时区哦，时区范围GMT-1200～GMT+1200。</p>
<p>修改方法如下：</p>
<p>1、修改htdocs\modules\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>\class\feedcreator.class.php文件中739行附近FeedDate类的构造函数FeedDate如下：</p>
<p style="font-size: 8pt; margin: 20px 0px 10px; overflow: auto; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border: gray 1px solid; padding: 4px">
<p style="font-size: 8pt; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px">
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">   1:</span> <span style="color: #0000ff">function</span> FeedDate($dateString=<span style="color: #006080">""</span>) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">   2:</span>     $tzOffset = 0;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">   3:</span>     <span style="color: #0000ff">if</span> ($dateString==<span style="color: #006080">""</span>) $dateString = date(<span style="color: #006080">"r"</span>);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">   4:</span>  </pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">   5:</span>     <span style="color: #008000">//if (is_integer($dateString)) {</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">   6:</span>     <span style="color: #0000ff">if</span> (is_numeric($dateString)) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">   7:</span>         $<span style="color: #0000ff">this</span>-&gt;unix = $dateString;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">   8:</span>         <span style="color: #0000ff">return</span>;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">   9:</span>     }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  10:</span>    <span style="color: #008000">//<a href="http://xuplus.com/article/tag/hack" class="st_tag internal_tag" rel="tag" title="标签 Hack 下的日志">Hack</a> By XuYong 调整日期格式</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  11:</span>     <span style="color: #0000ff">if</span> (preg_match(<span style="color: #006080">"~(?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s+)?(\\d{1,2})\\s+([a-zA-Z]{3})\\s+(\\d{4})\\s+(\\d{2}):(\\d{2}):(\\d{2})\\s+(.*)~"</span>,$dateString,$matches)) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  12:</span>         $months = Array(<span style="color: #006080">"Jan"</span>=&gt;1,<span style="color: #006080">"Feb"</span>=&gt;2,<span style="color: #006080">"Mar"</span>=&gt;3,<span style="color: #006080">"Apr"</span>=&gt;4,<span style="color: #006080">"May"</span>=&gt;5,<span style="color: #006080">"Jun"</span>=&gt;6,<span style="color: #006080">"Jul"</span>=&gt;7,<span style="color: #006080">"Aug"</span>=&gt;8,<span style="color: #006080">"Sep"</span>=&gt;9,<span style="color: #006080">"Oct"</span>=&gt;10,<span style="color: #006080">"Nov"</span>=&gt;11,<span style="color: #006080">"Dec"</span>=&gt;12);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  13:</span>         $<span style="color: #0000ff">this</span>-&gt;unix = gmmktime($matches[4],$matches[5],$matches[6],$months[$matches[2]],$matches[1],$matches[3]);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  14:</span>         <span style="color: #0000ff">if</span> (substr($matches[7],0,1)==<span style="color: #006080">'+'</span> OR substr($matches[7],0,1)==<span style="color: #006080">'-'</span>) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  15:</span>             $tzOffset = (substr($matches[7],0,3) * 60 + substr($matches[7],-2)) * 60;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  16:</span>         } <span style="color: #0000ff">else</span> {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  17:</span>             <span style="color: #0000ff">if</span> (strlen($matches[7])==1) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  18:</span>                 $oneHour = 3600;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  19:</span>                 $ord = ord($matches[7]);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  20:</span>                 <span style="color: #0000ff">if</span> ($ord &lt; ord(<span style="color: #006080">"M"</span>)) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  21:</span>                     $tzOffset = (ord(<span style="color: #006080">"A"</span>) - $ord - 1) * $oneHour;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  22:</span>                 } elseif ($ord &gt;= ord(<span style="color: #006080">"M"</span>) AND $matches[7]!=<span style="color: #006080">"Z"</span>) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  23:</span>                     $tzOffset = ($ord - ord(<span style="color: #006080">"M"</span>)) * $oneHour;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  24:</span>                 } elseif ($matches[7]==<span style="color: #006080">"Z"</span>) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  25:</span>                     $tzOffset = 0;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  26:</span>                 }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  27:</span>             }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  28:</span>             <span style="color: #0000ff">switch</span> ($matches[7]) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  29:</span>                 <span style="color: #0000ff">case</span> <span style="color: #006080">"UT"</span>:</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  30:</span>                 <span style="color: #0000ff">case</span> <span style="color: #006080">"GMT"</span>:    $tzOffset = 0;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  31:</span>             }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  32:</span>         }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  33:</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  34:</span>         $tzOffset += date(<span style="color: #006080">"Z"</span>,0);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  35:</span>         $<span style="color: #0000ff">this</span>-&gt;unix += $tzOffset;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  36:</span>  </pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  37:</span>         <span style="color: #0000ff">if</span> (TIME_ZONE!=<span style="color: #006080">""</span>)</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  38:</span>         {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  39:</span>             $server_TZ = abs(intval($GLOBALS[<span style="color: #006080">'xoopsConfig'</span>][<span style="color: #006080">'server_TZ'</span>] * 3600.0));</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  40:</span>             $<span style="color: #0000ff">this</span>-&gt;unix += ($server_TZ - date(<span style="color: #006080">"Z"</span>, 0)) % 43200;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  41:</span>         }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  42:</span>  </pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  43:</span>         <span style="color: #0000ff">return</span>;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  44:</span>     }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  45:</span>     <span style="color: #0000ff">if</span> (preg_match(<span style="color: #006080">"~(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(.*)~"</span>,$dateString,$matches)) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  46:</span>         $<span style="color: #0000ff">this</span>-&gt;unix = gmmktime($matches[4],$matches[5],$matches[6],$matches[2],$matches[3],$matches[1]);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  47:</span>         <span style="color: #0000ff">if</span> (substr($matches[7],0,1)==<span style="color: #006080">'+'</span> OR substr($matches[7],0,1)==<span style="color: #006080">'-'</span>) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  48:</span>             $tzOffset = (substr($matches[7],0,3) * 60 + substr($matches[7],-2)) * 60;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  49:</span>         } <span style="color: #0000ff">else</span> {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  50:</span>             <span style="color: #0000ff">if</span> ($matches[7]==<span style="color: #006080">"Z"</span>) {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  51:</span>                 $tzOffset = 0;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  52:</span>             }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  53:</span>         }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  54:</span>         $tzOffset += date(<span style="color: #006080">"Z"</span>,0);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  55:</span>         $<span style="color: #0000ff">this</span>-&gt;unix += $tzOffset;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  56:</span>  </pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  57:</span>         <span style="color: #0000ff">if</span> (TIME_ZONE!=<span style="color: #006080">""</span>)</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  58:</span>         {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  59:</span>             $server_TZ = abs(intval($GLOBALS[<span style="color: #006080">'xoopsConfig'</span>][<span style="color: #006080">'server_TZ'</span>] * 3600.0));</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  60:</span>             $<span style="color: #0000ff">this</span>-&gt;unix += ($server_TZ - date(<span style="color: #006080">"Z"</span>, 0)) % 43200;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  61:</span>         }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  62:</span>         <span style="color: #0000ff">return</span>;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  63:</span>     }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px"><span style="color: #606060">  64:</span>     $<span style="color: #0000ff">this</span>-&gt;unix = 0;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px"><span style="color: #606060">  65:</span> }</pre>
<p><font size="3">2、修改htdocs\modules\article\class\xml.php文件58行，</font></p>
<p><font size="3">原来为：</font></p>
<p>$TIME_ZONE = $prefix.date(“H:i”, $server_TZ);</p>
<p><font size="3">修改为：</font></p>
<p>$TIME_ZONE = $prefix.date(“H:i”, ($server_TZ &#8211; date(“Z”, 0)) % 43200); //Hack By XuYong 调整时区显示，防止出现+1600时区</p>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/feed" title="feed" rel="tag">feed</a>, <a href="http://xuplus.com/article/tag/hack" title="Hack" rel="tag">Hack</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a>, <a href="http://xuplus.com/article/tag/%e6%97%b6%e5%8c%ba" title="时区" rel="tag">时区</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/07/a48.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Fixed]Article模组取某个分类的子分类时出错的Bug</title>
		<link>http://xuplus.com/article/2007/07/a47.html</link>
		<comments>http://xuplus.com/article/2007/07/a47.html#comments</comments>
		<pubDate>Thu, 26 Jul 2007 01:08:25 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[Bug Fixed]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=47</guid>
		<description><![CDATA[当我们使用XOOPS的article模组时，如果我们想获取某个分类的所有子分类时，会发现取到的数据有可能不是我们所需要的，返回的却是所有分类，当然这个Bug只存在于article模组1.0版本中，下个版本中可能会被修正。（不知道D.J.什么时候出下个版本呢） 修改htdocs\modules\article\class\category.php文件中378行附近， 原来为： $category_array = $tree-&#62;getAllChild(0); 修改之后： $category_array = $tree-&#62;getAllChild($pid);//Modifyed By XuYong 没有使用$pid，导致没有起到任何作用 即可。 标签： article, Bug Fixed, XOOPS]]></description>
			<content:encoded><![CDATA[<p>当我们使用XOOPS的article模组时，如果我们想获取某个分类的所有子分类时，会发现取到的数据有可能不是我们所需要的，返回的却是所有分类，当然这个Bug只存在于article模组1.0版本中，下个版本中可能会被修正。（不知道D.J.什么时候出下个版本呢）</p>
<p>修改htdocs\modules\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>\class\category.php文件中378行附近，</p>
<p>原来为：</p>
<p>$category_array = $tree-&gt;getAllChild(0);</p>
<p>修改之后：</p>
<p>$category_array = $tree-&gt;getAllChild($pid);<span class="rem">//Modifyed By XuYong 没有使用$pid，导致没有起到任何作用</span></p>
<style type="text/css">  .csharpcode, .csharpcode pre  {  	font-size: small;  	color: black;  	font-family: consolas, "Courier New", courier, monospace;  	background-color: #ffffff;  	/*white-space: pre;*/  }  .csharpcode pre { margin: 0em; }  .csharpcode .rem { color: #008000; }  .csharpcode .kwrd { color: #0000ff; }  .csharpcode .str { color: #006080; }  .csharpcode .op { color: #0000c0; }  .csharpcode .preproc { color: #cc6633; }  .csharpcode .asp { background-color: #ffff00; }  .csharpcode .html { color: #800000; }  .csharpcode .attr { color: #ff0000; }  .csharpcode .alt  {  	background-color: #f4f4f4;  	width: 100%;  	margin: 0em;  }  .csharpcode .lnum { color: #606060; }</style>
<p>即可。</p>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/bug-fixed" title="Bug Fixed" rel="tag">Bug Fixed</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/07/a47.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Hack]在XOOPS的article模组中显示完整文章标题</title>
		<link>http://xuplus.com/article/2007/07/a44.html</link>
		<comments>http://xuplus.com/article/2007/07/a44.html#comments</comments>
		<pubDate>Wed, 25 Jul 2007 23:51:17 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[title属性]]></category>
		<category><![CDATA[模组]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=44</guid>
		<description><![CDATA[D.J.老大开发的article非常好用，其中有一个小缺陷：当我们获取文章列表时一般会对文章标题截取给定长度，但是当我们这样做之后，文章列表中文章标题是被截断了，但是对应A标签的title属性中也使用了截断之后的文字。这样导致的结果是当我们把鼠标移动到文章标题上面的时候，并不能看到完整的标题。 解决办法如下： 1、修改htdocs\modules\article\blocks\block.php和blocks.article.php文件，在162行附近加入如下行代码 $_art["art_fulltitle"] = $_art["art_title"];//Modifyed By XuYong 修改之后完整代码为： $_art["art_fulltitle"] = $_art["art_title"];//Modifyed By XuYong if(!empty($options[3])){ $_art["art_title"] = xoops_substr($_art["art_title"], 0, $options[3]); } 2、在对应的模板文件中使用art_fulltitle来显示超链接的title属性。可修改article_block_article.html文件如下： &#60;ul class="blkList"&#62; &#60;{foreach item=article from=$block.articles name=art}&#62; &#60;li&#62;&#60;span class="blkTime"&#62;&#60;{$article.time}&#62;&#60;/span&#62;&#60;a href="&#60;{$xoops_url}&#62;/modules/&#60;{$block.dirname}&#62;/view.article.php&#60;{$smarty.const.URL_DELIMITER}&#62;&#60;{$article.art_id}&#62;/c&#60;{$article.cat_id}&#62;" target="_blank" title="&#60;{$article.art_fulltitle}&#62;"&#62;&#60;{$article.art_title&#124;smartTruncate:19}&#62;&#60;/a&#62;&#60;/li&#62; &#60;{/foreach}&#62; &#60;/ul&#62; 标签： article, Hack, title属性, XOOPS, 模组]]></description>
			<content:encoded><![CDATA[<p>D.J.老大开发的article非常好用，其中有一个小缺陷：当我们获取文章列表时一般会对文章标题截取给定长度，但是当我们这样做之后，文章列表中文章标题是被截断了，但是对应A标签的title属性中也使用了截断之后的文字。这样导致的结果是当我们把鼠标移动到文章标题上面的时候，并不能看到完整的标题。</p>
<p>解决办法如下：</p>
<p>1、修改htdocs\modules\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>\blocks\block.php和blocks.<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>.php文件，在162行附近加入如下行代码</p>
<pre class="csharpcode">     $_art[<span class="str">"art_fulltitle"</span>] = $_art[<span class="str">"art_title"</span>];//Modifyed By XuYong</pre>
<style type="text/css">  .csharpcode, .csharpcode pre  {  	font-size: small;  	color: black;  	font-family: consolas, "Courier New", courier, monospace;  	background-color: #ffffff;  	/*white-space: pre;*/  }  .csharpcode pre { margin: 0em; }  .csharpcode .rem { color: #008000; }  .csharpcode .kwrd { color: #0000ff; }  .csharpcode .str { color: #006080; }  .csharpcode .op { color: #0000c0; }  .csharpcode .preproc { color: #cc6633; }  .csharpcode .asp { background-color: #ffff00; }  .csharpcode .html { color: #800000; }  .csharpcode .attr { color: #ff0000; }  .csharpcode .alt  {  	background-color: #f4f4f4;  	width: 100%;  	margin: 0em;  }  .csharpcode .lnum { color: #606060; }</style>
<p>修改之后完整代码为：</p>
<pre class="csharpcode">            $_art[<span class="str">"art_fulltitle"</span>] = $_art[<span class="str">"art_title"</span>];<span class="rem">//Modifyed By XuYong</span>
        <span class="kwrd">if</span>(!empty($options[3])){
            $_art[<span class="str">"art_title"</span>] = <a href="http://xuplus.com/article/tag/xoops" class="st_tag internal_tag" rel="tag" title="标签 XOOPS 下的日志">xoops</a>_substr($_art[<span class="str">"art_title"</span>], 0, $options[3]);
        }</pre>
<style type="text/css">  .csharpcode, .csharpcode pre  {  	font-size: small;  	color: black;  	font-family: consolas, "Courier New", courier, monospace;  	background-color: #ffffff;  	/*white-space: pre;*/  }  .csharpcode pre { margin: 0em; }  .csharpcode .rem { color: #008000; }  .csharpcode .kwrd { color: #0000ff; }  .csharpcode .str { color: #006080; }  .csharpcode .op { color: #0000c0; }  .csharpcode .preproc { color: #cc6633; }  .csharpcode .asp { background-color: #ffff00; }  .csharpcode .html { color: #800000; }  .csharpcode .attr { color: #ff0000; }  .csharpcode .alt  {  	background-color: #f4f4f4;  	width: 100%;  	margin: 0em;  }  .csharpcode .lnum { color: #606060; }</style>
<p>2、在对应的模板文件中使用art_fulltitle来显示超链接的title属性。可修改article_block_article.html文件如下：</p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">ul</span> <span class="attr">class</span><span class="kwrd">="blkList"</span><span class="kwrd">&gt;</span>
  <span class="kwrd">&lt;</span>{foreach item=article from=$block.articles name=art}<span class="kwrd">&gt;</span>
  <span class="kwrd">&lt;</span><span class="html">li</span><span class="kwrd">&gt;&lt;</span><span class="html">span</span> <span class="attr">class</span><span class="kwrd">="blkTime"</span><span class="kwrd">&gt;&lt;</span>{$article.time}<span class="kwrd">&gt;&lt;/</span><span class="html">span</span><span class="kwrd">&gt;&lt;</span><span class="html">a</span> <span class="attr">href</span>="&lt;{$<span class="attr">xoops_url</span>}<span class="kwrd">&gt;</span>/modules/<span class="kwrd">&lt;</span>{$block.dirname}<span class="kwrd">&gt;</span>/view.article.php<span class="kwrd">&lt;</span>{$smarty.const.URL_DELIMITER}<span class="kwrd">&gt;&lt;</span>{$article.art_id}<span class="kwrd">&gt;</span>/c<span class="kwrd">&lt;</span>{$article.cat_id}<span class="kwrd">&gt;</span>" target="_blank" title="<span class="kwrd">&lt;</span>{$article.art_fulltitle}<span class="kwrd">&gt;</span>"<span class="kwrd">&gt;&lt;</span>{$article.art_title|smartTruncate:19}<span class="kwrd">&gt;&lt;/</span><span class="html">a</span><span class="kwrd">&gt;&lt;/</span><span class="html">li</span><span class="kwrd">&gt;</span>
  <span class="kwrd">&lt;</span>{/foreach}<span class="kwrd">&gt;</span>
<span class="kwrd">&lt;/</span><span class="html">ul</span><span class="kwrd">&gt;</span></pre>
<style type="text/css">  .csharpcode, .csharpcode pre  {  	font-size: small;  	color: black;  	font-family: consolas, "Courier New", courier, monospace;  	background-color: #ffffff;  	/*white-space: pre;*/  }  .csharpcode pre { margin: 0em; }  .csharpcode .rem { color: #008000; }  .csharpcode .kwrd { color: #0000ff; }  .csharpcode .str { color: #006080; }  .csharpcode .op { color: #0000c0; }  .csharpcode .preproc { color: #cc6633; }  .csharpcode .asp { background-color: #ffff00; }  .csharpcode .html { color: #800000; }  .csharpcode .attr { color: #ff0000; }  .csharpcode .alt  {  	background-color: #f4f4f4;  	width: 100%;  	margin: 0em;  }  .csharpcode .lnum { color: #606060; }</style>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/hack" title="Hack" rel="tag">Hack</a>, <a href="http://xuplus.com/article/tag/title%e5%b1%9e%e6%80%a7" title="title属性" rel="tag">title属性</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a>, <a href="http://xuplus.com/article/tag/%e6%a8%a1%e7%bb%84" title="模组" rel="tag">模组</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/07/a44.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Hack]让article模组中显示用户真实姓名</title>
		<link>http://xuplus.com/article/2007/07/a43.html</link>
		<comments>http://xuplus.com/article/2007/07/a43.html#comments</comments>
		<pubDate>Wed, 25 Jul 2007 23:50:39 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[模组]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=43</guid>
		<description><![CDATA[目前XOOPS中article模组显示的都是文章发布者的登录名，有些时候显示真实姓名可能更恰当，特别是当提交者是单位的时候，这里提一个临时解决方案，最佳方案是放到配置项中由管理员配置显示。 修改htdocs\modules\article\class\article.php文件中的getAuthor函数如下即可： function &#38;getAuthor($retrieveUname = false) { $author["uid"] = $this-&#62;getVar("uid"); if($retrieveUname){ $author["name"] = XoopsUser::getUnameFromId($author["uid"],1) ; } return $author; } 配合XOOPS中修正获取真实用户名的Bug (Fixed) 效果更好。 标签： article, Hack, XOOPS, 模组]]></description>
			<content:encoded><![CDATA[<p>目前XOOPS中article模组显示的都是文章发布者的登录名，有些时候显示真实姓名可能更恰当，特别是当提交者是单位的时候，这里提一个临时解决方案，最佳方案是放到配置项中由管理员配置显示。</p>
<p>修改htdocs\modules\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>\class\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>.php文件中的getAuthor函数如下即可：</p>
<pre class="csharpcode"><span class="kwrd">function</span> &amp;getAuthor($retrieveUname = <span class="kwrd">false</span>)
    {
        $author[<span class="str">"uid"</span>] = $<span class="kwrd">this</span>-&gt;getVar(<span class="str">"uid"</span>);
        <span class="kwrd">if</span>($retrieveUname){
            $author[<span class="str">"name"</span>] = XoopsUser::getUnameFromId($author[<span class="str">"uid"</span>],1) ;
        }
        <span class="kwrd">return</span> $author;
    }</pre>
<style type="text/css">.csharpcode, .csharpcode pre  {  	font-size: small;  	color: black;  	font-family: consolas, "Courier New", courier, monospace;  	background-color: #ffffff;  	/*white-space: pre;*/  }  .csharpcode pre { margin: 0em; }  .csharpcode .rem { color: #008000; }  .csharpcode .kwrd { color: #0000ff; }  .csharpcode .str { color: #006080; }  .csharpcode .op { color: #0000c0; }  .csharpcode .preproc { color: #cc6633; }  .csharpcode .asp { background-color: #ffff00; }  .csharpcode .html { color: #800000; }  .csharpcode .attr { color: #ff0000; }  .csharpcode .alt  {  	background-color: #f4f4f4;  	width: 100%;  	margin: 0em;  }  .csharpcode .lnum { color: #606060; }</style>
<p>配合<a rel="bookmark" href="http://xuplus.com/article/2007/07/a46.html" title="到《XOOPS中修正获取真实用户名的Bug (Fixed)》的永久链接">XOOPS中修正获取真实用户名的Bug (Fixed) </a>效果更好。</p>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/hack" title="Hack" rel="tag">Hack</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a>, <a href="http://xuplus.com/article/tag/%e6%a8%a1%e7%bb%84" title="模组" rel="tag">模组</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/07/a43.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XOOPS中article模块 文章管理界面 的友好模板</title>
		<link>http://xuplus.com/article/2007/04/a12.html</link>
		<comments>http://xuplus.com/article/2007/04/a12.html#comments</comments>
		<pubDate>Wed, 18 Apr 2007 03:40:30 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[中文习惯]]></category>
		<category><![CDATA[文章管理]]></category>
		<category><![CDATA[模块]]></category>
		<category><![CDATA[模板]]></category>
		<category><![CDATA[界面友好]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=12</guid>
		<description><![CDATA[D.J. 开发的article模块确实很好用,但是他的文章管理界面不太符合中国人使用习惯(被ASP CMS 惯坏了)，充分发扬XOOPS的全部模板定制精神，做了一个针对文章管理的功能的友好模板。采用了表格显示文章列表的方式。如图：   下载附件解压到themes\你的主题名称\modules\article覆盖或者解压到modules\article\templates覆盖并在后台更新article模块.  下载地址:article_cparticle.html  标签： article, XOOPS, 中文习惯, 文章管理, 模块, 模板, 界面友好]]></description>
			<content:encoded><![CDATA[<p><font size="4">D.J. 开发的article模块确实很好用,但是他的文章管理界面不太符合中国人使用习惯(被ASP CMS 惯坏了</font><font size="4">)，充分发扬XOOPS的全部模板定制精神，做了一个针对文章管理的功能的友好模板。采用了表格显示文章列表的方式。如图：</font></p>
<p> <img width="500" src="http://xuplus.com/uploads/Image/editarticle.JPG" height="732" /></p>
<p><font size="4">下载附件解压到themes\你的主题名称\modules\article覆盖或者解压到modules\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>\templates覆盖并在后台更新article模块.</font></p>
<p> <font size="4">下载地址:<a href="http://xuplus.com/uploads/2007/04/article_cparticle.rar">article_cparticle.html</a> </font></p>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a>, <a href="http://xuplus.com/article/tag/%e4%b8%ad%e6%96%87%e4%b9%a0%e6%83%af" title="中文习惯" rel="tag">中文习惯</a>, <a href="http://xuplus.com/article/tag/%e6%96%87%e7%ab%a0%e7%ae%a1%e7%90%86" title="文章管理" rel="tag">文章管理</a>, <a href="http://xuplus.com/article/tag/%e6%a8%a1%e5%9d%97" title="模块" rel="tag">模块</a>, <a href="http://xuplus.com/article/tag/%e6%a8%a1%e6%9d%bf" title="模板" rel="tag">模板</a>, <a href="http://xuplus.com/article/tag/%e7%95%8c%e9%9d%a2%e5%8f%8b%e5%a5%bd" title="界面友好" rel="tag">界面友好</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/04/a12.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Xoops中FCKeditor的上传文件时中文文件名解决方案</title>
		<link>http://xuplus.com/article/2007/04/a8.html</link>
		<comments>http://xuplus.com/article/2007/04/a8.html#comments</comments>
		<pubDate>Thu, 12 Apr 2007 10:22:43 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[上传]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=8</guid>
		<description><![CDATA[使用FCKeditor上传图片、Flash等文件时，文件名中的中文会显示为乱码并在在服务器上面保存有些全部为乱码文件，不能正常显示，在网上搜了一下前辈们的解决方法，没找到很好的解决办法。看来还有N多的人和我一样的困惑，但解决办法又如此的简单： 将 editor\filemanager\browser\default\frmupload.html 文件的编码改为UTF-8即可。 如果不能解决则 编辑upload.php文件 // Compose the file path. //Modifyed By XuYong 修正UTF-8的问题 $sFileName =iconv(“utf-8&#8243;,”gbk”,$sFileName); //End Modifyed 环境XOOPS 2.0.16 UTF-8 标签： article, fckeditor, XOOPS, 上传, 中文]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 10pt">使用FCKeditor上传图片、Flash等文件时，文件名中的中文会显示为乱码并在在服务器上面保存有些全部为乱码文件，不能正常显示，在网上搜了一下前辈们的解决方法，没找到很好的解决办法。看来还有N多的人和我一样的困惑，但解决办法又如此的简单： </span></p>
<p><span style="font-size: 10pt">将 editor\filemanager\browser\default\frmupload.html 文件的编码改为UTF-8即可。 </span></p>
<p><span style="font-size: 10pt">如果不能解决则 </span></p>
<p><span style="font-size: 10pt">编辑upload.php文件 </span></p>
<p><span style="font-size: 10pt">// Compose the file path. </span></p>
<p><span style="font-size: 10pt">//Modifyed By XuYong 修正UTF-8的问题 </span></p>
<p><span style="font-size: 10pt">$sFileName =iconv(“utf-8&#8243;,”gbk”,$sFileName); </span></p>
<p><span style="font-size: 10pt">//End Modifyed </span></p>
<p><span style="font-size: 10pt"></span>环境XOOPS 2.0.16 UTF-8</p>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/fckeditor" title="fckeditor" rel="tag">fckeditor</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a>, <a href="http://xuplus.com/article/tag/%e4%b8%8a%e4%bc%a0" title="上传" rel="tag">上传</a>, <a href="http://xuplus.com/article/tag/%e4%b8%ad%e6%96%87" title="中文" rel="tag">中文</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/04/a8.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XOOPS中Fckeditor 在arctile模组中上传失败解决方法</title>
		<link>http://xuplus.com/article/2007/04/a7.html</link>
		<comments>http://xuplus.com/article/2007/04/a7.html#comments</comments>
		<pubDate>Thu, 12 Apr 2007 10:21:03 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[上传]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=7</guid>
		<description><![CDATA[上传过程提示信息： This file uploader is disabled. Please check the “editor/filemanager/upload/php/config.php” file 使用过程中可能出现问题。有以下几个地方要修改 modules\article\fckeditor.upload.php 中必须定义 define(“FCKUPLOAD_DISABLED”, 1); 修改class\xoopseditor\FCKeditor\editor\filemanager\upload\php\upload.php 文件头部为 //Modifyed By XuYong 解决有时不能顺利获取config.php等文件 $current_path =dirname(__FILE__); if ( DIRECTORY_SEPARATOR != “/” ) $current_path = str_replace( DIRECTORY_SEPARATOR, “/”, $current_path); require($current_path.&#8217;/config.php&#8217;) ; require($current_path.&#8217;/util.php&#8217;) ; /* require(&#8216;config.php&#8217;) ; require(&#8216;util.php&#8217;) ; */ //End Modifyed 修改class\xoopseditor\FCKeditor\editor\filemanager\upload\php\connector.php 文件头部为 //Modifyed By XuYong 解决有时不能顺利获取config.php等文件 $current_path [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 10pt">上传过程提示信息： </span></p>
<p><span style="font-size: 10pt; color: red"><em>This file uploader is disabled. Please check the “editor/filemanager/upload/php/config.php” file </em></span></p>
<p><span style="font-size: 10pt">使用过程中可能出现问题。有以下几个地方要修改 </span></p>
<p><span style="font-size: 10pt; color: red">modules\<a href="http://xuplus.com/article/tag/article" class="st_tag internal_tag" rel="tag" title="标签 article 下的日志">article</a>\<a href="http://xuplus.com/article/tag/fckeditor" class="st_tag internal_tag" rel="tag" title="标签 fckeditor 下的日志">fckeditor</a>.upload.php </span></p>
<p><span style="font-size: 10pt">中必须定义 </span></p>
<p><span style="font-size: 10pt; color: red">define(“FCKUPLOAD_DISABLED”, 1); </span></p>
<p><span style="font-size: 10pt">修改<span style="color: red">class\xoopseditor\FCKeditor\editor\filemanager\upload\php\upload.php</span> </span></p>
<p><span style="font-size: 10pt">文件头部为 </span></p>
<p><span style="font-size: 10pt">//Modifyed By XuYong 解决有时不能顺利获取config.php等文件 </span></p>
<p><span style="font-size: 10pt">$current_path =dirname(__FILE__); </span></p>
<p><span style="font-size: 10pt">if ( DIRECTORY_SEPARATOR != “/” ) $current_path = str_replace( DIRECTORY_SEPARATOR, “/”, $current_path); </span></p>
<p><span style="font-size: 10pt; color: red">require($current_path.&#8217;/config.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt; color: red">require($current_path.&#8217;/util.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt">/* </span></p>
<p><span style="font-size: 10pt">require(&#8216;config.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt">require(&#8216;util.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt">*/ </span></p>
<p><span style="font-size: 10pt">//End Modifyed </span></p>
<p><span style="font-size: 10pt">修改<span style="color: red">class\xoopseditor\FCKeditor\editor\filemanager\upload\php\connector.php</span> </span></p>
<p><span style="font-size: 10pt">文件头部为 </span></p>
<p><span style="font-size: 10pt">//Modifyed By XuYong 解决有时不能顺利获取config.php等文件 </span></p>
<p><span style="font-size: 10pt">$current_path =dirname(__FILE__); </span></p>
<p><span style="font-size: 10pt">if ( DIRECTORY_SEPARATOR != “/” ) $current_path = str_replace( DIRECTORY_SEPARATOR, “/”, $current_path);<span style="color: red"> </span></span></p>
<p><span style="font-size: 10pt; color: red">require($current_path.&#8217;/config.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt; color: red">require($current_path.&#8217;/util.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt; color: red">require($current_path.&#8217;/io.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt; color: red">require($current_path.&#8217;/basexml.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt; color: red">require($current_path.&#8217;/commands.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt">/* </span></p>
<p><span style="font-size: 10pt">include(&#8216;config.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt">include(&#8216;util.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt">include(&#8216;io.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt">include(&#8216;basexml.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt">include(&#8216;commands.php&#8217;) ; </span></p>
<p><span style="font-size: 10pt">*/ </span></p>
<p><span style="font-size: 10pt">//End Modifyed </span></p>
<p>环境：<a href="http://xuplus.com/article/tag/xoops" class="st_tag internal_tag" rel="tag" title="标签 XOOPS 下的日志">XOOPS</a> 2.0.16 UTF-8</p>
<p><span style="font-size: 10pt"></span></p>

	标签： <a href="http://xuplus.com/article/tag/article" title="article" rel="tag">article</a>, <a href="http://xuplus.com/article/tag/fckeditor" title="fckeditor" rel="tag">fckeditor</a>, <a href="http://xuplus.com/article/tag/xoops" title="XOOPS" rel="tag">XOOPS</a>, <a href="http://xuplus.com/article/tag/%e4%b8%8a%e4%bc%a0" title="上传" rel="tag">上传</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/04/a7.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

