<?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>52微笑Blog &#187; discuz</title>
	<atom:link href="https://www.52smile.cn/?feed=rss2&#038;tag=discuz" rel="self" type="application/rss+xml" />
	<link>https://www.52smile.cn</link>
	<description>记录生活点滴，分享精彩缤纷！</description>
	<lastBuildDate>Mon, 15 Jun 2015 13:33:12 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Discuz 升级X3问题汇总整理</title>
		<link>https://www.52smile.cn/?p=1242</link>
		<comments>https://www.52smile.cn/?p=1242#comments</comments>
		<pubDate>Wed, 31 Jul 2013 02:39:07 +0000</pubDate>
		<dc:creator><![CDATA[子涛]]></dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[x3问题]]></category>
		<category><![CDATA[升级问题]]></category>

		<guid isPermaLink="false">http://www.52smile.cn/?p=1242</guid>
		<description><![CDATA[<a href="https://www.52smile.cn/?p=1242"><img width="640" height="225" src="http://www.52smile.cn/wp-content/uploads/2013/07/discuz-x3wentizhenglifengmian.jpg" class="attachment-post-thumbnail wp-post-image" alt="discuz-x3wentizhenglifengmian" itemprop="image" lazyload="1" /></a>最近一段时间公司的社区垃圾帖数量陡然上涨，以至于社区首页的推荐版块满满都是垃圾帖的身影，为了进一步解决垃圾帖问题我们整整花了1天时间删垃圾贴，清除不良用户，删的手都酸了，可见垃圾帖的数量之多！可耻的刷帖机，可恶的发广告的人，因此我们决定增大discuz的验证机制，并进一步重新完善用户的权限，从注册、登录开始着手，志在清]]></description>
				<content:encoded><![CDATA[<a href="https://www.52smile.cn/?p=1242"><img width="640" height="225" src="http://www.52smile.cn/wp-content/uploads/2013/07/discuz-x3wentizhenglifengmian.jpg" class="attachment-post-thumbnail wp-post-image" alt="discuz-x3wentizhenglifengmian" itemprop="image" lazyload="1" /></a><p>最近一段时间公司的社区垃圾帖数量陡然上涨，以至于社区首页的推荐版块满满都是垃圾帖的身影，为了进一步解决垃圾帖问题我们整整花了1天时间删垃圾贴，清除不良用户，删的手都酸了，可见垃圾帖的数量之多！可耻的刷帖机，可恶的发广告的人，因此我们决定增大discuz的验证机制，并进一步重新完善用户的权限，从注册、登录开始着手，志在清除一切隐患，同时对discuz X2.5进行了升级！因为经常光顾官方论坛，所以对discuz x3.0的关注度还是比较高的，由于之前x3 beta版bug太多，所以一直没敢冒险升级，随着x3的逐步完善，再加上有重新调整社区的意思所以这次对社区进行了升级工作！</p>
<p>即便是已经比较完善的X3.0，但是还是有一些问题存在，所以发此贴来告之其他朋友！</p>
<p><strong>注意：【本内容以自动升级为准】升级的过程中需要关闭站点，自动升级需要下载数据，所以要开启网站的目录权限，data目录要777！</strong></p>
<p>1、在社区后台自动升级过程中提示 “/static/image/postbg/3.jpg”无法从服务器下载成功！</p>
<p>解决方法：找到文件 source/admincp/admincp_upgrade.php</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp;<span style="color: #000088;">$offset</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">100</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">1024</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//替换为</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000088;">$offset</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>2、升级完毕后发现搜索框变形！</p>
<p>图列：</p>
<p><img src="http://att.discuz.net/data/attachment/forum/201305/29/101029pqb0qq09m0mziqwl.png.thumb.jpg"/></p>
<p>解决办法： 进入后台  界面&#8211;>风格管理&#8212;>点击“更新CSS缓存” 之后清除浏览器缓存查看！</p>
<p>3、贴子内容页 QQ分享显示乱码！</p>
<p>图列</p>
<p><img src="http://att.discuz.net/data/attachment/forum/201306/15/194149dpv9pp39yhzhpbly.jpg.thumb.jpg"/></p>
<p>解决方法：</p>
<p>第一步：进入discuz后台 站长&#8211;>数据库&#8211;>升级</p>
<p>复制下面两行命令：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">delete from `pre_common_plugin` where `identifier`<span style="color: #339933;">=</span> <span style="color: #0000ff;">'qqconnect'</span><span style="color: #339933;">;</span><br />
delete from `pre_common_setting` where `skey` <span style="color: #339933;">=</span> <span style="color: #0000ff;">'connect'</span></div></td></tr></tbody></table></div>
<p>按下面方式复制到文本框执行：</p>
<p><img src="http://att.discuz.net/data/attachment/forum/201307/15/234842plvlq3sy3s0iy13v.jpg.thumb.jpg"/></p>
<p><strong>注:如果看不到文本框出现，请先修改配置文件，找到config/config_global.php中的$_config[admincp][runquery] 设置修改为 1</strong></p>
<p>第二步：discuz后台&#8211;>云平台&#8211;>诊断工具  查看最下面的2个错误，点击修复！</p>
<p><img src="http://att.discuz.net/data/attachment/forum/201307/15/234950tpn3hinezogzaeqn.jpg.thumb.jpg"/></p>
<p>修改完毕后查看，是否已经修改完毕！</p>
<p><strong>注：安全期间，第一步中如果修改了配置文件，在修复完毕之后建议修改回之前默认值！</strong></p>
<p><font color=red>整理持续更新中！</font></p>
<p>版权：此内容大部分来源于discuz官方社区，此文为个人整理版！</p>
]]></content:encoded>
			<wfw:commentRss>https://www.52smile.cn/?feed=rss2&#038;p=1242</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Discuz生成手机客户端插件&#8221;appcan&#8221;</title>
		<link>https://www.52smile.cn/?p=651</link>
		<comments>https://www.52smile.cn/?p=651#comments</comments>
		<pubDate>Tue, 16 Oct 2012 03:11:44 +0000</pubDate>
		<dc:creator><![CDATA[子涛]]></dc:creator>
				<category><![CDATA[精彩分享]]></category>
		<category><![CDATA[appcan]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[客户端]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.52smile.cn/?p=651</guid>
		<description><![CDATA[<a href="https://www.52smile.cn/?p=651"><img width="640" height="155" src="http://www.52smile.cn/wp-content/uploads/2012/10/discuzappcanfenmian.jpg" class="attachment-post-thumbnail wp-post-image" alt="discuzappcanfenmian" itemprop="image" lazyload="1" /></a>PS:对于绝大多数选择discuz建站的社区来说，使用discuz的其重要一点是因为discuz的可扩展性和可用插件居多。今天也不列外，为大家介绍一款非常实用的插件:&#8221;appcan社区客户端&#8221;。 首先我们先认识一下appcan: AppCan手机论坛客户端是AppCan为DiscuzX2、X2.]]></description>
				<content:encoded><![CDATA[<a href="https://www.52smile.cn/?p=651"><img width="640" height="155" src="http://www.52smile.cn/wp-content/uploads/2012/10/discuzappcanfenmian.jpg" class="attachment-post-thumbnail wp-post-image" alt="discuzappcanfenmian" itemprop="image" lazyload="1" /></a><p>PS:对于绝大多数选择discuz建站的社区来说，使用discuz的其重要一点是因为discuz的可扩展性和可用插件居多。今天也不列外，为大家介绍一款非常实用的插件:&#8221;appcan社区客户端&#8221;。</p>
<p>首先我们先认识一下appcan:</p>
<p><img class="aligncenter size-full wp-image-652" title="appcaninfo1" src="http://www.52smile.cn/wp-content/uploads/2012/10/appcaninfo1.jpg" alt="" width="650" height="203" /><br />
AppCan手机论坛客户端是AppCan为DiscuzX2、X2.5站点提供的一款iPhone、Android、Symbian手机客户端产品。通过手机客户端，用户可以进行浏览版块、发帖、回帖、收发站内信等基本的社区操作，<br />
还增加了新闻推送及SNS社区互动，更能体验拍照上传、定位交友、微博共享等个性化服务。</p>
<p>站长们可以让您的网站用户安装属于网站自己的手机客户端（可以自定义桌面图标、启动画面、界面风格等个性化配置），方便用户随时随地访问网站,抢占用户的碎片时间。</p>
<p><img class="aligncenter size-full wp-image-653" title="appcaninfo2" src="http://www.52smile.cn/wp-content/uploads/2012/10/appcaninfo2.jpg" alt="" width="650" height="208" /></p>
<p>appcan的快捷、简易、人性化体验！<br />
appcan的discuz插件目前已发布，支持discuz X系列 2.0和2.5版本，只需安装通过一系列设置就可以使用，一步生成3种手机系统客户端，完美支持IOS、安卓、塞班系统！</p>
<div align="left"><strong>◆</strong><span style="font-family: 微软雅黑;"> <strong>独立定制</strong></span></div>
<div align="left"><strong>◆ </strong><span style="font-family: 微软雅黑;"><strong>永久免费</strong></span></div>
<div align="left"><strong>◆ </strong><span style="font-family: 微软雅黑;"><strong>支持</strong><strong>iPhone</strong><strong>、</strong><strong>Android</strong><strong>、</strong><strong>Symbian</strong><strong>三大平台</strong></span></div>
<div align="left"><strong>◆ </strong><span style="font-family: 微软雅黑;"><strong>客户端功能强大</strong></span></div>
<div align="left"><strong>◆</strong><span style="font-family: 微软雅黑;"> <strong>插件定制灵活自如</strong></span></div>
<div align="left"><strong>◆ </strong><span style="font-family: 微软雅黑;"><strong>支持开源开发，满足更多个性化需求</strong></span></div>
<p>AppCan推出IOS混编服务，支持站长生成适用于appstore上传的服务，站长可直接在插件后台重新打包编译。（打包选择IOS平台，可直接配置）<br />
如果您还不知道如何申请appstore的证书，请下载帮助文档。<a href="http://bbs.appcan.cn/forum.php?mod=viewthread&amp;tid=2163&amp;extra">http://bbs.appcan.cn/forum.php?mod=viewthread&amp;tid=2163&amp;extra</a>=</p>
<p>（不能说的秘密：动手能力强的，可以通过APPCAN SDK软件直接编辑客户端的源代码，自己动手编译打造完全属于自己的网站的客户端。）</p>
<p>安装方式：<br />
官网下载：<a href="http://discuz.appcan.cn/download.html">http://discuz.appcan.cn/download.html</a><br />
discuz应用中心，搜索&#8221;appacan&#8221;直接安装<br />
官网地址：<a href="http://www.appcan.cn/">http://www.appcan.cn</a><br />
discuz主页地址：<a href="http://discuz.appcan.cn/">http://discuz.appcan.cn</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.52smile.cn/?feed=rss2&#038;p=651</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>discuzX2.5卸载灯鹭插件后回复框消失问题修复</title>
		<link>https://www.52smile.cn/?p=647</link>
		<comments>https://www.52smile.cn/?p=647#comments</comments>
		<pubDate>Mon, 15 Oct 2012 08:16:53 +0000</pubDate>
		<dc:creator><![CDATA[子涛]]></dc:creator>
				<category><![CDATA[精彩分享]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[回复]]></category>
		<category><![CDATA[框消失]]></category>
		<category><![CDATA[灯鹭]]></category>

		<guid isPermaLink="false">http://www.52smile.cn/?p=647</guid>
		<description><![CDATA[<a href="https://www.52smile.cn/?p=647"><img width="640" height="155" src="http://www.52smile.cn/wp-content/uploads/2012/10/dengluccblogfengmian.jpg" class="attachment-post-thumbnail wp-post-image" alt="dengluccblogfengmian" itemprop="image" lazyload="1" /></a>PS：discuz在安装灯鹭插件后，帖子页的回复框被灯鹭插件的回复框替换，卸载后回复框消失变为空白。原因在于安装灯鹭插件的时候，discuz的模板代码被篡改！ 图例： 解决方法： 还原模板文件 1、/templete/default/forum/viewthread_node.htm 2、/templete/defau]]></description>
				<content:encoded><![CDATA[<a href="https://www.52smile.cn/?p=647"><img width="640" height="155" src="http://www.52smile.cn/wp-content/uploads/2012/10/dengluccblogfengmian.jpg" class="attachment-post-thumbnail wp-post-image" alt="dengluccblogfengmian" itemprop="image" lazyload="1" /></a><p>PS：discuz在安装灯鹭插件后，帖子页的回复框被灯鹭插件的回复框替换，卸载后回复框消失变为空白。原因在于安装灯鹭插件的时候，discuz的模板代码被篡改！</p>
<p>图例：</p>
<p><img class="aligncenter size-full wp-image-648" title="jiejuedenglukuangxiaoshi" src="http://www.52smile.cn/wp-content/uploads/2012/10/jiejuedenglukuangxiaoshi.jpg" alt="" width="650" height="153" /></p>
<p>解决方法：</p>
<p>还原模板文件</p>
<p>1、/templete/default/forum/viewthread_node.htm</p>
<p>2、/templete/default/forum/viewthread_fastpost.htm</p>
<p>替换以上两个文件。discuz后台刷新缓存就ok了！</p>
]]></content:encoded>
			<wfw:commentRss>https://www.52smile.cn/?feed=rss2&#038;p=647</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>discuz分享之常用修改</title>
		<link>https://www.52smile.cn/?p=435</link>
		<comments>https://www.52smile.cn/?p=435#comments</comments>
		<pubDate>Thu, 09 Aug 2012 15:45:27 +0000</pubDate>
		<dc:creator><![CDATA[子涛]]></dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[常用修改]]></category>

		<guid isPermaLink="false">http://www.52smile.cn/?p=435</guid>
		<description><![CDATA[<a href="https://www.52smile.cn/?p=435"><img width="550" height="120" src="http://www.52smile.cn/wp-content/uploads/2012/08/discuz_cygn.jpg" class="attachment-post-thumbnail wp-post-image" alt="discuz_cygn" itemprop="image" lazyload="1" /></a>PS：笔者在此总结了几个在discuz经常会遇到的几个修改，并整理详细的修改步骤！ 1、修改商品贴内容页，删除“在线砍价”按钮 附言：随着discuz升级，随之而来的功能也越来越五花八门。无论是贴心的新功能也或者一些老的功能的优化，但总会有一些东西对我们而言没有用武之地，也或者说是太过贴心。此修改意在为利用discuz]]></description>
				<content:encoded><![CDATA[<a href="https://www.52smile.cn/?p=435"><img width="550" height="120" src="http://www.52smile.cn/wp-content/uploads/2012/08/discuz_cygn.jpg" class="attachment-post-thumbnail wp-post-image" alt="discuz_cygn" itemprop="image" lazyload="1" /></a><p>PS：笔者在此总结了几个在discuz经常会遇到的几个修改，并整理详细的修改步骤！</p>
<p>1、修改商品贴内容页，删除“在线砍价”按钮<br />
附言：随着discuz升级，随之而来的功能也越来越五花八门。无论是贴心的新功能也或者一些老的功能的优化，但总会有一些东西对我们而言没有用武之地，也或者说是太过贴心。此修改意在为利用discuz商品主题做商城的网站避免因无聊砍价造成的信息为目的。</p>
<div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">修改页面/template/default/forum/trade_info.html<br />
修改行数159--161行，注释砍价按钮即可！<br />
<span style="color: #808080; font-style: italic;">&lt;!--修改:关闭&quot;砍价按钮&quot;--&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--&lt;button onclick=&quot;showWindow('sendpm', 'home.php?mod=spacecp&amp;ac=pm&amp;op=showmsg&amp;handlekey=showmsg_$post[authorid]&amp;touid=$post[authorid]&amp;pmid=0&amp;daterange=2&amp;tradeid=$post[pid]')&quot; class=&quot;pn&quot;&gt;&lt;span&gt;&lt;!--{if $online}--&gt;</span>{lang #on_line}<span style="color: #808080; font-style: italic;">&lt;!--{/if}--&gt;</span>{lang #trade_bargain}<span style="color: #808080; font-style: italic;">&lt;!--&lt;/span&gt;--&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--{/if}--&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span></div></td></tr></tbody></table></div>
<p>2、修改商城交易记录自动被删除的问题<br />
附言：此修改意在解决交易记录自动被删除的问题，对于一些站利用discuz自带的商品主题作为商城并无需定期清理交易记录的网站比较有用，因为discuz的计划任务会定期将7天内的交易记录清空，这样一来对于上面讲到的此类网站将会产生一定的损失和没必要的麻烦！</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">//修改页面：cron_clearup_daily.php</span><br />
<span style="color: #666666; font-style: italic;">//修改行数 35 行：</span><br />
<span style="color: #666666; font-style: italic;">//2012/7/24 修改计划任务删除交易记录时间</span><br />
C<span style="color: #339933;">::</span><span style="color: #004000;">t</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'forum_trade'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">update_closed</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_G</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'timestamp'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
C<span style="color: #339933;">::</span><span style="color: #004000;">t</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'forum_tradelog'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">clear_failure</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
C<span style="color: #339933;">::</span><span style="color: #004000;">t</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'forum_tradelog'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">expiration_payed</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
C<span style="color: #339933;">::</span><span style="color: #004000;">t</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'forum_tradelog'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">expiration_finished</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//以上的7均为默认时间，可自定义！</span></div></td></tr></tbody></table></div>
<p>3、修改帖子内容页主题下方通栏广告不能100%通栏的问题<br />
修改模板页面/templates/default/fourm/viewthread_node.htm<br />
修改行数：498行，499行<br />
修改代码</p>
<div class="codecolorer-container html4strict blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">&lt;!--&lt;td class=&quot;pls&quot;&gt;--&gt;</span> &nbsp;注释498行的td<br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;plc&quot;</span> <span style="color: #000066;">colspan</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'2'</span>&gt;</span> &nbsp;添加属性colspan='2'<br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span></div></td></tr></tbody></table></div>
<p>4、修改帖子内容页左侧用户头像下方用户组，将用户组名称删除并改为图标的问题</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span>groupicon<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">--&gt;&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;home.php?mod=spacecp&amp;ac=usergroup&amp;gid=<span style="color: #006699; font-weight: bold;">$post[groupid]</span>&quot;</span> target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_blank&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span>groupicon<span style="color: #009900;">&#93;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>p<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">--&gt;</span><br />
<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>em<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;home.php?mod=spacecp&amp;ac=usergroup&amp;gid=<span style="color: #006699; font-weight: bold;">$post[groupid]</span>&quot;</span> target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_blank&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span>authortitle<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>em<span style="color: #339933;">&gt;&lt;/</span>p<span style="color: #339933;">&gt;</span><br />
<span style="color: #666666; font-style: italic;">//修改为：</span><br />
<span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span>groupicon<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">--&gt;</span><br />
<span style="color: #339933;">&lt;</span>center<span style="color: #339933;">&gt;&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;home.php?mod=spacecp&amp;ac=usergroup&amp;gid=<span style="color: #006699; font-weight: bold;">$post[groupid]</span>&quot;</span> target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_blank&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span>groupicon<span style="color: #009900;">&#93;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>p<span style="color: #339933;">&gt;&lt;/</span>center<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">--&gt;</span><br />
<span style="color: #666666; font-style: italic;">//将此行显示的用户组名称 屏蔽</span><br />
<span style="color: #339933;">&lt;!--&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>em<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;home.php?mod=spacecp&amp;ac=usergroup&amp;gid=<span style="color: #006699; font-weight: bold;">$post[groupid]</span>&quot;</span> target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_blank&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span>authortitle<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>em<span style="color: #339933;">&gt;--&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>https://www.52smile.cn/?feed=rss2&#038;p=435</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>discuz功能分享之修改文章聚合标签数量</title>
		<link>https://www.52smile.cn/?p=413</link>
		<comments>https://www.52smile.cn/?p=413#comments</comments>
		<pubDate>Mon, 06 Aug 2012 15:01:54 +0000</pubDate>
		<dc:creator><![CDATA[子涛]]></dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[聚合标签]]></category>

		<guid isPermaLink="false">http://www.52smile.cn/?p=413</guid>
		<description><![CDATA[<a href="https://www.52smile.cn/?p=413"><img width="550" height="120" src="http://www.52smile.cn/wp-content/uploads/2012/08/discuz_tag.jpg" class="attachment-post-thumbnail wp-post-image" alt="discuz_tag" itemprop="image" lazyload="1" /></a>PS:discuz的文章聚合标签默认只有8个，一般情况下8个聚合标签已经完全够用。但是如果遇到特殊情况我们又不得不去想方设法修改，discuz后台是没有地方可以进行手动设置的，这种情况下就需要技术人员的配合了，不过如果你对discuz不是足够熟悉的话那也得费些功夫了。不过笔者前些时段就遇到了关于聚合标签的问题，所以乘热]]></description>
				<content:encoded><![CDATA[<a href="https://www.52smile.cn/?p=413"><img width="550" height="120" src="http://www.52smile.cn/wp-content/uploads/2012/08/discuz_tag.jpg" class="attachment-post-thumbnail wp-post-image" alt="discuz_tag" itemprop="image" lazyload="1" /></a><p>PS:discuz的文章聚合标签默认只有8个，一般情况下8个聚合标签已经完全够用。但是如果遇到特殊情况我们又不得不去想方设法修改，discuz后台是没有地方可以进行手动设置的，这种情况下就需要技术人员的配合了，不过如果你对discuz不是足够熟悉的话那也得费些功夫了。不过笔者前些时段就遇到了关于聚合标签的问题，所以乘热打铁就当复习了，希望对需要的童鞋有用！</p>
<p>下面写出具体修改的文件，以及所在位置。贴出代码：<br />
1、表dx_portal_article_title中的tag字段由tinyint 长度8 改为int 长度 11   （此处以增加到27个为例）<br />
2、source/admincp/admincp_article.php文件第51行：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp;showformheader<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'article&amp;operation=tag'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;showtableheader<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'article_tag_setting'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span> <span style="color: #339933;">=</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//修改8为27</span></div></td></tr></tbody></table></div>
<p>3、source/function/function_portalcp.php文件<br />
   </code></p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//第670行开始，依次找到8的地方：</span><br />
&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">function</span> article_tagnames<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; ……<br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//里的 for($i=1; $i&lt; =8; $i++)</span><br />
&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">function</span> article_parse_tags<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; ……<br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//里的 for($i=1; $i&lt;=8; $i++)</span><br />
&nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">function</span> article_make_tag<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; ……<br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//里的 for($i=1; $i&lt;=8; $i++)</span><br />
&nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//修改8为27</span></div></td></tr></tbody></table></div>
<p>修改完毕，更新缓存就ok了！<br />
希望对需要的人有所受用，如有疑问请留言！</code></p>
]]></content:encoded>
			<wfw:commentRss>https://www.52smile.cn/?feed=rss2&#038;p=413</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
