打印

[軟件] QC ... 我搵到啦 ...

QC ... 我搵到啦 ...

http://www.alan888.com/Discuz/viewthread.php?tid=19841&fpage=1&highlight=Smilies

Smilies PopUp 顯示 Discuz 2.5
适用版本:Discuz 2.5
修改档案:siuyau_popup_showsmilies.htm(new), post_sminsert.htm,misc.php,include/common.js
技术支援:@FreeDiscuz
修改程序:十分簡易
插件作者:小优格格
完成日期:2004/1/14
插件说明:可以减少载入smilies的時間,版面會靚d,
加入模版 siuyau_popup_showsmilies.htm,post_sminsert.htm (在附件中)

include/common.js

在最底部分加上:
複製內容到剪貼板
代碼:
function popUp(URL,WIDTH,HEIGHT,SCROLL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, \'" + id + "\', \'toolbar=0,scrollbars="+SCROLL+",location=0,statusbar=0,menubar=0,resizable=0,width="+WIDTH+",height="+HEIGHT+",left = 262,top = 169\');");
}
misc.php
寻找:
複製內容到剪貼板
代碼:
} else {

        showmessage(\'undefined_action\', NULL, \'HALTED\');
在上面增加:
複製內容到剪貼板
代碼:
}elseif($action == \'smilies\') {
        
        $navigation = "表情符號-對應圖像";
        $smilies = array();
        $query = $db->query("SELECT code, url FROM $table_smilies WHERE type=\'smiley\'");
        while($smiley = $db->fetch_array($query)) {
                $smilies[] = $smiley;
        }
        
        include template(\'siuyau_popup_showsmilies\');
post.php
查找
複製內容到剪貼板
代碼:
//Smilies PopUp 顯示 Discuz 2.5 by 格格  <繁化by max> 2004/1/14
if($smileyinsert && is_array($_DCACHE[&#92;&#39;smilies&#92;&#39;])) {
        $smileyinsert = 1;
        $simlieslist = 20; //預設顯示數目
        $smcols = $smcols ? $smcols : 3;
        $smilies .= &#92;&#39;<tr>&#92;&#39;;
        foreach(array_reverse($_DCACHE[&#92;&#39;smilies&#92;&#39;]) as $key => $smiley) {
    if ($key < $simlieslist){
                $smilies .= &#92;&#39;<td align="center" valign="top"><img src="&#92;&#39;.SMDIR.&#92;&#39;/&#92;&#39;.$smiley[&#92;&#39;url&#92;&#39;].&#92;&#39;" border="0" onmouseover="this.style.cursor=\&#92;&#39;hand\&#92;&#39;;" onclick="AddText(\&#92;&#39;&#92;&#39;.htmlspecialchars(addcslashes($smiley[&#92;&#39;code&#92;&#39;], &#92;&#39;\\\&#92;&#39;&#92;&#39;)).&#92;&#39;\&#92;&#39;);"></td>&#92;&#39;."\n";
                $smilies .= !(++$key % $smcols) ? &#92;&#39;</tr><tr>&#92;&#39; : NULL;
    }
       $smiliesextra= "<tr><td  align=center colspan=$smcols>總數 $key 個圖象 [<a href=\"javascript:popUp(&#92;&#39;misc.php?action=smilies&#92;&#39;,&#92;&#39;230&#92;&#39;,&#92;&#39;430&#92;&#39;,&#92;&#39;1&#92;&#39;)\"> 顯示更多</a>]</td></tr>";
   
   $smilies_overstep = 0;
   $smilies_overstep = $simlieslist / $smcols;
   $smilies_overstep = ($smilies_overstep > 5) ? 1 : 0;   // 如果圖標行數大過5,就會出現滾動條
        }
} else {
        $smileyinsert = 0;
}
//Smilies PopUp 顯示 Discuz 2.5 by 格格 2004/1/14
附件: 您所在的用戶組無法下載或查看附件

TOP

引用:
Originally posted by qcmadness at 2005-11-25 22:23:
thx
full back up 及 你最好看 al8 個網果個 ...

TOP

引用:
Originally posted by qcmadness at 2005-11-25 22:26:

thx
唔使 ... 我 copy 絛 link 加 d 字就得

TOP