| ======================================================== 
 製作這插件的原因:
 
 主題帖:2006-2-13 08:59 PM
 在個人簽名果到唔好200字la~400字la~ XD!!!!!!!!!
 
 第 2 帖:2006-2-13 09:01 PM
 如果放好多圖,,,會lo得慢
 
 第 6 帖:2006-2-13 11:35 PM
 我直頭想簽名位禁止放圖
 
 第 7 帖:2006-2-14 12:06 AM
 我會加一程式 編輯個人資料內 可選擇不看會員的簽名
 
 第 9 帖:2006-2-16 08:38 PM
 不如將個圖變做超連結?
 
 第 11 帖:2006-2-17 02:40 AM
 都幾好 如果你在編輯個人資料內 設定不看別人的圖 那個圖變為連結都唔錯
 
 第 14 帖:2006-2-17 10:38 PM
 
 改好了  增加多一種選擇
 
 帖子內顯示別人簽名方式:
 
 別人簽名的圖改為連接 (可顯示自己)
 別人的簽名只不顯示圖 (可顯示自己)
 完全不顯示別人的簽名 (可顯示自己)
 完整顯示所有人的簽名
 
 不顯示簽名內的圖,可加快瀏覽速度
 
 ===========   2006-2-19 00:23 安裝過的可跟以下加多一種 ===========
 
 別人簽名的圖改為連接 (可顯示自己)
 
 及更新使用 [img=xxx,xxx]http://xxxxxx.xx[/img] 不能正常修改
 
 viewthread.php 找
 
 复制代码        if($showsignature == 2 && $post['uid'] != $discuz_uid){
        $post['signature'] = preg_replace("/\<img src="\s*(.+?)\s*"\>/is", '', $post['signature']);
        }
