<?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>运达&#039;s  blog &#187; Dedecms</title>
	<atom:link href="https://www.yunda51.com/?cat=12&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.yunda51.com</link>
	<description>运达的博客</description>
	<lastBuildDate>Wed, 12 Nov 2025 07:58:26 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.19</generator>
	<item>
		<title>dedecms_5.7图集上传图片的时候弹出302提示的解决办法</title>
		<link>https://www.yunda51.com/?p=1524</link>
		<comments>https://www.yunda51.com/?p=1524#comments</comments>
		<pubDate>Mon, 30 Mar 2015 01:44:29 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[dedecms]]></category>
		<category><![CDATA[图片集]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1524</guid>
		<description><![CDATA[解决办法是： 在include/userlogin.class.php文件中的第二行session_start<a href="https://www.yunda51.com/?p=1524" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>解决办法是：<br />
在include/userlogin.class.php文件中的第二行session_start();前加上</p>
<p>	if (isset($_POST["PHPSESSID"])) {</p>
<p>	session_id($_POST["PHPSESSID"]);</p>
<p>	} else if (isset($_GET["PHPSESSID"])) {</p>
<p>	session_id($_GET["PHPSESSID"]);</p>
<p>	}</p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1524</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>dedecms5.7阅读全文功能开发图文教程</title>
		<link>https://www.yunda51.com/?p=1369</link>
		<comments>https://www.yunda51.com/?p=1369#comments</comments>
		<pubDate>Thu, 04 Sep 2014 02:10:18 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1369</guid>
		<description><![CDATA[阅读全文功能其实在很多的流行站点都有的，比如网易,新浪等，随着文章内容的增加，当一个页面有多个分页的时候，就会<a href="https://www.yunda51.com/?p=1369" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>阅读全文功能其实在很多的流行站点都有的，比如网易,新浪等，随着文章内容的增加，当一个页面有多个分页的时候，就会显示出这个“在本页阅读全文”的链接，点击这个链接之后，出现的，将是这篇文章以没有分页出现的型式。，那么在dedecms5.7如何在文章内容页添加阅读全文功能呢？<br />
如图所示：<a href="http://www.yunda51.com/wp-content/uploads/2014/09/04094944.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2014/09/04094944.jpg" alt="" title="04094944" width="390" height="120" class="alignnone size-full wp-image-1370" /></a><br />
这个阅读全文有什么用呢？说白了，也就是提高用户体验。下面让我们看看，怎么简单现实这个功能。</p>
<p><strong>修改文件：include/arc.archives.class.php</strong></p>
<p>注意：做任何修改前都要备份好原文件。</p>
<p><strong>第一步：打开include/arc.archives.class.php</strong></p>
<p>文件查找：//issystem==-1</p>
<p>往下 大概 145行 找到 $this->Fields['userip'] = $this->addTableRow['userip'];</p>
<p>在下面一行添加：$this->Fields['body2'] = $this->addTableRow['body'];</p>
<p><strong>第二步查找：</strong>$this->dsql->ExecuteNoneQuery("Update `#@__archives` SET ismake=1 WHERE id='".$this->ArcID."'");</p>
<p>在上一行添加以下代码</p>
<pre class="wp-code-highlight prettyprint">
//阅读全文开始
if($this-&gt;TotalPage &gt; 1) {
        //用正则匹配把分页符去掉
	$this-&gt;Fields[&#039;body2&#039;] = preg_replace(&#039;/#p#副标题#e#/U&#039;, &#039;&#039;,$this-&gt;Fields[&#039;body2&#039;]);
	$this-&gt;SplitFields = explode(&quot;#p2222#&quot;,$this-&gt;Fields[&#039;body2&#039;]);
	$this-&gt;Fields[&#039;tmptitle&#039;] = (empty($this-&gt;Fields[&#039;tmptitle&#039;]) ? $this-&gt;Fields[&#039;title&#039;] : $this-&gt;Fields[&#039;tmptitle&#039;]);
	$this-&gt;Fields[&#039;title&#039;] = $this-&gt;Fields[&#039;tmptitle&#039;];
	$this-&gt;TotalPage = count($this-&gt;SplitFields);
	$this-&gt;Fields[&#039;totalpage&#039;] = $this-&gt;TotalPage;
	$TRUEfilenameall = $this-&gt;GetTruePath().$fileFirst.&quot;_all.&quot;.$this-&gt;ShortName;
	$this-&gt;ParseDMFields(1,0);
	$this-&gt;dtp-&gt;SaveTo($TRUEfilenameall);
					  
	if($cfg_remote_site==&#039;Y&#039; &amp;&amp; $isremote == 1)
	{
				   
		//分析远程文件路径
		$remotefile = str_replace(DEDEROOT, &#039;&#039;, $TRUEfilename);
		$localfile = &#039;..&#039;.$remotefile;
		//创建远程文件夹
		$remotedir = preg_replace(&quot;#[^\/]*\.html#&quot;, &#039;&#039;, $remotefile);
		$this-&gt;ftp-&gt;rmkdir($remotedir);
		$this-&gt;ftp-&gt;upload($localfile, $remotefile, &#039;ascii&#039;);
	}
}
//阅读全文结束
</pre>
<p><strong>第三步：查找 获得静态页面分页列表</strong></p>
<pre class="wp-code-highlight prettyprint">
    /**
     *  获得静态页面分页列表
     *
     * @access    public
     * @param     int   $totalPage  总页数
     * @param     int   $nowPage  当前页数
     * @param     int   $aid  文档id
     * @return    string
     */
      function GetPagebreak($totalPage, $nowPage, $aid)
    {
        if($totalPage==1)
        {
            return &quot;&quot;;
        }
        //$PageList = &quot;&lt;li&gt;&lt;a&gt;共&quot;.$totalPage.&quot;页: &lt;/a&gt;&lt;/li&gt;&quot;;
        $PageList = &quot;&quot;;
        $nPage = $nowPage-1;
        $lPage = $nowPage+1;
        if($nowPage==1)
        {
            $PageList.=&quot;&lt;a href=&#039;javascript:void(0);&#039;&gt;&lt;&lt;/a&gt;&quot;;
        }
        else
        {
            if($nPage==1)
            {
                $PageList.=&quot;&lt;a href=&#039;&quot;.$this-&gt;NameFirst.&quot;.&quot;.$this-&gt;ShortName.&quot;&#039; target=&#039;_self&#039;&gt;&lt;&lt;/a&gt;&quot;;
            }
            else
            {
                $PageList.=&quot;&lt;a href=&#039;&quot;.$this-&gt;NameFirst.&quot;_&quot;.$nPage.&quot;.&quot;.$this-&gt;ShortName.&quot;&#039; target=&#039;_self&#039;&gt;&lt;&lt;/a&gt;&quot;;
            }
        }
        for($i=1;$i&lt;=$totalPage;$i++)
        {
            if($i==1)
            {
                if($nowPage!=1)
                {
                    $PageList.=&quot;&lt;a href=&#039;&quot;.$this-&gt;NameFirst.&quot;.&quot;.$this-&gt;ShortName.&quot;&#039; target=&#039;_self&#039;&gt;1&lt;/a&gt;&quot;;
                }
                else
                {
                    $PageList.=&quot;&lt;a class=\&quot;here\&quot; href=&#039;javascript:void(0);&#039; target=&#039;_self&#039;&gt;1&lt;/a&gt;&quot;;
                }
            }
            else
            {
                $n = $i;
                if($nowPage!=$i)
                {
                    $PageList.=&quot;&lt;a href=&#039;&quot;.$this-&gt;NameFirst.&quot;_&quot;.$i.&quot;.&quot;.$this-&gt;ShortName.&quot;&#039; target=&#039;_self&#039;&gt;&quot;.$n.&quot;&lt;/a&gt;&quot;;
                }
                else
                {
                    $PageList.=&quot;&lt;a class=\&quot;here\&quot; href=&#039;javascript:void(0);&#039; target=&#039;_self&#039;&gt;{$n}&lt;/a&gt;&quot;;
                }
            }
        }
        if($lPage &lt;= $totalPage)
        {
            $PageList.=&quot;&lt;a href=&#039;&quot;.$this-&gt;NameFirst.&quot;_&quot;.$lPage.&quot;.&quot;.$this-&gt;ShortName.&quot;&#039; target=&#039;_self&#039;&gt;&gt;&lt;/a&gt;&quot;;
        }
        else
        {
            $PageList.= &quot;&lt;a href=&#039;javascript:void(0);&#039;&gt;&gt;&lt;/a&gt;&quot;;
        }
           $PageList.= &quot;&lt;a href=&#039;&quot;.$this-&gt;NameFirst.&quot;_all.&quot;.$this-&gt;ShortName.&quot;&#039;&gt;阅读全文&lt;/a&gt;&quot;;
        return $PageList;
    }
</pre>
<div class="buy shortcodestyle">
也就是在return $PageList 上一行添加了一行代码，
<pre class="wp-code-highlight prettyprint"> $PageList.= &quot;&lt;a href=&#039;&quot;.$this-&gt;NameFirst.&quot;_all.&quot;.$this-&gt;ShortName.&quot;&#039;&gt;阅读全文&lt;/a&gt;&quot;;</pre>
<p>修改完成后，保存文件，更新一下页面就可以看到效果了。
</p></div>
<p>转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/1369.html">http://www.yunda51.com/1369.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1369</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>dede5.7如何添加自定义字段名的方法</title>
		<link>https://www.yunda51.com/?p=1108</link>
		<comments>https://www.yunda51.com/?p=1108#comments</comments>
		<pubDate>Fri, 15 Nov 2013 02:07:36 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[dedecms]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1108</guid>
		<description><![CDATA[用织梦系统做网站时，有些东西模板里面没有，但是织梦的功能是强大，你可以自己在后台添加需要的内容，自定义字段名，<a href="https://www.yunda51.com/?p=1108" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>用织梦系统做网站时，有些东西模板里面没有，但是织梦的功能是强大，你可以自己在后台添加需要的内容，自定义字段名，就是经常用的一个功能，比如：给商品定义一个价格，或者给发表的文章定义一个作者的联系QQ等，都可以通过“自定义字段名”来实现，下面给大家讲如何添加自定义字段！<br />
如图所示:<br />
<strong>第一步：进入dede安装后台---&gt; 点击：核心---&gt; 找到：频道管理-内容模型管理---&gt;</strong><br />
<a href="http://www.yunda51.com/wp-content/uploads/2013/11/0011.gif"><img class="alignnone size-full wp-image-1116" title="001" src="http://www.yunda51.com/wp-content/uploads/2013/11/0011.gif" alt="" width="226" height="260" /></a><br />
<strong>第二步，普通文章里面的“编辑”按钮---&gt;</strong><br />
<a href="http://www.yunda51.com/wp-content/uploads/2013/11/0021.gif"><img class="alignnone size-full wp-image-1118" title="002" src="http://www.yunda51.com/wp-content/uploads/2013/11/0021.gif" alt="" width="272" height="26" /></a><br />
<strong>第三步，点击“字段管理”---&gt;点击“添加新字段”---&gt;</strong><br />
<a href="http://www.yunda51.com/wp-content/uploads/2013/11/0031.gif"><img class="alignnone size-full wp-image-1119" title="003" src="http://www.yunda51.com/wp-content/uploads/2013/11/0031.gif" alt="" width="574" height="185" /></a><br />
<strong>第四步，更改字段名里面的相对应的内容： 1、表单提示文字：网站地址 2、字段名称：siteurl 3、字段类型：默认 4、前台参数：选取第一个5、数据类型 单行文本,后面的默认即可。</strong><br />
<a href="http://www.yunda51.com/wp-content/uploads/2013/11/0041.gif"><img class="alignnone size-full wp-image-1120" title="004" src="http://www.yunda51.com/wp-content/uploads/2013/11/0041.gif" alt="" width="459" height="363" /></a></p>
<p><a href="http://www.yunda51.com/wp-content/uploads/2013/11/0051.gif"><img class="alignnone size-full wp-image-1121" title="005" src="http://www.yunda51.com/wp-content/uploads/2013/11/0051.gif" alt="" width="528" height="376" /></a><br />
<strong>查看结果：</strong><br />
<a href="http://www.yunda51.com/wp-content/uploads/2013/11/0061.gif"><img class="alignnone size-full wp-image-1122" title="006" src="http://www.yunda51.com/wp-content/uploads/2013/11/0061.gif" alt="" width="579" height="301" /></a><br />
转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/1108.html">http://www.yunda51.com/1108.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1108</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>dedecms后台如何修改密码</title>
		<link>https://www.yunda51.com/?p=1040</link>
		<comments>https://www.yunda51.com/?p=1040#comments</comments>
		<pubDate>Mon, 11 Nov 2013 03:05:17 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[dedecms]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1040</guid>
		<description><![CDATA[我们在使用dedecms的时候，大多数人安装的时候密码都是admin，最后安装成功之后，本以为可以从后台或者数<a href="https://www.yunda51.com/?p=1040" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>我们在使用dedecms的时候，大多数人安装的时候密码都是admin，最后安装成功之后，本以为可以从后台或者数据库里面修改，但是出乎意料的是未能修改成功，这导致后台很不安全！本工具是用于新人忘记管理员密码重设所制作，只需要将radminpass.php文件拷贝到根目录，运行“http://yousite/radminpass.php（yousite为你的网站域名）”，按照操作执行就可以。恢复完成后请及时删除这个文件! 大家可以点击下载，里面GBK和UTF-8都有,如果你安装dede的时候是GBK版本，那你就用GUK文件下的radminpass.php,反之就用UTF-8文件下的radminpass.php！<br />
<a href="http://pan.baidu.com/s/13RIb5" target="&quot;_blank"><img src="http://www.yunda51.com/wp-content/uploads/2013/11/btn_load3.png" alt="" title="btn_load" width="86" height="28" class="alignnone size-full wp-image-1075" /></a><br />
转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/1040.html">http://www.yunda51.com/1040.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1040</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dede织梦系统的一键清空回收站以及批量删除所有文章方法</title>
		<link>https://www.yunda51.com/?p=1002</link>
		<comments>https://www.yunda51.com/?p=1002#comments</comments>
		<pubDate>Wed, 04 Sep 2013 01:53:14 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[dedecms]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=1002</guid>
		<description><![CDATA[最近搞dede采集，提前织梦相信大家都不陌生，我在第一次搞采集的时候，由于不会写规则，并且也不是单独的采集一篇<a href="https://www.yunda51.com/?p=1002" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>最近搞dede采集，提前织梦相信大家都不陌生，我在第一次搞采集的时候，由于不会写规则，并且也不是单独的采集一篇文章，而是列表里的文章一次性全部采集，等导出数据的时候，我和小伙伴都惊呆了，采集过来的新闻几乎都是缺胳膊少腿，刚开始也是一篇一篇的删，很是恼火，然而，下面这SQL语句却帮了我大忙，一次性把回收站都清空了。<br />
　　希望对于和我有同样遭遇的人士有帮助，附上语句：<br />
　　<strong>方法</strong>：<br />
　　后台->系统->SQL命令行工具 中运行：<br />
　
<div class="buy shortcodestyle">
　delete dede_addonarticle,dede_archives,dede_arctiny from dede_addonarticle,dede_archives,dede_arctiny where dede_addonarticle.aid=dede_archives.id and dede_arctiny.id=dede_archives.id and dede_archives.arcrank='-2'
</div>
<p> 但是我想删除栏目下的所有文章怎么删除呢？相信大家也遇到过这种情况，步骤如下：<br />
 进入后台-->核心-->批量维护-->文档批量维护<br />
如图所示：<a href="http://www.yunda51.com/wp-content/uploads/2013/09/2211.jpg"><img src="http://www.yunda51.com/wp-content/uploads/2013/09/2211.jpg" alt="" title="2211" width="721" height="221" class="alignnone size-full wp-image-1003" /></a><br />
点击删除文档，至此步骤完成！<br />
转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/891.html">http://www.yunda51.com/1002.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=1002</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Dedecms后台更新出现Fatal error: Maximum execution time of 30 seconds exceeded in解决办法</title>
		<link>https://www.yunda51.com/?p=996</link>
		<comments>https://www.yunda51.com/?p=996#comments</comments>
		<pubDate>Wed, 28 Aug 2013 06:17:33 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[dedecms]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=996</guid>
		<description><![CDATA[在服务器中找到php.ini这个文件 修改max_execution_time = 30 max_execut<a href="https://www.yunda51.com/?p=996" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>在服务器中找到php.ini这个文件</p>
<p>修改max_execution_time = 30</p>
<p>max_execution_time = 30 ; 这个是每个脚本运行的最长时间，可以自己修改加长，单位秒</p>
<p>为：max_execution_time = 300</p>
<p>然后重起mysql服务</p>
<p>在运行里输入：</p>
<p>net stop MySQL 停止mysql服务</p>
<p>net start MySQL开始mysql服务器</p>
<p>然后再进入dedecms进行更新生成就Ok了！<br />
转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/891.html">http://www.yunda51.com/996.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=996</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dedecms后台栏目管理处显示未审核文档的数量</title>
		<link>https://www.yunda51.com/?p=952</link>
		<comments>https://www.yunda51.com/?p=952#comments</comments>
		<pubDate>Tue, 23 Jul 2013 07:02:59 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[dedecms]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=952</guid>
		<description><![CDATA[最近弄dedecms，后台未审核的文档很多，发表新闻的时候也不知道有多少审核了，多少没审核，还得自己动手去查看<a href="https://www.yunda51.com/?p=952" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>最近弄dedecms，后台未审核的文档很多，发表新闻的时候也不知道有多少审核了，多少没审核，还得自己动手去查看每个栏目，很麻烦的，所就动手修改了一下默认的.修改后的效果图所示（红色的数字则是未审核的数，后面的 图 和 文 点击后会在新窗口打开 该栏目的未审核文档列表）：<br />
<a href="http://www.yunda51.com/wp-content/uploads/2013/07/dede.jpg" target="_blank"><img class="alignnone size-full wp-image-953" title="dede" src="http://www.yunda51.com/wp-content/uploads/2013/07/dede.jpg" alt="" width="340" height="113" /></a><br />
好吧那么就动手修改吧,修改方法如下：<br />
首先打开/include/typeunit.class.admin.php文件<br />
<strong>找到</strong><br />
<font color="purple">function ListAllType</font><br />
在上面加上以面的代码：</p>
<pre class="wp-code-highlight prettyprint">
//获取所有栏目的未审核文档ID数
function UpdateCatalogNumw()
{
    $this-&amp;gt;dsql-&amp;gt;SetQuery(&quot;SELECT typeid,count(typeid) as dd FROM `dede_arctiny` 
    where arcrank =-1 group by typeid&quot;);
    $this-&amp;gt;dsql-&amp;gt;Execute();
    while($row = $this-&amp;gt;dsql-&amp;gt;GetArray())
    {
       $this-&amp;gt;CatalogNumsw[$row[&#039;typeid&#039;]] = $row[&#039;dd&#039;];
    }
}
function GetTotalArcw($tid)
{
     if(!is_array($this-&amp;gt;CatalogNumsw))
     {
         $this-&amp;gt;UpdateCatalogNumw();
     }
     if(!isset($this-&amp;gt;CatalogNumsw[$tid]))
     {
         return &quot;&quot;;
     }
     else
     {
         $totalnum = 0;
         $ids = explode(&#039;,&#039;,GetSonIds($tid));
         foreach($ids as $tid)
     {
         if(isset($this-&amp;gt;CatalogNumsw[$tid]))
     {
         $totalnum += $this-&amp;gt;CatalogNumsw[$tid];
     }
   }
         return &quot; | &amp;lt;font color=red&amp;gt;&quot;.$totalnum.&quot;&amp;lt;/font&amp;gt; | &amp;lt;
         a href=&#039;content_i_list.php?arcrank=-1&amp;amp;cid=&quot;.$tid.&quot;&#039;&amp;gt;图&amp;lt;/a&amp;gt; | &amp;lt;
         a href=&#039;content_list.php?arcrank=-1&amp;amp;cid=&quot;.$tid.&quot;&#039;&amp;gt;文&amp;lt;/a&amp;gt;&quot;;
  }
}
</pre>
<p><strong>然后找到：<font color='purple'>$this-&gt;GetTotalArc($id).</font>将之替换为<font color='purple'>$this-&gt;GetTotalArc($id).$this-&gt;GetTotalArcw($id).</font>（<strong>主要有多个地方需要修改</strong>）</strong></p>
<p>好了，你可以刷新页面就可以看到效果了（<strong>前提是必须有未审核的文章，否则你看不到效果</strong>）!</p>
<p>转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/952.html">http://www.yunda51.com/952.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=952</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>如何把dedecms数据生成json</title>
		<link>https://www.yunda51.com/?p=928</link>
		<comments>https://www.yunda51.com/?p=928#comments</comments>
		<pubDate>Thu, 20 Jun 2013 07:34:41 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[dedecms]]></category>
		<category><![CDATA[json]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=928</guid>
		<description><![CDATA[最近搞dede搞得头大，长话短说！ 名称：json数据调用 功能：调用某个远程连接的json接口，方便同远程站<a href="https://www.yunda51.com/?p=928" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>最近搞dede搞得头大，长话短说！</p>
<p><strong>名称：</strong>json数据调用</p>
<p><strong>功能：</strong>调用某个远程连接的json接口，方便同远程站点之间进行通信来调取内容</p>
<p><strong>语法：</strong></p>
<div class="buy shortcodestyle">{dede:json url='http://news/json.php' cache=300}<br />
[field:id/]-[field:title/]&lt;br/&gt;<br />
{/dede:json}<br />
<strong>你可以把这段代码扔到你想要调用的地方就ok了！</strong></div>
<p>cache=300 缓存时间，0为不缓存</p>
<p>我们首先编写一个简单的服务器端API，将其存放在系统根目录/api下（也可以直接建立个json.php），<br />
由于系统是GB2312编码，所以服务端编写的时候我们进行了一些编码转换的处理，保证服务端访问的编码是UTF-8就可以。</p>
<p><strong>代码如下：</strong></p>
<div class="buy shortcodestyle">&lt;?php<br />
$cfg_NotPrintHead = false;<br />
header("Content-Type: text/html; charset=utf-8");<br />
include_once (dirname(__FILE__)."/../include/common.inc.php");<br />
error_reporting(E_ALL || ~E_NOTICE);<br />
require_once(DEDEINC.'/json.class.php');<br />
$reval = array();<br />
$dsql-&gt;SetQuery("SELECT id,title FROM `#@__archives` ORDER BY id DESC LIMIT 0,10");<br />
$dsql-&gt;Execute('me');<br />
while ($row = $dsql-&gt;GetArray('me')) {<br />
$row['title'] = gb2utf8($row['title']);<br />
$reval[] = $row;<br />
}<br />
$json = new Services_JSON(SERVICES_JSON_SUPPRESS_ERRORS);<br />
echo $json-&gt;encode($reval);</div>
<div class="buy shortcodestyle">?&gt;</div>
<p>转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a> 原文地址：<a href="http://www.yunda51.com/928.html">http://www.yunda51.com/928.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=928</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>dedecms自定义表单加入验证码及必填项的实现</title>
		<link>https://www.yunda51.com/?p=915</link>
		<comments>https://www.yunda51.com/?p=915#comments</comments>
		<pubDate>Wed, 22 May 2013 09:01:16 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[dedecms]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=915</guid>
		<description><![CDATA[加入验证码： 织梦dedecms网站给自定义表单加dede模板自带验证码的方法。 有时候，我们因为需要给ded<a href="https://www.yunda51.com/?p=915" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p><strong>加入验证码：</strong></p>
<p>织梦dedecms网站给自定义表单加dede模板自带验证码的方法。</p>
<p>有时候，我们因为需要给dede网站的自定义表单添加验证码，防止恶意填写表单提交。</p>
<p>我们可以用以下的方法来实现：</p>
<div class="buy shortcodestyle">
<p>首先，我们要找到 /plus/diy.php 这个文件</p>
<p>在头部引入文件：</p>
<p>require_once(DEDEINC.'/membermodel.cls.php');</p>
<p>然后找到</p>
<p>elseif($do == 2)</p>
<p>{  在这个地方加入代码块</p>
<p>//验证码验证</p>
<p>$svali = GetCkVdValue();</p>
<p>if(preg_match("/1/",$safe_gdopen)){</p>
<p>if(strtolower($vdcode)!=$svali || $svali=='')</p>
<p>{</p>
<p>ResetVdValue();</p>
<p>ShowMsg('验证码错误！', '-1');</p>
<p>exit();</p>
<p>}</p>
<p>}</p>
<p>修改好后保存一下文件。</p>
<p>第二步：在使用验证码的自定义表单静态页面中插入代码块</p>
<p>&lt;input type="text" style="width: 50px; text-transform: uppercase;" id="vdcode" name="vdcode"/&gt;</p>
<p>&lt;img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清？点击更换" src="/include/vdimgck.php"/&gt; 看不清？ &lt;a href="javascript:void(0)" onclick="changeAuthCode();"&gt;点击更换&lt;/a&gt;</p>
<p>在这个静态页面里还得引用JQuery</p>
<p>再加入 JS代码块</p>
<p>&lt;script type="text/javascript"&gt;<br />
$ = jQuery;<br />
function changeAuthCode() {<br />
var num = new Date().getTime();<br />
var rand = Math.round(Math.random() * 10000);<br />
num = num + rand;<br />
$('#ver_code').css('visibility','visible');<br />
if ($("#vdimgck")[0]) {<br />
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;<br />
}<br />
return false;<br />
}<br />
&lt;/script&gt;</p>
<p>好了，现在试一试，是不是可以实现验证码的提交了？一个简单的dedecms自定义表单dede模板自带验证码的功能就实现了。</p>
</div>
<p><strong>必填项的实现：</strong></p>
<div class="buy shortcodestyle">1、先在要发布表单的模板上加&lt;script src='你的路径/js.js' type="text/javascript"&gt;&lt;/script&gt;；<br />
2、在你自定义的路径新建文件js.js，然后复制以下内容粘贴保存；代码:<br />
&lt;!--<br />
$(document).ready(function()<br />
{<br />
//验证<br />
$('#complain').submit(function ()<br />
{<br />
if($('#name').val()==""){<br />
$('#name').focus();<br />
alert("用户名不能为空！");<br />
return false;<br />
}<br />
if($('#tel').val()=="")<br />
{<br />
$('#tel').focus();<br />
alert("联系电话不能为空！");<br />
return false;<br />
}<br />
if($('#title').val()=="")<br />
{<br />
$('#title').focus();<br />
alert("标题不能为空！");<br />
return false;<br />
}<br />
if($('#text').val()=="")<br />
{<br />
$('#text').focus();<br />
alert("具体内容不能为空！");<br />
return false;<br />
}<br />
})</p>
<p>});<br />
--&gt;</p>
<p>注：<br />
$('#complain').submit(function ()　　//complain为自定义表单的ID，如果生成的表单没有可以自行加上，即 id="complain"<br />
if($('#name').val()==""){<br />
$('#name').focus();　　　　　　　　//#name为要验证表单中的ID，如想让用户名不能为空， 在后台用户名的数据字段名设为name，下同<br />
3、设置好后更新就可以看到效果了。
</p></div>
<p>转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/915.html">http://www.yunda51.com/915.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=915</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>dedeCms后台模块管理空白或不显示的解决办法</title>
		<link>https://www.yunda51.com/?p=910</link>
		<comments>https://www.yunda51.com/?p=910#comments</comments>
		<pubDate>Mon, 20 May 2013 06:19:43 +0000</pubDate>
		<dc:creator><![CDATA[运达]]></dc:creator>
				<category><![CDATA[Dedecms]]></category>
		<category><![CDATA[php技术]]></category>
		<category><![CDATA[dedecms]]></category>

		<guid isPermaLink="false">http://www.yunda51.com/?p=910</guid>
		<description><![CDATA[dedeCms后台模块管理中模块列表不显示的现象如下图： 解决办法： 如果之前有备份网站程序的话，直接在备份程<a href="https://www.yunda51.com/?p=910" class="read-more">Continue Reading</a>]]></description>
				<content:encoded><![CDATA[<p>dedeCms后台模块管理中模块列表不显示的现象如下图：</p>
<p><a href="http://www.yunda51.com/wp-content/uploads/2013/05/22.jpg"><img class="alignnone size-full wp-image-911" title="22" src="http://www.yunda51.com/wp-content/uploads/2013/05/22.jpg" alt="" width="500" height="162" /></a></p>
<p><strong>解决办法：</strong></p>
<p>如果之前有备份网站程序的话，直接在备份程序中按照以下途径找到以下文件夹：</p>
<blockquote><p>data/module</p></blockquote>
<p>复制里面所有文件后，粘贴到程序里面的相同的文件夹里面，覆盖所有文件。</p>
<p>PS：如果没有备份网站，到dedecms官网下载一个与你的版本相同的源程序，按照上面的方法同样覆盖文件，然后更新缓存就可以了。</p>
<p><strong>dedeCms后台模块管理空白现象如下图：</strong></p>
<p><a href="http://www.yunda51.com/wp-content/uploads/2013/05/344.jpg"><img class="alignnone size-full wp-image-912" title="344" src="http://www.yunda51.com/wp-content/uploads/2013/05/344.jpg" alt="" width="500" height="344" /></a></p>
<p><strong>解决办法：</strong></p>
<p>这是因为你 安装模块，然后又卸载模块，卸载的时候选择了删除安装文件，就会出这个问题。下载个和你网站相同版本的DEDE程序，然后找到include/dedemodule.class.php，把这个文件上传到你的网站目录下你会发出不会提示覆盖，估计是一起删了，也算是一个BUG吧。<br />
一切OK。模块管理再也不是空白了。<br />
转载请注明转自:<a href="http://www.yunda51.com">运达's blog</a>  原文地址：<a href="http://www.yunda51.com/910.html">http://www.yunda51.com/910.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.yunda51.com/?feed=rss2&#038;p=910</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
