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

<channel>
	<title>癫狂蚊子的痴狂世界 &#187; dede</title>
	<atom:link href="http://www.askgame.com.cn/index.php/game/tag/dede/feed" rel="self" type="application/rss+xml" />
	<link>http://www.askgame.com.cn</link>
	<description>一切对我而言都是游戏! Everything is Game!</description>
	<lastBuildDate>Thu, 02 Feb 2012 05:58:50 +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>DEDECMS中对发布人的修改</title>
		<link>http://www.askgame.com.cn/index.php/game/352</link>
		<comments>http://www.askgame.com.cn/index.php/game/352#comments</comments>
		<pubDate>Thu, 17 Jun 2010 15:52:06 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[dede]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=352</guid>
		<description><![CDATA[需求:因为我们的网站(oemay女人妆)中的新闻基本都是采集的,但是因为采集的都是发布人都是同一人,而我们为了能更好的统计编辑工作业绩,希望在采编进行审核和二次编辑并发布的时候,将发布人替换成为采编的信息.简单的说,就是希望实现谁审核,发布人就是谁的效果 关键点: 1.在DEDE的数据库中的文档主表为dede_archives,其中mid字段为发布人字段,类型为mediumint(8) 2.DEDE的文章列表中审核,生成,推荐等操作的相关文件dede/archives_do.php 3.类userlogin中的getUserID方法可以获取当前编辑的ID号 修改方法存档: 找到dede/archives_do.php的225行,在下方找到 $maintable = ( trim($row['maintable'])=='' ? '#@__archives' : trim($row['maintable']) ); if($dsql->ExecuteNoneQuery("Update `#@__arctiny` set arcrank='0' where id='$aid' ")) { $dsql->ExecuteNoneQuery("Update `#@__taglist` set arcrank='0' where aid='$aid' "); } if($row['issystem']==-1) { $dsql->ExecuteNoneQuery("Update `".trim($row['addtable'])."` set arcrank='0' where aid='$aid' "); } else { $dsql->ExecuteNoneQuery("Update `$maintable` set arcrank='0', dutyadmin='".$cuserLogin->getUserID()."' where id='$aid' "); } $pageurl = [...]]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/352/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dede中设置水印无效的解决办法</title>
		<link>http://www.askgame.com.cn/index.php/game/327</link>
		<comments>http://www.askgame.com.cn/index.php/game/327#comments</comments>
		<pubDate>Thu, 29 Apr 2010 14:03:23 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[我的代码世界]]></category>
		<category><![CDATA[dede]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=327</guid>
		<description><![CDATA[虽然很喜欢用DEDE，但是DEDE还是有很多地方确实没有注意，设置水印无效是一个老问题了，刚刚发布的5.6里面还是没有解决，我们还是来看看解决的办法吧 方法一：选左侧的“系统”&#8212;-图片水印设置&#8212;-在右侧的“DedeCms系统配置参数 &#8211; 图片水印设置”的“添加水印的图片大小控制（设置为0为不限）：”中设置“宽：0”，“高：0”，再点“确定”，这种方法的弊端是只是让水印消失，实际上关闭水印还是可以的； 方法二：找到水印图片位置/data/mark/mark.png，上传新的水印图片将原图片替换。]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/327/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php中base64_encode()加密和DEDEEIMS的更改数据表前缀</title>
		<link>http://www.askgame.com.cn/index.php/game/315</link>
		<comments>http://www.askgame.com.cn/index.php/game/315#comments</comments>
		<pubDate>Sat, 30 Jan 2010 15:59:38 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[base64]]></category>
		<category><![CDATA[dede]]></category>
		<category><![CDATA[eims]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=315</guid>
		<description><![CDATA[今天在使用DEDE做的EIMS的时候，出现了一个小问题，当我更改其数据表前缀后，添加新闻报错，找不到dede_archives表，我以为是程序的问题，找了半天，在程序中始终无法找到问题所在，就快要疯了的时候，总算在数据库当中找到了原因，在dede_channeltype中有个maintable的字段，这个字段默认为dede_archives，如果你更改了数据表前缀，当然就找不到dede_archives这个表了，于是程序出错。 找到原因，马上开始弄，本以为在安装时的sql语句文件中能方便的进行修改，但未想到dede对sql语句使用MIME base64 进行了编码，一下无语，只好把SQL语句加在了程序当中。搞定。 心得如下： 1.php中的base64_decode()和base64_encode()方法可以对数据进行MIME base64的编码，Base64是网络上最常见的用于传输8Bit字节代码的编码方式之一，可用于在HTTP环境下传递较长的标识信息，例如电子邮件的主体。decode为解码，encode为编码。 示例： //来源于PHP手册 $str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw=='; echo base64_decode($str); //This is an encoded string 2.DEDE EIMS中当用户更改了数据表前缀后，在添加新闻动态等出现找不到表的错误提示时的修改方法。 打开install下面的index.php在约228行左右找到： $cquery = "Update `{$dbprefix}sysconfig` set value='{$dfstyle}' where varname='cfg_df_style';"; mysql_query($cquery,$conn); 在其后面添加如下代码： //更新自定义模型中的主表数据 --by 癫狂蚊子 2010年1月30日 $cquery = "Update `{$dbprefix}channeltype` set maintable='{$dbprefix}archives' where maintable='dede_archives';"; mysql_query($cquery,$conn); //更新自定义模型中的主表默认的主表名 --by 癫狂蚊子 2010年1月30日 $cquery = "alter table `{$dbprefix}channeltype` alter [...]]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/315/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>dedeeims中搜索实现指定栏目搜索</title>
		<link>http://www.askgame.com.cn/index.php/game/310</link>
		<comments>http://www.askgame.com.cn/index.php/game/310#comments</comments>
		<pubDate>Tue, 26 Jan 2010 16:04:23 +0000</pubDate>
		<dc:creator>癫狂蚊子</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[dede]]></category>
		<category><![CDATA[eims]]></category>
		<category><![CDATA[搜索]]></category>

		<guid isPermaLink="false">http://www.askgame.com.cn/?p=310</guid>
		<description><![CDATA[今天洗了澡回来（PS：为什么有人能洗一个多小时？？？），老鬼就问我一个问题，在DEDE的EIMS中搜索功能搜索结果出来的是全部的文章，而老鬼想要的效果是搜索结果只出现产品中的结果，DEDE的EIMS应该说是一款很好用的自主建站，企业建设网站的很好用的工具，觉得应该有这个功能，于是下载，解压，研究，搞定。 dedeeims中搜索实现指定栏目搜索的过程方法如下 DEDEEIMS搜索主要在plus/search.php这个页面，页面中发现其提供了$typeid及$channeltype等几个参数，根据使用DEDECMS的经验，这两个名字应该是栏目ID和模型ID，而在实例化搜索的SearchView类时，也将这两个参数传递进去。OK，由此入手，修改方法为(以DEDEEIMS默认的蓝色模板为例)： （用EIMS的新手可以参考下，老手跳过！） 1.在模板目录下修改index.htm（/templets/blue/index.htm） 在表单form里面，增加 其中value里面的4改成你要的栏目ID即可，如果需要多个栏目，那么用英文状态下的,连接起来 2.因为form没有写在header.htm里面，因此还需要参照上面的步骤修改search.htm（/templets/blue/en/search.htm）,大概在23行。]]></description>
		<wfw:commentRss>http://www.askgame.com.cn/index.php/game/310/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