或找
 
 复制代码        if($showsignature == 2 && $post['uid'] != $discuz_uid){
        $post['signature'] = preg_replace("/\<img src="(.+?)"\>/is", '', $post['signature']);
        }elseif($showsignature == 3 && $post['uid'] != $discuz_uid){
        $post['signature'] = preg_replace("/\<img src="(.+?)" (.+?)"\>/is", "<a href="\\1" target="_blank">\\1</a><br>", $post['signature']);
        }
改為
 
 复制代码        if($showsignature == 2 && $post['uid'] != $discuz_uid){
        $post['signature'] = preg_replace("/\<img src="(.+?)"\>/is", '', $post['signature']);
        $post['signature'] = preg_replace("/\<img width="(.+?)" height="(.+?)" src="(.+?)"\>/is", '', $post['signature']);
        }elseif($showsignature == 3 && $post['uid'] != $discuz_uid){
        $post['signature'] = preg_replace("/\<img src="(.+?)" (.+?)"\>/is", "<a href="\\1" target="_blank">\\1</a><br>", $post['signature']);
        $post['signature'] = preg_replace("/\<img width="(.+?)" height="(.+?)" src="(.+?)" (.+?)"\>/is", "<a href="\\3" target="_blank">\\3</a><br>", $post['signature']);
        }
templates/default/templates.lang.php 找
 
 复制代码        'showusersignature' => '帖子內顯示別人簽名方式',
之下加入
 
 复制代码        'showusersignature3' => '別人簽名的圖改為連接 (可顯示自己)',
templates/default/memcp_profile.htm 找
 
 复制代码<td class="altbg2"><select name="showsignaturenew">
之下加入
 
 复制代码<option value="3" name="showsignaturenew" $checkshowsigna[3]>{lang showusersignature3}</option>
===========   2006-2-19 00:23 安裝過的可跟以下加多一種 結束 =========
 
 ========================================================
 
 會員自訂_帖子內顯示別人簽名4款方式
 
 帖子內顯示別人簽名方式
 
 別人簽名的圖改為連接 (可顯示自己)
 別人的簽名只不顯示圖 (可顯示自己)
 完全不顯示別人的簽名 (可顯示自己)
 完整顯示所有人的簽名
 
 不顯示簽名內的圖,可加快瀏覽速度
 
 ========================================================
 
 修改檔案 ( 修改前請先備份 )
 
 include/common.inc.php
 
 memcp.php
 viewthread.php
 
 templates/default/templates.lang.php
 templates/default/memcp_profile.htm
 templates/default/viewthread.htm
 
 ( 完成後緊記 更新緩存 )
 
 ========================================================
 
 數據庫升級
 
 
 复制代码ALTER TABLE `cdb_members` ADD `showsignature` tinyint(1) NOT NULL default '1';
 ========================================================
 
 include/common.inc.php
 
 找2次 2次之後也要加入
 
 後面加入
 
 加入完成如下
 
 m.newpm, m.accessmasks, m.showsignature
 
 再找
 
 後面加入
 
 加入完成如下
 
 newpm, accessmasks, showsignature
 
 ========================================================
 
 memcp.php 找
 
 
 复制代码                $pscheck = array(intval($member['pmsound']) => 'checked');
之下加入
 
 复制代码                $checkshowsigna = array($member['showsignature'] => 'selected');
再找
 
 复制代码styleid='$styleidnew', sigstatus='$sigstatusnew'
後面加入
 
 复制代码, showsignature='$showsignaturenew'
加入完成如下
 
 styleid='$styleidnew', sigstatus='$sigstatusnew', showsignature='$showsignaturenew'
 
 ========================================================
 
 viewthread.php 找
 
 
 复制代码                $post['signature'] = $post['usesig'] ? $post['signature'] : '';
之上加入 ( 緊記加在上面 )
 
 复制代码        if($showsignature == 2 && $post['uid'] != $discuz_uid){
        $post['signature'] = preg_replace("/\<img src="(.+?)"\>/is", '', $post['signature']);
        $post['signature'] = preg_replace("/\<img width="(.+?)" height="(.+?)" src="(.+?)"\>/is", '', $post['signature']);
        }elseif($showsignature == 3 && $post['uid'] != $discuz_uid){
        $post['signature'] = preg_replace("/\<img src="(.+?)" (.+?)"\>/is", "<a href="\\1" target="_blank">\\1</a><br>", $post['signature']);
        $post['signature'] = preg_replace("/\<img width="(.+?)" height="(.+?)" src="(.+?)" (.+?)"\>/is", "<a href="\\3" target="_blank">\\3</a><br>", $post['signature']);
        }
 ========================================================
 
 templates/default/templates.lang.php 找
 
 
 之下加入
 
 复制代码        'showusersignature' => '帖子內顯示別人簽名方式',
        'showusersignature3' => '別人簽名的圖改為連接 (可顯示自己)',
        'showusersignature2' => '別人的簽名只不顯示圖 (可顯示自己)',
        'showusersignature0' => '完全不顯示別人的簽名 (可顯示自己)',
        'showusersignature1' => '完整顯示所有人的簽名',
        'showusersignature_tip' => '不顯示簽名內的圖,可加快瀏覽速度',
 ========================================================
 
 templates/default/memcp_profile.htm 找
 
 
 复制代码<input type="radio" value="3" name="pmsoundnew" $pscheck[3]><a href="images/sound/pm_3.wav">#3</a></td>
</tr>
之下加入
 
 复制代码<tr>
<td class="altbg1">{lang showusersignature}:</td>
<td class="altbg2"><select name="showsignaturenew">
<option value="3" name="showsignaturenew" $checkshowsigna[3]>{lang showusersignature3}</option>
<option value="2" name="showsignaturenew" $checkshowsigna[2]>{lang showusersignature2}</option>
<option value="0" name="showsignaturenew" style="color:red" $checkshowsigna[0]>{lang showusersignature0}</option>
<option value="1" name="showsignaturenew" $checkshowsigna[1]>{lang showusersignature1}</option>
</select> {lang showusersignature_tip}
</td></tr>
 ========================================================
 
 templates/default/viewthread.htm 找
 
 
 复制代码        <!--{if $post['signature']}-->
改為
 
 复制代码        <!--{if $post['signature'] && ($post['uid'] == $discuz_uid || $showsignature)}-->
 ========================================================
 4.1 以上部份 如下修改
 ========================================================
 找
 
 复制代码<!--{if $post['signature'] && !$post['anonymous']}-->
改為
 
 复制代码<!--{if $post['signature'] && !$post['anonymous'] && ($post['uid'] == $discuz_uid || $showsignature)}-->
========================================================
 ~ 完成 ~
 ========================================================
 
 [ 本帖最后由 別問我是誰 于 2006-5-26 10:27 编辑 ]
 |