<?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>discuz x1.5 &#8211; LPC影子技术分享</title>
	<atom:link href="https://www.mudbest.com/tag/discuz-x1-5/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.mudbest.com</link>
	<description>行影不离,忘之却步.</description>
	<lastBuildDate>Mon, 01 Oct 2012 14:20:54 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>
	<item>
		<title>Discuz X1.5群组缩略图大小修改</title>
		<link>https://www.mudbest.com/discuz-x1-5%e7%be%a4%e7%bb%84%e7%bc%a9%e7%95%a5%e5%9b%be%e5%a4%a7%e5%b0%8f%e4%bf%ae%e6%94%b9/</link>
		
		<dc:creator><![CDATA[hkshadow]]></dc:creator>
		<pubDate>Wed, 20 Apr 2011 08:04:51 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[discuz x1.5]]></category>
		<guid isPermaLink="false">http://www.mudbest.com/?p=601</guid>

					<description><![CDATA[打开\source\function\function_group.php 可增加一个字段： 然后打开\sou ... <a title="Discuz X1.5群组缩略图大小修改" class="read-more" href="https://www.mudbest.com/discuz-x1-5%e7%be%a4%e7%bb%84%e7%bc%a9%e7%95%a5%e5%9b%be%e5%a4%a7%e5%b0%8f%e4%bf%ae%e6%94%b9/" aria-label="阅读 Discuz X1.5群组缩略图大小修改">阅读更多</a>]]></description>
										<content:encoded><![CDATA[<p>打开\source\function\function_group.php</p>
<pre class="brush: php; title: ; notranslate">
	if($data&#x5B;'status'] == 3) {
		$imgwh = array('icon' =&gt; array('48', '48'), 'banner' =&gt; array('720', '168'));
		require_once libfile('class/image');
		$img = new image;
		$img-&gt;Thumb($upload-&gt;attach&#x5B;'target'], './'.$uploadtype.'/'.$upload-&gt;attach&#x5B;'attachment'], $imgwh&#x5B;$type]&#x5B;0], $imgwh&#x5B;$type]&#x5B;1], 'fixwr');
	}
	return $upload-&gt;attach&#x5B;'attachment'];
}
</pre>
<p>可增加一个字段：</p>
<pre class="brush: php; title: ; notranslate">
	if($data&#x5B;'status'] == 3) {
		$imgwh = array('icon' =&gt; array('48', '48'), 'banner' =&gt; array('720', '168'), 'hkshadow' =&gt; array('91', '91'));
		require_once libfile('class/image');
		$img = new image;
		$img-&gt;Thumb($upload-&gt;attach&#x5B;'target'], './'.$uploadtype.'/'.$upload-&gt;attach&#x5B;'attachment'], $imgwh&#x5B;$type]&#x5B;0], $imgwh&#x5B;$type]&#x5B;1], 'fixwr');
	}
	return $upload-&gt;attach&#x5B;'attachment'];
}
</pre>
<p>然后打开\source\module\forum\forum_group.php<span id="more-601"></span></p>
<pre class="brush: php; title: ; notranslate">
//源代码
			$iconnew = upload_icon_banner($_G&#x5B;'forum'], $_FILES&#x5B;'iconnew'], 'icon');
			$bannernew = upload_icon_banner($_G&#x5B;'forum'], $_FILES&#x5B;'bannernew'], 'banner');
			if($iconnew) {
				$iconsql .= &quot;, icon='$iconnew'&quot;;
				$group_recommend = unserialize($_G&#x5B;'setting']&#x5B;'group_recommend']);
				if($group_recommend&#x5B;$_G&#x5B;'fid']]) {
					$group_recommend&#x5B;$_G&#x5B;'fid']]&#x5B;'icon'] = get_groupimg($iconnew);
					DB::query(&quot;UPDATE &quot;.DB::table('common_setting').&quot; SET svalue = '&quot;.serialize($group_recommend).&quot;' WHERE skey = 'group_recommend' LIMIT 1&quot;);
					include libfile('function/cache');
					updatecache('setting');
				}
			}
				
			
			if($bannernew &amp;&amp; empty($deletebanner)) {
				$iconsql .= &quot;, banner='$bannernew'&quot;;
			} elseif($deletebanner) {
				$iconsql .= &quot;, banner=''&quot;;
				@unlink($_G&#x5B;'forum']&#x5B;'banner']);
			}
			
	
</pre>
<p>修改后</p>
<pre class="brush: php; title: ; notranslate">
			$iconnew = upload_icon_banner($_G&#x5B;'forum'], $_FILES&#x5B;'iconnew'], 'icon');
			$bannernew = upload_icon_banner($_G&#x5B;'forum'], $_FILES&#x5B;'bannernew'], 'banner');
			//修改原来的缩略图大小
			//2011-04-20
			$hkshadownew = upload_icon_banner($_G&#x5B;'forum'], $_FILES&#x5B;'hkshadownew'], 'hkshadow');
			
			if($iconnew) {
				$iconsql .= &quot;, icon='$iconnew'&quot;;
				$group_recommend = unserialize($_G&#x5B;'setting']&#x5B;'group_recommend']);
				if($group_recommend&#x5B;$_G&#x5B;'fid']]) {
					$group_recommend&#x5B;$_G&#x5B;'fid']]&#x5B;'icon'] = get_groupimg($iconnew);
					DB::query(&quot;UPDATE &quot;.DB::table('common_setting').&quot; SET svalue = '&quot;.serialize($group_recommend).&quot;' WHERE skey = 'group_recommend' LIMIT 1&quot;);
					include libfile('function/cache');
					updatecache('setting');
				}
			}
				
			
			if($bannernew &amp;&amp; empty($deletebanner)) {
				$iconsql .= &quot;, banner='$bannernew'&quot;;
			} elseif($deletebanner) {
				$iconsql .= &quot;, banner=''&quot;;
				@unlink($_G&#x5B;'forum']&#x5B;'banner']);
			}
			
			/**
			 * 新增字段
			 * 2011-04-20
			 */
				if($bannernew) {
				$iconsql .= &quot;, hkshadow='$hkshadownew'&quot;;
			}
</pre>
<p>然后在\source\module\forum\forum_group.php代码里搜索</p>
<pre class="brush: php; title: ; notranslate">
$_G&#x5B;'forum']&#x5B;'banner'] = get_groupimg($_G&#x5B;'forum']&#x5B;'banner']);
</pre>
<p>在下面增加一跳全局：</p>
<pre class="brush: php; title: ; notranslate">
$_G&#x5B;'forum']&#x5B;'hkshadow'] = get_groupimg($_G&#x5B;'forum']&#x5B;'hkshadow']);
</pre>
<p>最后修改\template\default\group\group_manage.htm的input框的name值<br />
和上面的代码对应，如下:</p>
<pre class="brush: xml; title: ; notranslate">
 &lt;input type=&quot;file&quot; id=&quot;iconnew&quot; class=&quot;pf vm&quot; size=&quot;25&quot; name=&quot;hkshadownew&quot; /&gt;
</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>discuz x1.5修改首页用户数等信息</title>
		<link>https://www.mudbest.com/discuz-x1-5%e4%bf%ae%e6%94%b9%e9%a6%96%e9%a1%b5%e7%94%a8%e6%88%b7%e6%95%b0%e7%ad%89%e4%bf%a1%e6%81%af/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 30 Dec 2010 13:21:14 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[discuz x1.5]]></category>
		<category><![CDATA[在线人数]]></category>
		<guid isPermaLink="false">http://blog.mudbest.com/?p=295</guid>

					<description><![CDATA[其他的也是一样修改，只是简单的列举了3种.只针对discuz x1.5，其他版本未测试 &#60;li&#62;在 ... <a title="discuz x1.5修改首页用户数等信息" class="read-more" href="https://www.mudbest.com/discuz-x1-5%e4%bf%ae%e6%94%b9%e9%a6%96%e9%a1%b5%e7%94%a8%e6%88%b7%e6%95%b0%e7%ad%89%e4%bf%a1%e6%81%af/" aria-label="阅读 discuz x1.5修改首页用户数等信息">阅读更多</a>]]></description>
										<content:encoded><![CDATA[<p>其他的也是一样修改，只是简单的列举了3种.只针对discuz x1.5，其他版本未测试<span id="more-295"></span></p>
<pre class="brush: xml; title: ; notranslate">
&lt;li&gt;在线会员&lt;strong&gt;{eval echo ($onlinenum + 2000)}&lt;/strong&gt;人&lt;/li&gt;
&lt;li&gt;会员人数&lt;strong&gt;{eval echo ($usernum + 6000)}&lt;/strong&gt;&lt;/li&gt;&lt;!--more--&gt;
&lt;li&gt;今日发帖&lt;strong&gt; {eval echo ($todaypost + 500)}&lt;/strong&gt;&lt;/li&gt;
</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
